/epic-workflow:refresh-docs [arch|design|blank for both]from epic-workflow
Refreshes architecture and design docs to match the as-built codebase by reading source files and session handoffs. Use after completing a phase or before a release.
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.
None: SKILL.md is the whole skill.
You are refreshing the project's architecture and design documentation to reflect the as-built codebase.
docs/architecture.md and docs/design-notes.md (or equivalent paths specified in CLAUDE.md) are written as planning artifacts before implementation begins. As epics complete, they drift from reality — versions change, endpoints multiply, patterns emerge that weren't anticipated. This command reads the actual source code and the accumulated session handoffs to bring both documents back into alignment with what was built.
When to run this:
Target: $ARGUMENTS
docs/architecture.md and docs/design-notes.mdarch or architecture → docs/architecture.md onlydesign or notes → docs/design-notes.md onlyBefore 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.
CLAUDE.md — extract the Tech Stack table, Key Architecture Decisions, Important Reminders, and note any custom paths to architecture or design docs (if different from docs/architecture.md / docs/design-notes.md)docs/implementation-plan/status/epic-*.md and grep for status: Complete or status: Implemented to identify which epics have finished. These are the epics whose handoffs are relevant to the documentation refresh.Read each target document in full. As you read, extract and note every verifiable claim the document makes:
These become the claims to verify in Step 4.
Read all files in docs/implementation-plan/session-handoffs/ that correspond to Complete or Implemented epics. Skip Paused handoffs — their decisions may not be final.
Epic ID formats: handoff filenames are
epic-<id>-complete.mdorepic-<id>-implemented.md, where<id>may be a legacy integer (e.g.,7,6.5) or a 7-character alphanumeric ID (e.g.,a3f2K7p). Theepic-*-complete.mdandepic-*-implemented.mdglob patterns match both formats — no special handling needed.
For each handoff, collect:
After reading all handoffs, produce two lists:
Read every file in the implementation file set (from Step 3).
Additionally, look for and read these framework-configuration artifacts — they carry authoritative version and structure data that docs commonly get wrong:
| Artifact | What it tells you |
|---|---|
Dockerfile (any) | Actual build stage count, base image names and versions, injected ARG names |
package.json (frontend root) | Actual framework versions — React, router, table, query, virtual, etc. |
.csproj, pom.xml, pyproject.toml, go.mod, Cargo.toml | Actual backend runtime version and dependency versions |
Application entrypoint (Program.cs, main.py, App.tsx, main.ts, etc.) | Actual service registrations, route definitions, lazy-load configuration |
As you read, note where actual state matches or diverges from the claims extracted in Step 2.
Produce a gap table for each target document.
architecture.md — example format:
| Section / Topic | Current Claim | Actual State | Action |
|---|---|---|---|
| .NET version | .NET 8+ | .NET 10 | Correct throughout |
| Endpoint count | 7 endpoints | 11 endpoints | Expand table |
| Docker stages | 2-stage | 3-stage (Bun → SDK → runtime) | Rewrite section |
| Admin Geocoding page | Not mentioned | /admin/geocoding route in App.tsx | Add to pages table |
design-notes.md — example format:
| Decision | Status | Evidence |
|---|---|---|
| Custom MarkerClusterGroup wrapper | Missing | Epic 5 handoff — Key Decisions |
| Manual query param binding (.NET 10 bug) | Missing | Epic 3 handoff — Key Decisions |
| CartoDB Light tile choice | Missing | Source code (tile URL + attribution comment) |
| Client-side filtering rationale | Missing | Epic 4 handoff — Key Decisions |
Present both tables to the user. Explain the impact of each gap. Ask for explicit confirmation before proceeding to Step 6.
If both tables are empty, report that the documentation is current and stop — no rewrite needed.
Rewrite only the documents where gaps were found.
docs/architecture.mdDockerfile — stage names, base images, ARG namesdocs/design-notes.mdCANNOT VERIFY items from wrapup handoffsAfter rewriting, verify the highest-stakes claims before committing:
architecture.md?architecture.md?package.json and .csproj (or equivalent) — do the framework versions match what the docs now say?design-notes.md?Report any remaining discrepancies. Fix them before proceeding to Step 8.
Ask the user if they'd like to commit the refreshed documents. If the user confirms:
docs/architecture.md and/or docs/design-notes.md)docs: refresh architecture and design notes to as-built stateDo NOT push — leave that for the user.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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".
/migrate-2.5One-shot migration from the pre-v2.5.0 implementation-plan layout (single index.md with
status table) to the v2.5.0 layout (per-phase index files + per-epic status sidecars).
Run once per project after upgrading to epic-workflow v2.5.0.
Triggers on: "migrate to 2.5", "upgrade implementation plan", "split index",
explicit /epic-workflow:migrate-2.5.
/pausePauses current epic implementation and saves progress to a handoff file.
Use when stopping mid-epic before the session ends.
Triggers on: "pause epic", "stop epic", "save progress",
"I need to stop for today", "save my progress", "I'm done for now",
"let's pick this up later".
Note: If the user says "I'm done with epic N", check whether they mean pause (stopping mid-work) or wrapup (finished implementation). If all acceptance criteria are checked, suggest /epic-workflow:wrapup instead.
/plan-projectDerives implementation plan (phases, epics, specs) from vision and ConOps documents.
Use after /epic-workflow:discover or when the user wants to create an implementation plan from existing vision docs.
Triggers on: "plan project", "create epics", "implementation plan", "derive epics",
"break this into epics", "how should we phase this", "turn this into a plan",
"organize work into phases", "what's the build order".
/quick-fixLightweight path for trivial items — bugs, copy changes, small enhancements (~2 hours or less).
Creates a `hotfix/` branch, plans and implements the fix with applicable quality gates, and
ships via prompted solo mode (local merge) or team mode (push + `gh pr create`).
Quick-fixes are commit-level records — they do NOT get epic IDs, do NOT update
`implementation-plan/index.md`, and do NOT write epic handoff files.
Use when `/epic-workflow:triage` returned TRIVIAL, or when you know the request is too small
to justify a full epic spec.
Triggers on: "quick fix", "hotfix", "small fix", "trivial bug", "one-liner", "small tweak".
Other plugins' skills for the same job