Token导航 LogoToken导航TokenDH.com
效率只读clawhub未标认证来源可访问clear审计通过

qa-skill质量保证技能

Agent Skill

qa-skill 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,088

周安装

337

GitHub Stars

公开资料未说明

下载量

2,696
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:qa-skill(质量保证技能)
来源仓库:https://github.com/tc1993/qa-skill
安装命令:
openclaw skills install qa-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install qa-skill

简介

从 SwiftUI iOS 代码自动生成全面的测试用例和质量保证文档。

  • 适用于需要为 iOS 应用生成测试覆盖的场景,提升代码质量与稳定性。
  • 通过分析项目代码结构,输出可执行的测试脚本和检查清单。
  • 需确认项目路径、依赖版本及是否允许执行自动化命令。
  • 可能涉及文件读写和网络请求,建议提前评估权限与数据安全边界。

SKILL.md

name
qa-skill
description
Generate comprehensive test cases and quality assurance documentation from SwiftUI iOS code. Use when iOS application code is available and needs testing strategies, test cases, and quality validation. This skill receives input from dev-skill and completes the auto-dev-pipeline by providing testing coverage.

QA Skill - Quality Assurance Test Generator

Overview

This skill analyzes SwiftUI iOS application code and generates comprehensive test cases, testing strategies, and quality assurance documentation. It ensures code quality, identifies potential issues, and provides testing coverage for the entire application.

Testing Strategy

1. Test Pyramid Approach

  • Unit Tests (70%): Test individual components and business logic
  • Integration Tests (20%): Test component interactions and data flow
  • UI Tests (10%): Test user interface and user flows

2. Test Categories

2.1 Functional Testing

  • Feature validation against PRD requirements
  • User story acceptance criteria
  • Edge cases and boundary conditions

2.2 Non-Functional Testing

  • Performance testing (load time, memory usage)
  • Security testing (data protection, authentication)
  • Accessibility testing (VoiceOver, Dynamic Type)
  • Compatibility testing (iOS versions, device sizes)

2.3 Regression Testing

  • Ensure new changes don't break existing functionality
  • Automated test suite for critical paths
  • Smoke tests for release validation

Test Generation Workflow

1. Code Analysis

  • Parse SwiftUI project structure
  • Identify ViewModels and business logic
  • Map data flows and dependencies
  • Analyze PRD requirements for test coverage

2. Test Case Generation

2.1 Unit Test Templates

import XCTest
@testable import ProjectName

class TaskViewModelTests: XCTestCase {
    var viewModel: TaskViewModel!
    var mockDataService: MockDataService!
    
    override func setUp() {
        super.setUp()
        mockDataService = MockDataService()
        viewModel = TaskViewModel(dataService: mockDataService)
    }
    
    func testAddTask() {
        // Given
        let initialCount = viewModel.tasks.count
        let newTask = Task(title: "Test Task")
        
        // When
        viewModel.addTask(newTask)
        
        // Then
        XCTAssertEqual(viewModel.tasks.count, initialCount + 1)
        XCTAssertEqual(viewModel.tasks.last?.title, "Test Task")
    }
    
    func testDeleteTask() { ... }
    func testToggleCompletion() { ... }
    func testFilterByCategory() { ... }
}

2.2 UI Test Templates

import XCTest

class ProjectNameUITests: XCTestCase {
    var app: XCUIApplication!
    
    override func setUp() {
        super.setUp()
        app = XCUIApplication()
        app.launch()
    }
    
    func testTaskCreationFlow() {
        // Given: App is launched
        XCTAssertTrue(app.navigationBars["Tasks"].exists)
        
        // When: Tap add button
        app.buttons["Add"].tap()
        
        // Then: Add task screen appears
        XCTAssertTrue(app.textFields["Task Title"].exists)
        
        // When: Enter task details and save
        app.textFields["Task Title"].tap()
        app.textFields["Task Title"].typeText("Test UI Task")
        app.buttons["Save"].tap()
        
        // Then: Task appears in list
        XCTAssertTrue(app.staticTexts["Test UI Task"].exists)
    }
    
    func testTaskCompletion() { ... }
    func testCategoryFiltering() { ... }
    func testReminderSettings() { ... }
}

2.3 Integration Test Templates

class DataServiceIntegrationTests: XCTestCase {
    func testDataPersistence() {
        // Given: Fresh data service
        let dataService = DataService()
        
        // When: Save data
        let task = Task(title: "Integration Test")
        dataService.saveTask(task)
        
        // Then: Data should be retrievable
        let retrieved = dataService.loadTasks()
        XCTAssertEqual(retrieved.count, 1)
        XCTAssertEqual(retrieved.first?.title, "Integration Test")
    }
}

3. Test Documentation Generation

3.1 Test Plan Document

# Test Plan: [App Name]

## 1. Testing Scope
- Features to be tested
- Features out of scope
- Testing environments

## 2. Test Strategy
- Testing types and approaches
- Test data requirements
- Entry/exit criteria

## 3. Test Cases
### 3.1 Functional Tests
- [TC-001] Task Creation
  - Preconditions: App launched, no tasks
  - Steps: Tap + → Enter title → Tap Save
  - Expected: Task appears in list
  - Priority: P0

### 3.2 Non-Functional Tests
- [TC-101] Performance: App launch < 2 seconds
- [TC-102] Memory: < 100MB peak usage
- [TC-103] Accessibility: VoiceOver compatible

3.2 Test Report Template

# Test Report: [App Name] v1.0

## Executive Summary
- Total test cases: XX
- Passed: XX
- Failed: XX
- Blocked: XX
- Test coverage: XX%

## Detailed Results
### Functional Testing
- Feature A: 10/10 passed
- Feature B: 8/10 passed (2 failed)
- Feature C: 5/5 passed

### Issues Found
1. **High Priority**: Crash when deleting last task
2. **Medium Priority**: UI misalignment on iPhone SE
3. **Low Priority**: Typo in settings screen

## Recommendations
- Fix high priority issues before release
- Address medium priority in next sprint
- Document low priority for future

Example: Todo App Testing

Code Input: SwiftUI todo app with categories and reminders

Generated Test Coverage:

Unit Tests (15 test cases)

  1. TaskViewModelTests: Add/delete/toggle tasks
  2. CategoryViewModelTests: Filter by category
  3. ReminderServiceTests: Schedule/cancel reminders
  4. DataServiceTests: CRUD operations

UI Tests (8 test cases)

  1. testTaskCreationFlow: Complete user journey
  2. testCategoryManagement: Add/edit/delete categories
  3. testReminderSetup: Configure and test reminders
  4. testSharingFunctionality: Share tasks via share sheet

Integration Tests (5 test cases)

  1. testDataPersistence: Verify data survives app restart
  2. testNotificationIntegration: Test reminder delivery
  3. testICloudSync: Verify cross-device synchronization

Auto-Trigger Completion

After generating test cases, this skill automatically:

  1. Creates test files in qa-output/ directory
  2. Generates test execution report
  3. Provides quality metrics and recommendations
  4. Completes the auto-dev-pipeline with final summary

Quality Metrics

Code Coverage Targets

  • Minimum: 70% line coverage
  • Good: 80% line coverage
  • Excellent: 90% line coverage

Performance Benchmarks

  • App launch: < 2 seconds
  • Screen transitions: < 0.5 seconds
  • Memory usage: < 150MB peak
  • Battery impact: < 5% per hour

Accessibility Compliance

  • VoiceOver: All interactive elements labeled
  • Dynamic Type: Supports all text sizes
  • Color contrast: WCAG AA compliant
  • Reduced motion: Respects user preferences

Integration with Pipeline

Input Requirements

  • SwiftUI project from dev-skill
  • PRD document for requirement validation
  • Compilation verification

Output Delivery

  • Complete XCTest test suite
  • Test plan and strategy document
  • Quality assessment report
  • Release readiness checklist

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

74.28%
按下载量换算2,003

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills