plan-complete
SkillDev toolsComplete a plan, final deep QG, finalize artifacts, produce Reference doc
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the plan-complete skill
What this skill tells your AI
The instructions your AI receives, as published by the-agency-ai/the-agency in .claude/skills/plan-complete/SKILL.md and read by ahel’s review.
Plan Complete
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.
Arguments
- $ARGUMENTS: Plan name or path (e.g., "deployment infrastructure" or "docs/plans/20260322-deployment-infrastructure.md"). If empty, find the most recently modified plan in
docs/plans/.
Instructions
Step 1: Preconditions
- If
$ARGUMENTSis empty, find the most recently modified plan indocs/plans/. - Run
git diff --stat HEADandgit status. If no changed files, note "clean tree — QG will review the full project scope." - Identify the plan file and read it to understand the full scope.
Step 2: Run the quality gate
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.
Step 3: Principal approval
Present the QGR to the principal. Do not proceed without explicit approval. This is a plan boundary — the principal must sign off.
Step 4: Finalize the Plan
- Read the plan file
- Update all phase statuses to "Complete"
- Ensure all QGRs are present
- Add a "Plan Completion" section:
- Summary of all phases delivered
- Total test count across all phases
- Total issues found and fixed across all QGRs
- Any open items or follow-up work identified
Step 5: Finalize the A&D
- Locate the A&D document (search
agency/workstreams/*/anddocs/plans/) - Review: does it reflect reality, not aspirations?
- Update any design decisions that changed during implementation
- Mark any decisions that were deferred or abandoned
Step 6: Finalize the PVR
- Locate the PVR document (search
agency/workstreams/*/) - Review: are all requirements addressed?
- Note any requirements that were descoped or deferred
- Update success criteria with actual results
Step 7: Produce the Reference Document
Generate a final "this is how it works" document:
- Create
docs/<project-name>/reference.md(or appropriate location) - Structure:
- Overview (from PVR goal)
- Architecture (from A&D)
- Key design decisions (from A&D, with rationale)
- How to use (from Plan, distilled to operational knowledge)
- Known limitations and future work
- Present the draft to the principal for review
Step 8: Commit
Use /git-safe-commit via the Skill tool. The message must follow the Phase X.Y: format. Principal must approve the commit message.
Step 9: Update handoff
Locate the handoff file for this project (glob usr/*/*/handoff.md or usr/*/captain/handoff.md). Update with:
- Plan completion status
- Reference document location
- Any follow-up work identified
- Handoff to captain for PR creation
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]
Signals
- GitHub stars
- 55
- Forks
- 8
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
plan-complete- Source
- github.com/the-agency-ai/the-agency