Quality Control
Run a full quality pass on a spec after its tickets have merged, including review, test planning, browser testing, and fixing issues found during testing.
Editor's Note
Before starting, ensure the spec's tickets have been merged and reviewed individually. Prepare a directory outside the repository to save the findings file. The process requires the `codex` and `claude-code` subagents to be installed and available.
When to Use It
- Review and consolidate merged spec tickets
- Generate a manual test plan for a spec
- Run browser tests on a spec's implementation
- Fix issues identified during testing and merge the changes
SKILL.md
SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use
Quality Control
Run this once a spec's tickets have merged, each one already delivered and reviewed alone (typically by tackle-issue). Agents built those tickets independently, so this pass consolidates the spec as a whole in review, then tests it in the running app.
You orchestrate; subagents do the work. Your own hands only brief, watch, decide, ask the user, and merge.
Scope is what the user names: a spec (a parent issue and its sub-issues), a single issue, PRs, or a commit range. Resolve it to the issues that specify the work, their merged PRs, and the range they span: <base>..<head>, where <base> is the default branch just before the first PR. Every brief carries the scope, pinned to the commit it was read at.
Decisions are the product choices the scope already records: decision sections in the issues, Deviations in the PR bodies, the user's replies. Every brief carries them as binding. A subagent that believes one is wrong lists it under Open questions, with a concrete scenario, and leaves the behaviour as it is.
| Role | Agent |
|---|---|
| Finder | Codex GPT Sol, reasoning effort high |
| Consolidator, planner, fixer | Claude Opus, effort high |
| Tester | Codex GPT Sol, reasoning effort high |
Start each subagent with delegate_task and the target above: the newest model of that name orchestrator_capabilities lists, unless the user or the project's AGENTS.md names another. The finder, consolidator, planner and fixer get isolation: "worktree". The tester runs where the plan's Environment section says: isolation: "shared" from the checkout it names, otherwise a worktree, one per lane. If a named model is unavailable, tell the user and stop. Every brief tells a subagent to stop any dev server it started and release any slot it took before handing back.
A brief names each skill to follow by the absolute path of its installed SKILL.md: the project's .agents/skills/<name>/ or the global ~/.agents/skills/<name>/ (npx skills list shows both). spec-review, spec-consolidate and implement are user-invoked, so a subagent can only read them. A brief carries what the skill cannot know (the scope, its Decisions, the repository's local setup) and leaves the skill's steps to the skill: a subagent follows a summary of them in place of the skill, and skips what the summary left out.
Babysit
The subagent that blasts a PR owns its fixes: it makes babysit-pr's one pass on that PR, addressing every review comment and failing check already there, and hands back ending with PR <url>, head <sha>, checks and reviews <state>. Waiting is yours: the subagent hands back rather than watching or polling the PR, so a handback with checks or the automated review still running is complete.
Settled: checks pass (or the repo has none), the automated review finished on the PR, no unresolved actionable threads, its head contains the default branch, and GitHub reports it mergeable. The automated review runs once per PR: request no second one. Read any commit pushed after it, a merge of the default branch or an answer to review, yourself before merging, and wait only for a review that runs on its own for the new head.
A handback without the PR line is unfinished. One that says it is waiting on its own background command resumes by itself when that command finishes: leave it. One that stopped with nothing running gets a t3_thread_send to continue, so it keeps its context. Check a full handback against Settled yourself. A head that lacks the default branch (git merge-base --is-ancestor origin/<default> <sha> after a fetch) goes back to the same subagent to merge it and reverify: GitHub's mergeable flag says the two sides merge, not that the result builds. Any other unsettled PR: watch_pull_request, and send each new comment or failure to that same subagent; the fixes stay its job. Settled: merge with the repo's merge method (match recent merges on the default branch), gh pr merge <n> --<method> --delete-branch --match-head-commit <sha>, then unwatch_pull_request if you watched.
Deciding. Settle a product question yourself when its route is clear: one option follows from the spec, a recorded decision, or the pattern the code already uses, and taking it keeps the scope the user agreed. Record it where the user's answer would have gone, and keep a list of what you decided for the report. A fork goes to the user: a question that adds or drops scope, reverses a recorded decision, or whose options each have a fair case. When unsure, it is a fork.
Asking the user. While any subagent is still running, put questions to the user in your reply rather than a blocking question tool, so handbacks still reach you and settled PRs keep merging while the user decides.
Steps
-
Review and consolidate. Brief the finder: run
spec-reviewover the scope and its range<base>..<head>, writing its findings file to a directory outside the repository that you name. Once it has handed back itsFindingsline, brief the consolidator with that file: runspec-consolidate, publish withblast-it, and babysit it as Babysit says. Done when its PR is Settled, or it reports nothing confirmed (skip to step 3, carrying the open questions). -
Merge the review PR.
-
Plan. Brief a planner subagent: write a manual test plan with
test-plan, at smoke depth, or thorough when the user asked for thorough testing in this request or the one that started the spec, covering the scope and step 1's PR, pinned to the merged default-branch commit, saved outside the repository, with an observe case for each open question from step 1. Done when the plan file exists with case IDs, 📸 marks, observe cases, lanes when it is large and the repository can run slots side by side, and a report template. -
Test. Brief one tester per lane, up to three at once, each in its own worktree on its own slot as the plan's Environment says (a plan without lanes is one lane, run where the plan says): run that lane with
execute-test-planat that commit, writing its report and evidence beside the plan. Answer their questions witht3_pending_request. Done when every case has a result across the lane reports and every lane's slot is released. -
Decide. Read the report and step 1's open questions, and sort each item:
- A FAIL from a defect is a fix.
- A FAIL where the plan expected what a recorded decision since changed is a plan correction; note it for the user.
- An OBSERVED case, an open question, or a FAIL that disputes the spec is a product question: settle it as Deciding says, and put the forks to the user in one round, each with its scenario, the options, and your recommendation. Each decision that asks for a change is a fix.
- A BLOCKED case from the environment is noted for the user.
A defect FAIL needs no answer: brief the fixer on those at once (step 6), with your own change decisions, and send it the user's when they arrive. No fixes: go to step 8.
-
Fix. Brief a fixer subagent with each fix as its spec (a FAIL's steps, expected vs actual and screenshot path; a decision with its scenario): follow
implement, publish withblast-it, and babysit it as Babysit says. Decisions that arrive later go to the same fixer, on the same PR. Done when its PR is Settled with every fix in it. -
Merge the fix PR.
-
Report to the user: each PR merged (link and merge commit), review findings applied, the finder's findings from the consolidator's disposition table (applied, discarded, open question, follow-up), the user's decisions, the decisions you made for the user (each marked as yours), test counts (PASS/FAIL/BLOCKED/OBSERVED), fixes shipped, plan corrections, BLOCKED causes, and anything left behind in data or environment.
View original Markdown
---
name: quality-control
description: "Put a spec's merged tickets through a quality pass: a review and fix PR, a test plan, a browser test run, and a fix PR for what the run finds, merging each PR once settled."
disable-model-invocation: true
license: MIT
---
# Quality Control
Run this once a spec's tickets have merged, each one already delivered and reviewed alone (typically by `tackle-issue`). Agents built those tickets independently, so this pass consolidates the spec as a whole in review, then tests it in the running app.
You orchestrate; subagents do the work. Your own hands only brief, watch, decide, ask the user, and merge.
**Scope** is what the user names: a spec (a parent issue and its sub-issues), a single issue, PRs, or a commit range. Resolve it to the issues that specify the work, their merged PRs, and the range they span: `<base>..<head>`, where `<base>` is the default branch just before the first PR. Every brief carries the scope, pinned to the commit it was read at.
**Decisions** are the product choices the scope already records: decision sections in the issues, Deviations in the PR bodies, the user's replies. Every brief carries them as binding. A subagent that believes one is wrong lists it under **Open questions**, with a concrete scenario, and leaves the behaviour as it is.
| Role | Agent |
| --- | --- |
| Finder | Codex GPT Sol, reasoning effort `high` |
| Consolidator, planner, fixer | Claude Opus, effort `high` |
| Tester | Codex GPT Sol, reasoning effort `high` |
Start each subagent with `delegate_task` and the target above: the newest model of that name `orchestrator_capabilities` lists, unless the user or the project's `AGENTS.md` names another. The finder, consolidator, planner and fixer get `isolation: "worktree"`. The tester runs where the plan's Environment section says: `isolation: "shared"` from the checkout it names, otherwise a worktree, one per lane. If a named model is unavailable, tell the user and stop. Every brief tells a subagent to stop any dev server it started and release any slot it took before handing back.
A brief names each skill to follow by the absolute path of its installed `SKILL.md`: the project's `.agents/skills/<name>/` or the global `~/.agents/skills/<name>/` (`npx skills list` shows both). `spec-review`, `spec-consolidate` and `implement` are user-invoked, so a subagent can only read them. A brief carries what the skill cannot know (the scope, its Decisions, the repository's local setup) and leaves the skill's steps to the skill: a subagent follows a summary of them in place of the skill, and skips what the summary left out.
## Babysit
The subagent that blasts a PR owns its fixes: it makes `babysit-pr`'s one pass on that PR, addressing every review comment and failing check already there, and hands back ending with `PR <url>, head <sha>, checks and reviews <state>`. Waiting is yours: the subagent hands back rather than watching or polling the PR, so a handback with checks or the automated review still running is complete.
**Settled**: checks pass (or the repo has none), the automated review finished on the PR, no unresolved actionable threads, its head contains the default branch, and GitHub reports it mergeable. The automated review runs once per PR: request no second one. Read any commit pushed after it, a merge of the default branch or an answer to review, yourself before merging, and wait only for a review that runs on its own for the new head.
A handback without the PR line is unfinished. One that says it is waiting on its own background command resumes by itself when that command finishes: leave it. One that stopped with nothing running gets a `t3_thread_send` to continue, so it keeps its context. Check a full handback against **Settled** yourself. A head that lacks the default branch (`git merge-base --is-ancestor origin/<default> <sha>` after a fetch) goes back to the same subagent to merge it and reverify: GitHub's mergeable flag says the two sides merge, not that the result builds. Any other unsettled PR: `watch_pull_request`, and send each new comment or failure to that same subagent; the fixes stay its job. Settled: merge with the repo's merge method (match recent merges on the default branch), `gh pr merge <n> --<method> --delete-branch --match-head-commit <sha>`, then `unwatch_pull_request` if you watched.
**Deciding.** Settle a product question yourself when its route is clear: one option follows from the spec, a recorded decision, or the pattern the code already uses, and taking it keeps the scope the user agreed. Record it where the user's answer would have gone, and keep a list of what you decided for the report. A **fork** goes to the user: a question that adds or drops scope, reverses a recorded decision, or whose options each have a fair case. When unsure, it is a fork.
**Asking the user.** While any subagent is still running, put questions to the user in your reply rather than a blocking question tool, so handbacks still reach you and settled PRs keep merging while the user decides.
## Steps
1. **Review and consolidate.** Brief the finder: run `spec-review` over the scope and its range `<base>..<head>`, writing its findings file to a directory outside the repository that you name. Once it has handed back its `Findings` line, brief the consolidator with that file: run `spec-consolidate`, publish with `blast-it`, and babysit it as **Babysit** says. Done when its PR is **Settled**, or it reports nothing confirmed (skip to step 3, carrying the open questions).
2. **Merge** the review PR.
3. **Plan.** Brief a planner subagent: write a manual test plan with `test-plan`, at smoke depth, or thorough when the user asked for thorough testing in this request or the one that started the spec, covering the scope and step 1's PR, pinned to the merged default-branch commit, saved outside the repository, with an observe case for each open question from step 1. Done when the plan file exists with case IDs, 📸 marks, observe cases, lanes when it is large and the repository can run slots side by side, and a report template.
4. **Test.** Brief one tester per lane, up to three at once, each in its own worktree on its own slot as the plan's Environment says (a plan without lanes is one lane, run where the plan says): run that lane with `execute-test-plan` at that commit, writing its report and evidence beside the plan. Answer their questions with `t3_pending_request`. Done when every case has a result across the lane reports and every lane's slot is released.
5. **Decide.** Read the report and step 1's open questions, and sort each item:
- A FAIL from a defect is a fix.
- A FAIL where the plan expected what a recorded decision since changed is a plan correction; note it for the user.
- An OBSERVED case, an open question, or a FAIL that disputes the spec is a product question: settle it as **Deciding** says, and put the forks to the user in one round, each with its scenario, the options, and your recommendation. Each decision that asks for a change is a fix.
- A BLOCKED case from the environment is noted for the user.
A defect FAIL needs no answer: brief the fixer on those at once (step 6), with your own change decisions, and send it the user's when they arrive. No fixes: go to step 8.
6. **Fix.** Brief a fixer subagent with each fix as its spec (a FAIL's steps, expected vs actual and screenshot path; a decision with its scenario): follow `implement`, publish with `blast-it`, and babysit it as **Babysit** says. Decisions that arrive later go to the same fixer, on the same PR. Done when its PR is **Settled** with every fix in it.
7. **Merge** the fix PR.
8. **Report** to the user: each PR merged (link and merge commit), review findings applied, the finder's findings from the consolidator's disposition table (applied, discarded, open question, follow-up), the user's decisions, the decisions you made for the user (each marked as yours), test counts (PASS/FAIL/BLOCKED/OBSERVED), fixes shipped, plan corrections, BLOCKED causes, and anything left behind in data or environment.
Community Reviews & Field Notes
Tried this skill on your own project? Share the model you used and the results you got.