/epic-workflow:add <description of what the epic should accomplish>from epic-workflow
Adds epics to an implementation plan from natural language descriptions. For adding single epics or small batches without full re-planning.
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 adding one or more new epics to the implementation plan based on the user's description.
The user's request: $ARGUMENTS
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.
Follow these steps exactly:
CLAUDE.md at the repo root for project contextdocs/implementation-plan/phase-*/index.md and read each file to understand the existing epic structure, phase names, and existing epic IDs.docs/architecture.md for system contextIf $ARGUMENTS starts with the pattern [issue #<N>] (e.g. [issue #42] Add CSV export — …), extract the integer <N> and strip the prefix from the remaining description:
Source: line).gh issue view <N> --json title,body,labels to fetch the canonical title and body, and use them to augment the stripped description — the prefix-bearing description from /triage is a summary, not the full issue.gh is unavailable or the issue cannot be fetched, fall back to the stripped description alone and still record the number for the Source: line.If no [issue #<N>] prefix is present, the source issue number is unknown — skip the fetch and leave the Source: line out of the spec in Step 6.
Interpret the (now prefix-free) description. It may be:
Assign the epic ID: generate a fresh 7-character random alphanumeric ID for each new epic via:
LC_ALL=C tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 7
The LC_ALL=C prefix is required for portability — without it, BSD tr (macOS) can emit "Illegal byte sequence" on non-UTF8 bytes from /dev/urandom.
Validate each ID: if the 7-char string contains only digits, regenerate (this prevents ambiguity with the legacy integer format). If adding multiple epics in a single invocation, ensure uniqueness across the batch.
If the user tried to specify an ID or number up front (e.g., "as Epic 6.6"), politely override:
Epic IDs are now auto-generated random 7-character strings; this new epic will be
<generated-id>. The phase you chose will be honored.
Do not attempt to slot new epics into the old decimal scheme (e.g., 6.7, 6.8). With random IDs, there's no "insert between X and Y" concept — epics are appended at the bottom of their phase block in the index.
From the user's description and the existing phase indexes, determine:
If dependencies are ambiguous, ask the user.
If the epic modifies or extends existing features (not greenfield), explore the relevant source files to understand:
Use this understanding to write acceptance criteria that reference real files, real components, and real state — not vague placeholders. This is what separates a useful spec from a generic one.
Skip this step only if the epic is entirely greenfield with no connection to existing code.
Create the epic spec file(s) following the required structure below. The other epic commands (/epic-workflow:start, /epic-workflow:wrapup) depend on this exact format.
docs/implementation-plan/{phase-directory}/epic-{id}-{kebab-case-name}.md (where {id} is the 7-char alphanumeric ID generated in Step 2)
The phase directory must match an existing phase-N-name/ directory in the implementation plan. If the epic belongs to a new phase, ask the user to confirm before creating it.
# Epic {id}: {Name}
**Phase:** {N} — {Phase Name}
**Status:** Not Started
**Dependencies:** Epic {id1} ({short description}), Epic {id2} ({short description})
**Source:** Issue #{N}
> **Brand:** Use the project's brand guidelines skill for {relevant UI elements} if one is configured.
---
## Description
{2-4 sentences. What is being built and why. Reference the motivation if it came from a verification finding, user request, or architectural need.}
## Vision & Scenario Anchors
> Readers of this epic (`/epic-workflow:start`, `/epic-workflow:wrapup`, and the independent reviewer) will read the paraphrases below first, then spot-check them against the cited source sections. If a paraphrase conflicts with its source, neither text is automatically authoritative — stop and ask the user which reflects current intent.
### Vision anchors
- `docs/product-vision-planning/product-vision.md` § {section number/title} — {1–2 sentence paraphrase of why this epic serves the vision}
- {repeat for each cited vision section}
### Scenario anchors
- `docs/product-vision-planning/concept-of-operations.md` § {scenario id or section, e.g. "S1 step 3"} — {1–2 sentence paraphrase of the user intent this epic serves}
- {repeat for each cited scenario step}
## At Completion, a User Can
{3-6 bullet points written from the end-user's perspective. Each starts with a verb. These describe observable behaviors, not implementation details.}
## Acceptance Criteria
{Checkboxes (`- [ ]`) for every discrete requirement. Group under subheadings (### Backend, ### Frontend) if the epic spans layers. Each criterion must be independently verifiable.
Write criteria that are specific and testable — include expected values, column names, component behaviors, thresholds, and error cases. Vague criteria like "works correctly" are not acceptable.}
## Verification
{Checkboxes for concrete test scenarios. Each describes a user action and expected observable result. These are what `/epic-workflow:wrapup` will check.
Always include:
- Build check (read CLAUDE.md for the project's build command)
- Zero console errors (if frontend)
- Brand audit (if UI work)
- Relevant behavioral scenarios with specific test data}
## Key Components
{List of file paths that will be created or modified, with a brief description of each. Use the project's actual directory structure. Separate into ### Backend and ### Frontend subheadings if both are involved.}
Conditional lines in the header template above — do not carry this guidance into the written spec:
**Source:** Issue #{N} line only when a source issue number is known — i.e., $ARGUMENTS arrived with an [issue #<N>] prefix in Step 2.0. Omit the line entirely otherwise; existing specs without it continue to work.Populating the Vision & Scenario Anchors section:
docs/product-vision-planning/product-vision.md and docs/product-vision-planning/concept-of-operations.md (if they exist — greenfield projects may not have them yet). For each anchor you add:
/discover), write a single note in each subsection: _No vision document exists yet — anchors will be populated when_ /epic-workflow:discover _is run._ Do not omit the section; a future reader should still see it./start and /wrapup's conflict-surfacing behavior when the paraphrase and source drift.Before writing each spec, verify:
Phase index — append a row for the new epic at the bottom of docs/implementation-plan/{phase-dir}/index.md. Use the format:
| {id} | [{Name}](epic-{id}-{kebab-name}.md) | {dep-id-1}, {dep-id-2} |
Use — in the Dependencies column if the epic has no dependencies. Use the epic ID verbatim (7-char alphanumeric or legacy integer).
Status sidecar — create docs/implementation-plan/status/epic-{id}.md with exactly these four lines:
status: Not Started
implemented: —
completed: —
handoff: —
Create the docs/implementation-plan/status/ directory if it does not already exist.
Before presenting the summary, run an explicit post-write self-check. The pre-write "Quality Checks" in Step 6 ask "does the spec look reasonable on its own." This self-check asks the different and more important question: did every input requirement actually land in the output, explicitly and unambiguously?
List every discrete requirement or intent signal that drove this invocation. Sources and examples:
$ARGUMENTS after Step 2.0 prefix stripping) — each distinct behavior, constraint, or deliverable the user named. Include follow-up clarifications from Step 2.1's clarifying round if any were asked.One input per row. Be granular: if the user said "CSV export with filter awareness, and a spinner while it runs," that's two inputs, not one.
Print the table to the user verbatim — it is part of the Step 9 summary, not internal scratch:
## Self-Check: Input → Output Trace
| # | Input (source:reference) | Captured in Output (spec section:line) | Explicit? (Y/N) | Ambiguous? (Y/N) |
|---|--------------------------|----------------------------------------|-----------------|-------------------|
| 1 | User description: "CSV export respects current filters" | Acceptance Criteria § Frontend, item 2 | Y | N |
| 2 | Issue #42 body: "show a spinner during export" | Acceptance Criteria § Frontend, item 4 | Y | N |
| 3 | ConOps S3.4: "procurement receives the list within 10 seconds" | Verification, item 3 | Y | N |
| 4 | User description: "works for big lists" | (not captured) | N | Y |
Rules for the last two columns:
Both columns must be Y / N respectively for the row to pass. Anything else is a gap.
For every gap (row with Explicit? N or Ambiguous? Y):
Captured in Output column with a one-line rationale.Explicit? Y and Ambiguous? N, or has an explicit out-of-scope justification.Do not present the summary with unresolved gaps.
The final passing table is printed as part of Step 9 summary — both so the user can audit, and so future sessions (and reviewers) can see what this epic was intended to cover.
Show the user what was created:
## Added Epic(s)
### Epic {id}: {Name}
- **File:** `docs/implementation-plan/{path}`
- **Phase:** {N} — {Name}
- **Dependencies:** {list}
- **Sections:** {count} acceptance criteria, {count} verification items
{Repeat for each epic if multiple were created}
### Plan Updated
- 1 row appended to `docs/implementation-plan/{phase-dir}/index.md`
- `docs/implementation-plan/status/epic-{id}.md` created (status: Not Started)
### Self-Check
- {count} inputs traced to outputs, all Explicit=Y and Ambiguous=N (see Step 8 trace table above)
- Out-of-scope items explicitly struck: {list, or "none"}
### Ready to implement
Run `/epic-workflow:start {id}` when ready to begin (in a fresh session for clean context).
Do NOT commit — leave that for the user to decide.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peakflames/claude-plugins-peakflames --plugin epic-workflow12 skills in this plugin
/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".
/refresh-docsRefreshes architecture.md and design-notes.md to match the as-built codebase by reading source files and session handoffs.
Use after completing a phase or before a release.
Triggers on: "refresh docs", "update architecture", "sync documentation", "docs are stale",
"docs are out of date", "architecture doesn't match code", "before the release",
"documentation is stale".
Other plugins' skills for the same job