Agent SkillsPaca-AI/paca › paca-test

paca-test

GitHub

用于验证已完成Paca任务是否符合验收标准。通过加载上下文、推导测试用例(覆盖正常、边界、错误及回归场景)、执行测试并记录结果,最终更新任务状态为通过或退回修复。

services/ai-agent/src/skills/paca-test/SKILL.md Paca-AI/paca

Trigger Scenarios

用户要求测试或验证已实现的任务 用户要求对任务进行QA或审查 未指定任务时默认检查处于审核状态的任务

Install

npx skills add Paca-AI/paca --skill paca-test -g -y
More Options

Non-standard path

npx skills add https://github.com/Paca-AI/paca/tree/master/services/ai-agent/src/skills/paca-test -g -y

Use without installing

npx skills use Paca-AI/paca@paca-test

指定 Agent (Claude Code)

npx skills add Paca-AI/paca --skill paca-test -a claude-code -g -y

安装 repo 全部 skill

npx skills add Paca-AI/paca --all -g -y

预览 repo 内 skill

npx skills add Paca-AI/paca --list

SKILL.md

Frontmatter
{
    "name": "paca-test",
    "triggers": [
        "\/paca-test"
    ],
    "description": "Verify a completed Paca task against its acceptance criteria — deriving test cases, running or describing tests, and recording pass\/fail results with a status update. Use when asked to test, verify, QA, or review a task that has been implemented. Defaults to tasks in \"review\" status when none is specified."
}

You are testing or verifying a task — checking acceptance criteria, deriving test cases, running or describing tests, and recording results. Use Paca MCP tools throughout — never create local files for test records.

If no task is specified, call list_tasks filtered to tasks in a "review" or "in review" status — those are the most likely candidates awaiting testing.


Step 1 — Load task and project context

  1. Resolve the task reference from the user's message using get_task_by_number or get_task.
  2. Call list_docs and search for documents titled or tagged with "BDD", "acceptance criteria", "test plan", "QA", or the feature name. Read the most relevant ones with read_doc. What "done" looks like needs to be established from the spec, not invented.
  3. Call list_task_activities to read implementation notes, prior test runs, and edge cases already flagged.

Step 2 — Derive test cases

From the task's acceptance criteria and related docs, derive test cases covering:

  • Happy path — the primary flow works as specified
  • Edge cases — boundary values, empty inputs, maximum sizes, off-by-one
  • Error cases — invalid input, missing permissions, external failures, timeouts
  • Regression — adjacent functionality that must not be broken

If the acceptance criteria are clear and cover these categories, proceed directly. Only ask the user to confirm the test plan when the scope is large or genuinely ambiguous.

Step 3 — Execute tests

Choose the approach based on what's available:

  • Automated (code): run the test suite or exercise the feature with Bash; report exact output
  • Document / content: verify structure, completeness, and accuracy against the spec
  • API / integration: describe the request, expected response, and actual response
  • Manual QA required: if the feature requires a browser or UI interaction you cannot perform, describe the manual test steps clearly in the comment so a human can execute them. Mark the task status as "awaiting QA" rather than done.

Record pass / fail for each test case with a brief note.

Step 4 — Record results and update status

  1. Call add_task_comment with a markdown table of results:
    | Test case | Result | Notes |
    |---|---|---|
    | Happy path: ... | ✅ Pass | |
    | Edge case: empty list | ❌ Fail | Returns 500, expected empty array |
    
  2. All pass: call update_task to advance the status to the next stage (e.g. "review", "done")
  3. Any fail: call update_task to set status back to "in progress"; include what needs fixing in the comment
  4. If these test cases represent a repeatable procedure (e.g. release checklist, integration test steps), preserve them in a Paca document with write_doc

What's next: If the task passes and there's no existing documentation for this feature, consider running /paca-doc #<number> to write it.

Report back: task number, total tests run, pass/fail count, and the status after testing.


Tool reference

Tasks: get_task · get_task_by_number · update_task · list_task_statuses Comments: add_task_comment · list_task_activities Documents: list_docs · read_doc · write_doc Projects: list_projects

Version History

  • acf4909 Current 2026-07-19 18:24

Same Skill Collection

services/ai-agent/src/skills/paca-breakdown/SKILL.md
services/ai-agent/src/skills/paca-clarify/SKILL.md
services/ai-agent/src/skills/paca-do/SKILL.md
services/ai-agent/src/skills/paca-doc/SKILL.md
services/ai-agent/src/skills/paca-epic/SKILL.md
services/ai-agent/src/skills/paca-estimate/SKILL.md
services/ai-agent/src/skills/paca-prioritize/SKILL.md
services/ai-agent/src/skills/paca-sprint/SKILL.md
services/ai-agent/src/skills/paca-workflow/SKILL.md
skills/paca-breakdown/SKILL.md
skills/paca-clarify/SKILL.md
skills/paca-do/SKILL.md
skills/paca-doc/SKILL.md
skills/paca-epic/SKILL.md
skills/paca-estimate/SKILL.md
skills/paca-prioritize/SKILL.md
skills/paca-setup/SKILL.md
skills/paca-sprint/SKILL.md
skills/paca-test/SKILL.md
skills/paca-workflow/SKILL.md
skills/paca/SKILL.md

Metadata

Files
0
Version
acf4909
Hash
20c1637a
Indexed
2026-07-19 18:24

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-21 20:03
浙ICP备14020137号-1 $お客様$