.claude/skills/plan-complete/SKILL.md
Complete a plan — final deep QG, finalize artifacts, produce Reference doc
npx skillsauth add the-agency-ai/the-agency .claude/skills/plan-completeInstall 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.
Run this when all phases in a plan are done. This finalizes the living artifacts and produces the Reference document.
At this point, master already contains the squashed phase commits (landed via /phase-complete at each phase boundary). No additional squash needed.
docs/plans/.$ARGUMENTS is empty, find the most recently modified plan in docs/plans/.git diff --stat HEAD and git status. If no changed files, note "clean tree — QG will review the full project scope."Invoke /quality-gate via the Skill tool, passing plan-complete: $ARGUMENTS as the skill argument. The plan-complete prefix tells /quality-gate what boundary type to use for the QGR receipt filename.
This runs the full QG protocol: parallel agent review → consolidate → bug-exposing tests → fix → coverage tests → confirm clean → present QGR → write QGR receipt file.
The QG scope should be the entire project codebase, not just recent changes — this is the final gate before the plan is declared complete.
Wait for the QGR to be presented and the receipt file written before proceeding.
Present the QGR to the principal. Do not proceed without explicit approval. This is a plan boundary — the principal must sign off.
claude/workstreams/*/ and docs/plans/)claude/workstreams/*/)Generate a final "this is how it works" document:
docs/<project-name>/reference.md (or appropriate location)Use /git-safe-commit via the Skill tool. The message must follow the Phase X.Y: format. Principal must approve the commit message.
Locate the handoff file for this project (glob usr/*/*/handoff.md or usr/*/captain/handoff.md). Update with:
Print:
Plan complete. Master contains all phase commits. The captain session on master manages PR creation and pushes to origin.
Artifacts finalized:
- Plan: [path]
- A&D: [path]
- PVR: [path]
- Reference: [path]
business
Sync worktree with master — merge, copy settings, run sandbox-sync, report changes
tools
List all git worktrees with status info (branch, clean/dirty, deps)
tools
Remove a git worktree and optionally delete its branch
development
Create a new git worktree with dedicated branch and bootstrapped dev environment