/spec-workflow:spec-acceptancefrom spec-workflow
Explicit activation only. Internal final step of a user-invoked spec-workflow. Select only after the active branch hands off, or when the user explicitly names spec-acceptance and thereby opts into the plugin; otherwise do not select.
Ships in spec-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this after every approved task in <specs_dir>/tasks.md is complete or explicitly skipped. Resumable review state lives in <specs_dir>/acceptance_state.json; acceptance repairs live in <specs_dir>/acceptance-fixes.md. Do not create a parallel acceptance.md or append repair tasks to the frozen task plan.
This skill may run only inside a user-initiated spec-workflow run. If named directly, enter through the spec-workflow router and its resume gates first. A generic request to review or verify code must not activate this plugin.
The user's original opt-in to the current Spec workflow covers the review agents needed to finish that same workflow. Do not pause for a second, ritual authorization before acceptance. Stop only if orchestration would materially expand scope, use a newly sensitive resource, incur an unapproved cost, or perform another separately consequential action.
If the branch skill has not already printed the announcement, print:
我读到了Spec-acceptance技能。
<specs_dir>/tasks.md has no unchecked tasks and every completed or skipped task has evidence.acceptance-finish succeeds.acceptance-status before launching agents whenever the state file exists. Resume planned/running work instead of rebuilding it from chat history.ACTIONABLE_ISSUES only for evidence-backed P0, P1, or P2 findings. Record P3/P4 advisory findings, but return PASS when no P0-P2 finding remains.Read the approved primary artifacts, tasks.md, relevant diffs, and recorded verification. Detect the branch from its artifacts:
product.md, architecture.md, tasks.mddesign.md, requirements.md, tasks.mdbugfix.md, design.md, tasks.mdRun:
python <plugin-root>/scripts/validate_spec.py <specs_dir> --pre-acceptance
If it fails, return to controlled implementation and repair the reported readiness issue. If state already exists, resume it with:
python <plugin-root>/scripts/spec_progress.py acceptance-status <specs_dir>
Treat the returned mode, agent IDs, affected units, issues, and fixes as authoritative.
For a new acceptance ledger, select one of these modes:
adaptive (default): one independent first-wave reviewer per unit; add an adversarial reviewer only for a high-risk unit or when the first reviewer reports P0-P2 issues.quick: low-risk work only; skip per-unit reviewers and run one independent global integration review after the machine gate. Use only when the user explicitly chooses the lightweight acceptance path. The state tool rejects high-risk tasks.full: first-wave plus adversarial review for every unit. Use when explicitly requested or when broad, critical coupling warrants the extra cost.Initialize once; the selected mode is frozen for that ledger:
python <plugin-root>/scripts/spec_progress.py acceptance-init <specs_dir> --mode adaptive
Omitting --mode selects adaptive. The tool freezes the original task IDs and task text, builds contiguous review units of at most three low-risk tasks, isolates high-risk tasks, and plans only the reviewers required by the selected mode. An unfinished legacy 0.2.x ledger resumes as full; an already accepted legacy ledger remains accepted.
Skip this state in quick mode. Otherwise, launch only planned first_wave agents. Before each launch, call acceptance-start-agent (or MCP spec_acceptance_start_agent). Each agent owns exactly one unit.
Every prompt must include:
Expected report:
## Review Unit
- Unit: [task IDs]
- Status: PASS | ACTIONABLE_ISSUES
- Completion: [complete / incomplete with evidence]
- Spec Adherence: [strict / deviation with evidence]
- Verification: [sufficient / missing with evidence]
- Issues: [P0-P4 findings with evidence or n/a]
For each agent, use this order:
acceptance-record-issue --agent <agent-id> while the agent is running. P3/P4 findings are still recorded.PASS or ACTIONABLE_ISSUES.The ledger refuses to finish when an ACTIONABLE_ISSUES result is not bound to at least one recorded issue.
Launch only adversarial agents that appear as planned in acceptance-status. The state machine enforces that the matching first-wave reviewer finishes first.
An adversarial agent reviews the same unit, first-wave report, and evidence, and tries to disprove the apparent pass by checking missed work, spec drift, weak tests, hidden regressions, unsafe fallback, and unsupported assumptions. Record and complete its result in the same order as State C.
Mode behavior:
adaptive: high-risk units receive this reviewer immediately; a low-risk unit receives one only after its first-wave reviewer reports P0-P2 issues.full: every unit receives one.quick: none are planned.After all currently planned review agents finish, run:
python <plugin-root>/scripts/spec_progress.py acceptance-plan-fixes <specs_dir>
The command updates <specs_dir>/acceptance-fixes.md without changing tasks.md:
Start and complete each planned fix with evidence. In a Git workflow, commit the repaired code and its acceptance-fix ledger update before re-review; the global reviewer must inspect a clean, committed business-code state. Then run:
python <plugin-root>/scripts/spec_progress.py acceptance-next-round <specs_dir>
For adaptive and full, only affected units are reset and re-reviewed; unchanged passing units stay sealed. For quick, the next round runs a new global integration review. Repeat only while the automatic-fix limit permits it.
When all required unit reviewers pass and no issue, fix, or affected unit remains, the ledger plans one GLOBAL integration agent. In quick mode this is the only reviewer.
The integration agent receives the approved artifacts, full task plan, combined diff, unit-review conclusions, and verification evidence. It checks cross-unit behavior, end-to-end spec coverage, interaction regressions, release/rollback risk, and whether the combined result still matches the approved baseline.
Start and complete it through the same ledger commands. Record integration findings against unit GLOBAL and include the affected task IDs. A P0-P2 result returns to State E; after its targeted repairs and unit re-review, a new integration agent must pass.
Finally run:
python <plugin-root>/scripts/spec_progress.py acceptance-finish <specs_dir>
The finish command fails closed unless all of these are true:
tasks.md, spec.yml, reviewed Git commit, and non-ledger worktree content still match the integration review snapshotThe stored snapshot represents the reviewed pre-finish state. acceptance-finish writes final ledger metadata only after this comparison succeeds.
If acceptance-finish succeeds, summarize the workflow type, approved specs, completed/skipped tasks, key verification, selected acceptance mode, and final result. Do not dump raw review transcripts.
When the run is inside a git repository, close the delivery chain from ../spec-workflow/SKILL.md:
spec/<run-id>gh exists, keep the branch local and provide the appropriate local handoffIf acceptance remains blocked, report only the evidence-backed P0-P2 findings, affected task IDs, automatic-fix rounds used, and the concrete decision needed next.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gy212/useful-marketplace --plugin spec-workflow7 skills in this plugin
/spec-bugfixExplicit activation only. Internal branch of a user-invoked spec-workflow. Select only after the active router hands off, or when the user explicitly names spec-bugfix and thereby opts into the plugin; otherwise do not select./spec-design-firstExplicit activation only. Internal branch of a user-invoked spec-workflow. Select only after the active router hands off, or when the user explicitly names spec-design-first and thereby opts into the plugin; otherwise do not select./spec-intakeExplicit activation only. Internal step of a user-invoked spec-workflow. Select only after the active spec-workflow router hands off, or when the user explicitly names spec-intake and thereby opts into the plugin; otherwise do not select.