/epic-workflow:wrapup <epic-id>from epic-workflow
Independently verifies a completed epic's implementation against its spec, closes it out, and orients the team to next steps. Useful after an epic is implemented and needs independent review.
Ships in epic-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are performing an independent verification and completion of Epic $ARGUMENTS. The epic ID may be a legacy integer (e.g., 7, 6.5) or a 7-character alphanumeric ID (e.g., a3f2K7p) — both formats are accepted throughout this skill.
You are acting as an independent reviewer — you did NOT implement this epic. Your job is to verify the implementation against the spec, close out the epic if it passes, and orient the team toward what's next.
This command has three phases: Verify, Complete, and Orient. Do not skip ahead — each phase gates the next.
Before any other action: check whether docs/implementation-plan/index.md contains a legacy status table header — a line matching | Phase | Epic | with a | Status | column present in the file. If the legacy header is found, stop immediately and print:
This project uses the pre-v2.5.0 implementation-plan layout. Run
/epic-workflow:migrate-2.5once to upgrade to the new layout (per-phase indexes + status sidecars), then retry your command.
Do not attempt the skill's normal flow on a legacy layout.
Your goal is to independently confirm the implementation meets the spec. Do not trust the implementer's self-assessment — inspect the code yourself.
Safe to re-run: This command is safe to run multiple times. If a previous wrapup attempt was interrupted or failed, just run
/epic-workflow:wrapup Nagain — it will re-verify from scratch.
CLAUDE.md content already loaded in your system context. Do not re-read it via the Read tool — it is injected into every conversation turn.docs/implementation-plan/status/epic-$ARGUMENTS.md to get the epic's current status. Phase 3 (Orient) loads all phase indexes and sidecars when it walks the dependency graph — Step 1.1 only needs this epic's sidecar.status: Implemented, proceed. If status: In Progress or status: Not Started, inform the user that /epic-workflow:start must finish first. If status: Complete, inform the user it has already been wrapped up.**Source:** Issue #<N> line. If present, capture the integer <N> as the source issue number — it drives the Step 5b PR body Closes #<N> line. If no Source: line exists, the source issue number is unknown; skip the Closes line later.## Vision & Scenario Anchors section. An independent reviewer reads these first so the rest of the verification is judged against the right notion of user intent:
docs/product-vision-planning/product-vision.md and read the specific section cited. Compare paraphrase to source.docs/product-vision-planning/concept-of-operations.md and read the specific scenario step cited. Compare paraphrase to source.docs/implementation-plan/session-handoffs/ for this epic (if one exists).docs/architecture.md and docs/design-notes.md — load only what is relevant to this epic:
architecture.md's table of contents, read the relevant section.docs/design-notes.md.epic-<id>- prefix (where <id> is either a legacy integer, a decimal like 6.5, or a 7-char alphanumeric ID), and the .md suffix. For example, epic-3-user-auth.md → user-auth, and epic-a3f2K7p-user-auth.md → user-auth. If there is no suffix after epic-<id>, omit it.git branch --list … && echo "exists" (always exits 0) or on git checkout failing silently:
git show-ref --verify --quiet refs/heads/feature/epic-<id>-<short-name>
Exit 0 = branch exists; nonzero = missing. Then:
feature/epic-<id>-<short-name> exists, run git checkout feature/epic-<id>-<short-name> (where <id> is $ARGUMENTS verbatim).feat/epic-N (applies to integer IDs only — sessions started before v1.3.0). If the legacy branch exists, check it out.Read the epic spec's Acceptance Criteria section. For each item, independently verify it was implemented correctly by reading the relevant source files.
Report each criterion:
Read the epic spec's Verification section. For each item, independently confirm it is satisfied:
playwright-cli for any visual checks — always use the live backend with real data (see the "Local Environment" section in CLAUDE.md for how to start the backend). Do NOT mock API responses unless the backend genuinely cannot start. Start the backend first, then the frontend, and navigate with playwright-cli against the real running app.Report each item:
Read the Verification & Quality Gates section from CLAUDE.md. Run every applicable check independently:
playwright-cli (if UI was changed)playwright-cli (if UI was changed)Review the implementation for:
docs/reference/docs/architecture.md and docs/design-notes.md were loaded conditionally in Step 1.1 item 7. If neither was loaded (the epic had no cross-cutting surface), record "no architectural surface affected" and move on.Present a consolidated report to the user. The report has two jobs: a fast skim at the top (counters) and a reviewer-friendly narrative below (Highlights + Conclusion).
# Epic <id>: [Name] — Verification Report
## Counts
- Acceptance Criteria: X/Y PASS
- Verification Items: X/Y PASS, Z CANNOT VERIFY
- Quality Gates: X/Y PASS
## Anchor Reconciliation
- [One of: "All vision and scenario anchors matched their source sections" / "Anchors grandfathered — spec pre-dates v2.1.0" / "Vision docs not yet present (greenfield placeholder)" / specific conflicts resolved, each with a one-line note on what intent was confirmed]
## Verification Narrative
### Highlights
- ✅ <Check name> was run and it passed.
- ✅ <Check name> was run and it passed.
- ⚠️ <Check name> mostly passed — <one-sentence exception>.
- ❌ <Check name> failed — <one-sentence reason>.
### Conclusion
<2–3 sentences explaining why this verification is sufficient for the epic's
acceptance criteria, or — if FAIL — what needs to be addressed before re-run>
## Code Review Findings
- [list any concerns, or "No issues found"]
## Verdict: PASS / FAIL / PASS WITH EXCEPTIONS
Authoring the Highlights list:
:white_check_mark: — they don't render in git commits or many markdown viewers.If the verdict is FAIL: Stop here. List the specific items that need to be fixed. Do NOT proceed to Phase 2. The implementer needs to address the failures, then this command should be run again.
If the verdict is PASS or PASS WITH EXCEPTIONS: Ask the user to confirm before proceeding to Phase 2.
Your goal is to close out the epic by writing the permanent record and updating project tracking.
Before writing the handoff or PR body, ask the user whether they performed any manual verification beyond the automated gates from Phase 1. Claude cannot infer this — it must come from the human.
Use AskUserQuestion:
"Did you perform any manual verification beyond the automated gates I ran?"["Yes — I performed manual verification", "No — only automated gates were run"]If Yes: follow up with a free-text request — "Briefly describe what you manually checked (one or two sentences)." Store the user's verbatim answer for use in Step 2.1 and Step 5b.
If No: store the literal string No as the manual-verification value.
This is a disclosure, not a gate — No is a perfectly acceptable answer. The point is the disclosure, not ceremony.
Write the completion handoff to docs/implementation-plan/session-handoffs/epic-<id>-complete.md (where <id> is $ARGUMENTS verbatim — legacy integer or 7-char alphanumeric).
Use the template at plugins/epic-workflow/skills/wrapup/HANDOFF_TEMPLATE.md. Read that file once, copy its template body verbatim into the handoff file, and fill in placeholders from the Step 1.6 verification report and the Step 2.0 manual-verification disclosure.
Update docs/implementation-plan/status/epic-$ARGUMENTS.md:
status: Implemented to status: Completecompleted: <today> (YYYY-MM-DD)handoff: session-handoffs/epic-<id>-complete.md (where <id> is $ARGUMENTS verbatim)Automatically commit all changes made during verification and completion without asking the user for permission:
docs/implementation-plan/status/epic-$ARGUMENTS.md, and any other files modified during verification (specific file paths, not git add -A)chore(epic-<id>): verify and complete — <brief summary> (where <id> is $ARGUMENTS verbatim)Do NOT push to the remote yet.
Your goal is to help the user decide what to work on next. Glob docs/implementation-plan/phase-*/index.md and read all phase indexes; glob docs/implementation-plan/status/epic-*.md and read all sidecars. (Step 1.1 item 2 only loaded this epic's sidecar.) Assemble the full dependency graph from the phase indexes and look up all epic statuses from the sidecars. Then present:
List any epics whose dependencies are now fully satisfied thanks to this epic's completion. For each, include:
If multiple epics are now unblocked, call out which ones can be worked on in parallel.
Based on the dependency graph and project state, recommend which epic to start next (or which set to run in parallel), with a brief rationale.
If the verification found any non-blocking issues (PASS WITH EXCEPTIONS, CANNOT VERIFY items, tech debt), list them here as items to address before the final QA epic or during CI/CD setup.
Present this as a clear summary the user can act on:
## Next Steps
### Unblocked Epics
- Epic X: [Name] — [one-line summary] (all dependencies met)
- Epic Y: [Name] — [one-line summary] (all dependencies met)
### Recommended Action
[Your recommendation and why]
### Outstanding Items (non-blocking)
- [Items to address later]
After presenting the orientation summary, automatically refresh docs/architecture.md and
docs/design-notes.md to reflect the as-built codebase. Delegate this to a subagent using
the Haiku model so the main session stays focused.
Use the Agent tool with model haiku (the shorthand resolves to the current Haiku version automatically). Brief the subagent with:
Execute the
/epic-workflow:refresh-docsskill (no arguments — refresh both documents). When you reach Step 8 (Commit), auto-commit without asking the user for permission. Commit message format:docs: refresh architecture and design notes — <brief summary of changes>Do NOT push to the remote.
Wait for the subagent to complete before proceeding. The refreshed documents must be committed on the feature branch before it is merged into main.
After Phase 3 orientation is complete and the Step 4 doc refresh subagent has
committed on the feature branch, ship the branch. Ask the user which mode to use
via AskUserQuestion. Present both options neutrally — do not auto-detect a
default, do not recommend one mode over the other. There is no reliable signal
to determine which mode is correct for the user's context (repo permissions, team
conventions, project phase, and personal preference all vary), so this choice must
be made by the user every invocation.
"Ship mode — solo (merge locally to the base branch) or team (push the branch and open a pull request)?"["Team — push and open PR", "Solo — local merge only"]feature/epic-<id>-<short-name> or legacy feat/epic-N).git branch --list develop main master and prefer develop if it exists, then main, then master.git checkout <base-branch>git merge <branch> --no-ff -m "epic(<id>): merge <branch> — <brief summary>"git branch -d <branch>git log --oneline -5Branch
<branch>has been merged into<base-branch>and deleted. Changes have not been pushed — rungit pushwhen ready.
Note the current feature branch name.
Detect the base branch: run git branch --list develop main master and prefer develop if it exists, then main, then master.
git push -u origin <branch>
gh pr create --base <base-branch> --title "epic(<id>): <epic name>" --body "<body>"
The body follows the template at plugins/epic-workflow/skills/wrapup/PR_BODY_TEMPLATE.md. Read that file once, copy its template body verbatim into the --body argument, and substitute placeholders from the Step 1.6 verification report and the Step 2.0 manual-verification disclosure. Reuse the "What Was Built" content already in memory from Step 2.1 — do not re-read the handoff file from disk.
The Closes #<N> line is driven by the spec's **Source:** Issue #<N> header captured in Step 1.1 item 4 — if no source issue is known, omit the Closes line entirely (existing integer-IDed epics without a Source: line render cleanly this way).
Announce PR on the GitHub issue (conditional) — run only if a source issue number was captured in Step 1.1 item 4 and gh auth status succeeds:
gh issue comment <N> --body "PR opened for Epic <id>: <PR url>. Awaiting review."
Capture the PR URL from the gh pr create output in item 4. If gh auth status fails or the comment command errors, print a warning (gh issue comment failed — PR is still open, manual issue update may be desired) and continue; the PR itself is the essential deliverable, the comment is a courtesy. Skip this step entirely in solo mode (Step 5a) — nothing external to link to.
Do NOT run gh pr merge. Merging is the reviewer's responsibility.
Do NOT delete the feature branch. GitHub auto-delete (if enabled) or manual cleanup handles it after merge.
Report to the user:
PR opened:
<url>. Feature branch<branch>pushed. Await review; do not merge locally.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peakflames/claude-plugins-peakflames --plugin epic-workflow12 skills in this plugin
/addAdds new epic(s) to the implementation plan from natural language description.
Use when the user wants to add a single epic or small batch without re-running full planning.
Triggers on: "add epic", "new epic", "create epic", "I need to add more work",
"there's a new feature we need", "can we squeeze in", "add a feature",
"another thing we need to build".
/discoverAdaptive discovery interview that produces product-vision.md and concept-of-operations.md.
Use when starting a new project (greenfield) or evolving an existing project's direction (brownfield).
Triggers on: "discover", "new project", "product vision", "concept of operations", "what should we build",
"let's figure out what to build", "I have an idea for an app", "brainstorm features",
"requirements gathering", "what are we building", "help me scope this out".
/Other plugins' skills for the same job