From harness
Use when ready to archive the plan and create the PR, when user says "we're done", "complete this", "wrap up", or after /harness:reflect finishes
npx claudepluginhub donovan-yohan/chalk-bag --plugin harness# Complete Plan archival, prune health check, and PR creation. Run after `/harness:review` and `/harness:reflect`. ## Usage ## Invocation **IMMEDIATELY execute this workflow:** ### Phase 1: Identify Plan 1. List files in `docs/exec-plans/active/`. 2. If multiple plans exist, ask user which to complete. If only one, confirm it. 3. Read the full plan — verify it has: - Progress section with tasks checked off - Outcomes & Retrospective section filled in (by `/harness:reflect`) - If retrospective is empty, suggest running `/harness:reflect` first ### Phase 2: Verification Gate...
/completeCompletes partially implemented features: assesses gaps, implements missing pieces, hardens code, adds tests/docs, runs suite, and reports status changes with filled gaps list.
/completeCompletes Git worktree task: verifies phases, commits changes excluding planning files, merges to target branch, removes worktree, deletes branch.
/completeCompletes a task by marking it done, guiding learnings capture via prompts, showing unblocked tasks, and suggesting next steps like archiving or ready tasks.
/completeMarks task as complete after verifying acceptance criteria, tests, no issues; moves directory to completed/, updates project_state.md, suggests next task.
/completeMark a task as complete. Closes the task and commits .dots/ changes on the current branch.
Plan archival, prune health check, and PR creation. Run after /harness:review and /harness:reflect.
/harness:complete # Complete most recent active plan
IMMEDIATELY execute this workflow:
docs/exec-plans/active/./harness:reflect)/harness:reflect firstsuperpowers:verification-before-completion using the Skill tool: Skill("superpowers:verification-before-completion"). Follow the loaded skill to run the project's verification commands (tests, build, lint, typecheck). All must pass before proceeding. Do not archive or create a PR with failing verification.Change plan status from Active to Completed:
> **Status**: Completed | **Created**: {date} | **Completed**: {date}
Add completion entry to Decision Log:
| {date} | Retrospective | Plan completed | {summary} |
Move the plan file:
mv docs/exec-plans/active/{file} docs/exec-plans/completed/{file}
7.5. Archive the source design doc:
Design Doc: path (or Bug Analysis: or Refactor Scope:)status: to implementedimplemented-by: docs/exec-plans/completed/{file}---
status: implemented
created: {infer from filename date prefix, or use file creation date}
branch: {current branch}
implemented-by: docs/exec-plans/completed/{file}
---
git diff $(git log --diff-filter=A --format=%H -- docs/exec-plans/active/{file} | tail -1)...HEAD --diff-filter=D --name-only
For each deleted path, verify no Tier 2/3 doc still describes it as existing code. Fix any stale references before archiving — confident docs about nonexistent code is the most dangerous staleness.Update docs/PLANS.md:
Update docs/DESIGN.md if any new patterns or key decisions were established.
Update docs/ARCHITECTURE.md if any new modules were created or boundaries changed.
11.5. Update design-docs index with archival:
docs/design-docs/index.md## Current Designs and ## Archived sections:
## Current Designs header above the existing tableStatus column to the table## Archived section below with its own table (same columns)status: implemented or status: superseded to the Archived tablestatus: current or no frontmatter in the Current Designs tableCurrent | Implemented | Superseded | Stale11.6. Resolve the harness runtime directory:
bash HARNESS_DIR=$(bash ${CLAUDE_PLUGIN_ROOT}/scripts/harness-resolve-dir.sh --repo-root .)
11.7. If HARNESS_DIR is not empty, check for proposals from this session:
- List files in $HARNESS_DIR/proposals/ matching today's date prefix
- For each proposal, read its status, scope, signal, and agent
11.8. If proposals exist, include them in the PR description (Phase 7). Add a "Harness Evolution" section to the PR body: ```markdown ## Harness Evolution
| Proposal | Agent | Signal | Scope | Status |
|----------|-------|--------|-------|--------|
| {slug} | {agent} | {signal} | {scope} | {applied/pending} |
**Auto-applied ({N}):** These proposals met all safety criteria (escape-sourced, additive, 5+ agent runs) and were applied automatically.
**Pending review ({N}):** These proposals need human review before applying.
```
11.9. If no proposals or no .harness/: skip. The PR is created normally.
/harness:prune inline to verify docs health after all updates. Report any issues.pr:author command is available, invoke itgh pr create directly with:
Output:
## Complete
### Plan
- Archived: docs/exec-plans/completed/{file}
- Tasks: {M} completed, {D} deviated, {K} surprises
### Tier 2 Updates
- PLANS.md: updated
- DESIGN.md: {updated | no changes}
- ARCHITECTURE.md: {updated | no changes}
### Prune Health: {HEALTHY | NEEDS ATTENTION}
### PR: #{number} — {url}
Update run-state (if .harness/ runtime exists):
HARNESS_DIR=$(bash ${CLAUDE_PLUGIN_ROOT}/scripts/harness-resolve-dir.sh --repo-root .)
[ -n "$HARNESS_DIR" ] && bash ${CLAUDE_PLUGIN_ROOT}/scripts/harness-update-state.sh \
--harness-dir "$HARNESS_DIR" \
--phase "complete"