Agent skill
plan-complete
Complete a plan by updating design docs and removing the transitory plan file. Use when implementation is finished and knowledge should be persisted to design documentation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/plan-complete
SKILL.md
Plan Completion
Completes implementation plans by updating linked design documentation, recording completion metadata, and removing the transitory plan file.
Overview
Plans are ephemeral work tracking (like GitHub issues). When work is done, this skill:
- Validates completion requirements
- Updates linked design docs with implementation status
- Records completion metadata
- Deletes the plan file (knowledge now lives in design docs)
Philosophy: Plans are temporary. Design docs are permanent.
Quick Start
Complete a plan:
/plan-complete plan-design-linking-phase-1
With custom outcome:
/plan-complete cache-optimization --outcome=partial
Dry run (preview changes):
/plan-complete subagent-integration --dry-run
Parameters
Required
plan-name: Plan identifier (without .md extension)
Optional
--outcome: Completion outcome (success, partial, failed) [default: success]--dry-run: Preview changes without executing--keep: Keep plan file after completion (for reference)
Workflow
High-level completion process:
- Load plan from
.claude/plans/{plan-name}.md - Validate completion requirements (status, progress, linked docs exist)
- Update design docs (status, last-synced, completion metadata)
- Record completion in design doc frontmatter
- Delete plan file (unless --keep specified)
- Generate report of all actions taken
For detailed implementation steps, see supporting documentation below.
Supporting Documentation
When you need detailed information, load the appropriate supporting file:
For Completion Workflow
See instructions.md for:
- Step-by-step completion process
- Design doc update procedures
- Completion metadata format
- Validation requirements
- Error handling and rollback
Load when: Performing completion or need implementation details
For Design Doc Updates
See design-doc-updates.md for:
- Updating status (draft → current, stub → current)
- Recording completion metadata format
- Handling multiple linked design docs
- Last-synced timestamp updates
- Bidirectional link cleanup
Load when: Working with design doc updates or metadata
For Usage Examples
See examples.md for:
- Complete successful implementation
- Partial completion with notes
- Failed implementation (knowledge still valuable)
- Multiple design docs linked
- Dry run preview
- Keep plan file for reference
Load when: User needs examples or clarification
Validation Requirements
Before completion, the skill verifies:
Plan Requirements
- ✅ Plan file exists
- ✅ Status is "completed" or can be set to completed
- ✅ Progress is 100%
- ✅ All required frontmatter fields present
- ✅ Has
implementsfield with design docs
Design Doc Requirements
- ✅ All linked design docs exist
- ✅ Design docs are in appropriate state (draft/stub)
- ✅ Bidirectional links are correct
Implementation Evidence
- ✅ Design docs have been updated with implementation details
- ✅ Last-synced is reasonably recent (< 30 days)
- ✅ Completeness score increased during implementation
What Gets Updated
Design Doc Frontmatter
status: current # Was: draft or stub
last-synced: 2026-01-18 # Today's date
completeness: 95 # Should be high after implementation
# New completion metadata
completed-plans:
- name: "plan-design-linking-phase-1"
completed: "2026-01-18"
outcome: "success"
Plan File
Deleted (unless --keep specified) because:
- Knowledge now lives in design docs
- Plan was temporary work tracking
- Reduces clutter in
.claude/plans/
Error Handling
Plan Not Completed
ERROR: Cannot complete plan with status 'in-progress'
Current state:
Status: in-progress
Progress: 75%
Required state:
Status: completed
Progress: 100%
Fix: Update plan frontmatter first, then complete
Linked Design Docs Missing
ERROR: Linked design doc not found
Plan implements: design-doc-system/missing-doc.md
Path checked: .claude/design/design-doc-system/missing-doc.md
Fix: Create design doc or fix path in plan frontmatter
Design Doc Already Current
WARNING: Design doc already marked as current
Doc: effect-type-registry/observability.md
Status: current
Last-synced: 2026-01-15
This may indicate the plan was already completed.
Continue anyway? (y/n)
Integration
Works well with:
/plan-validate- Validate before completing/design-sync- Sync design docs before completion/design-review- Review updated docs/plan-list- Find completed plans
Success Criteria
A successful completion:
- ✅ All linked design docs updated to current status
- ✅ Completion metadata recorded
- ✅ Last-synced timestamps updated
- ✅ Plan file deleted (or kept if requested)
- ✅ Clear completion report generated
- ✅ No broken links remain
Rollback
If something goes wrong during completion:
- Design doc changes are in git (can revert)
- Plan file deletion is final (but can recreate if needed)
- Recommendation: Use
--dry-runfirst for preview
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?