skills/qa/SKILL.md
Reads spec documents and the review output REPORT.md, then generates a self-contained fix coordinator prompt (FIX.md) with issue inventory, dependency analysis, batch scheduling, regression test design, and pre-written worker prompts. The generated FIX.md is consumed directly by the fix skill.
npx skillsauth add laitszkin/apollo-toolkit qaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Transform the review findings from REPORT.md into a fix coordinator prompt (FIX.md).
This prompt defines a fix coordinator agent:
This skill is responsible for "planning the fix strategy" — extracting information from REPORT.md + SPEC/DESIGN/CHECKLIST, writing worker prompts for each fix and regression test, and scheduling batch execution order.
Worker prompts are written to individual files under <spec_dir>/fix/ (single spec) or <batch_dir>/fix/ (batch spec) instead of inline in FIX.md. This keeps FIX.md focused on coordination strategy while each fix/regression worker prompt is independently dispatchable.
docs/plans/<YYYY-MM-DD>/<spec_name>/FIX.md is produced in the spec directory (same level as REPORT.md)fix/fix/If a previous FIX.md exists: Before reading new inputs, condense the old FIX.md's fix summary into one history entry. Prepend it to the Fix History section, keeping all past rounds. Then proceed with a fresh plan — do not let prior results bias the new assessment.
Read all of the following:
<spec_dir>/references/ or <batch_dir>/references/ — External method/API reference documentsUnderstand the original design intent of the spec and the nature of each issue in REPORT.md.
Based on the file paths marked in REPORT.md, dispatch subagents in parallel to read the affected code. Each subagent understands the actual code context of their assigned issue to enable precise fix and test design.
No-defer rule: Every issue in REPORT.md — P0, P1, P2, and P3 — must have a complete fix plan in this FIX.md. There is no "handle later" or "defer to next round." If the number of issues is large, use batch scheduling to distribute them across phases, but every issue must be assigned to a specific batch with a complete worker prompt.
For each issue in REPORT.md (in P0 → P1 → P2 → P3 order), do root cause analysis through code reading, design the fix approach, classify complexity (simple vs cross-file), and define how to verify it. Fix details are encoded into worker prompts, not stored inline in FIX.md.
For every fix issue, design a concrete regression test. Each regression test should have a clear oracle that fails on the unfixed code and passes after the fix is applied. Choose the test type based on the issue: unit tests for logic errors, integration tests for state/contract errors, etc. The test design is encoded into the REGTEST worker prompt.
File overlap detection and dependency analysis form the dual gate that determines parallel vs sequential execution. Parallel execution is only permitted when BOTH conditions are met:
Write a self-contained worker prompt for each fix issue. Save each prompt to a separate file under <spec_dir>/fix/ or <batch_dir>/fix/.
Worker prompt file naming: fix/FIX-{sequence}-{kebab-case-name}.md
Use assets/templates/FIX_WORKER.md. The template follows the P1-P5 architecture:
| Section | Purpose (P#) | |---------|--------------| | 1. Mission & Rules | Goal + behavioral rules (preserve tests, no scope creep) | | 2. Context | Input files, root cause analysis | | 3. Tasks | Concrete fix steps (file, line range, before/after) | | 4. Verification | Commands and expected results | | 5. Scope & References | Allowed/forbidden files, related documents |
Simple fixes can be merged: Multiple simple, non-conflicting fixes can be combined into one worker prompt. Complex fixes stand alone: Complex fixes (requiring systematic debug) must have independent worker prompts.
Write a self-contained worker prompt for each regression test. The regression test worker is responsible for writing test code.
Worker prompt file naming: fix/REGTEST-{sequence}-{kebab-case-name}.md
Use assets/templates/REGTEST_WORKER.md. The template follows the P1-P5 architecture:
| Section | Purpose (P#) | |---------|--------------| | 1. Mission & Rules | Goal + behavioral rules (test-only, oracle must fail before fix) | | 2. Context | Input files, test design (type, location, scenario, oracle) | | 3. Tasks | Concrete test writing steps | | 4. Verification | Confirm test fails before fix, passes after | | 5. Scope & References | Allowed test files, forbidden source files |
Writing principles (move these to your process, not the template):
Design the batch schedule based on dependencies and file overlap. Think through:
The exact batch layout depends on the dependency graph of the specific fixes. Describe the schedule in the COORDINATION section of FIX.md — reference worker prompts by their fix/*.md paths and specify verification gates for each batch.
Populate the RULES section with boundaries and error recovery rules. Think through:
Adapt the rules to the specific task — don't use a fixed template. The structure and detail should reflect the complexity of the fixes.
Use assets/templates/FIX.md. The template has three content sections — here is guidance on what each should contain:
ROLE — Define the fix coordinator's mission and responsibilities. Describe what the coordinator does (understand issues, dispatch fix/test workers, verify results) and what it avoids. Derive the mission from REPORT.md's verdict and issue count.
RULES — The operating boundaries and error recovery rules you designed in step 9. Structure them clearly so the coordinator can reference them during execution.
WORKING STEPS → 1. PREPARATION — List the files the coordinator must read before starting, with brief context on what each provides. This typically includes REPORT.md (issues), SPEC.md (original requirements), affected source files, references/, and all worker prompt files.
WORKING STEPS → 2. COORDINATION — The batch execution plan from steps 7-8. Describe each batch, which fixes/tests it contains, whether they run in parallel or sequentially, their dependencies, and the verification gate that must pass before proceeding. Reference worker prompts by their fix/*.md paths. Fix details (root cause, approach) are encoded into the worker prompts themselves, not in FIX.md.
WORKING STEPS → 3. FINAL VERIFICATION — The meta-checks that confirm every issue is resolved. Extract these from CHECKLIST.md and the issue inventory.
Before delivering, review the following:
Worker prompts — are they truly self-contained? Scan for phrases like "based on your findings", "fix it appropriately" — these leak context. Are file paths and line ranges concrete? Is the verification command precise? Do filenames match the fix IDs?
Coverage — is anything missing? Every issue in REPORT.md (P0–P3) must have a fix worker prompt. Every fix must have a regression test worker prompt (or documented manual verification steps for P2/P3 where automated testing is impractical). No issue may be deferred.
Consistency — does the schedule hold together? Fix dependencies should match the batch ordering. Regression tests must be scheduled after all fix batches complete. No fix scheduled before its dependencies are met.
Place the FIX.md in the spec directory (same level as REPORT.md).
Place worker prompts in <spec_dir>/fix/ or <batch_dir>/fix/.
src/auth.ts → File overlap → Separate into sequential batches → Regression tests run after all fix batches complete → Worker prompts in fix/FIX-01-*.md and fix/FIX-02-*.mdgetDiscount() does not handle negative input → Regression test: unit test with GIVEN negative input WHEN calling getDiscount THEN return 0 (before fix, returns incorrect negative discount) → Worker prompt in fix/REGTEST-01-discount.mdassets/templates/FIX.md — Coordinator prompt templateassets/templates/FIX_WORKER.md — Fix worker prompt template (used in Step 7a)assets/templates/REGTEST_WORKER.md — Regression test worker prompt template (used in Step 7b)development
Review a pull request — interactive PR selection via `gh`, 4-dimension code review (hallucinated code, architecture, performance, test validity), then post severity-graded comments with fix suggestions on the PR. Not for spec-based review — use `review` instead.
development
Read a user-specified PDF that marks the week's key financial events, deeply research each marked event with current sources, capture any additional breaking financial developments, and produce a concise Chinese-capable PDF briefing that explains what happened and why it matters.
documentation
Generate long-form videos (more than 10 minutes) by following user instructions and invoking related skills only when needed (`openai-text-to-image-storyboard`, `docs-to-voice`, `remotion-best-practices`). For text inputs, extract a complete long-form story arc, generate fresh storyboard images (no reuse of previously generated pictures), and render a 16:9 animated long-form video.
tools
協助完成自動化版本發佈。同步文檔、更新版本號、推送 tag 並建立 GitHub Release。