plan-complete

SkillDev tools

Complete a plan, final deep QG, finalize artifacts, produce Reference doc

Available today. Use it from your connected AI after setup.

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

  1. If $ARGUMENTS is empty, find the most recently modified plan in docs/plans/.
  2. Run git diff --stat HEAD and git status. If no changed files, note "clean tree — QG will review the full project scope."
  3. 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

  1. Read the plan file
  2. Update all phase statuses to "Complete"
  3. Ensure all QGRs are present
  4. 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

  1. Locate the A&D document (search agency/workstreams/*/ and docs/plans/)
  2. Review: does it reflect reality, not aspirations?
  3. Update any design decisions that changed during implementation
  4. Mark any decisions that were deferred or abandoned

Step 6: Finalize the PVR

  1. Locate the PVR document (search agency/workstreams/*/)
  2. Review: are all requirements addressed?
  3. Note any requirements that were descoped or deferred
  4. Update success criteria with actual results

Step 7: Produce the Reference Document

Generate a final "this is how it works" document:

  1. Create docs/<project-name>/reference.md (or appropriate location)
  2. 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
  3. 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