/epic-workflow:migrate-2.5from epic-workflow
Migrates implementation plans from the legacy single index.md with status table to the v2.5.0 per-phase index files and per-epic status sidecars. Run once after upgrading epic-workflow v2.5.0.
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 migrating a project's implementation plan from the legacy pre-v2.5.0 layout (a single docs/implementation-plan/index.md with a combined status table) to the v2.5.0 layout (per-phase index files + per-epic status sidecars). This is a one-shot upgrade; running it again on an already-migrated project is safe (Step 1 detects the no-op and exits cleanly).
Follow these steps exactly:
Read docs/implementation-plan/index.md.
No implementation plan: If docs/implementation-plan/index.md does not exist, report:
No implementation plan found at
docs/implementation-plan/index.md. Nothing to migrate.
Stop here.
Already migrated: If the file exists but does not contain a legacy status table header — a line matching | Phase | Epic | with a | Status | column — report:
Already on the v2.5.0 layout (or never had a legacy status table). Nothing to migrate.
Stop here.
Partially migrated: Check whether any docs/implementation-plan/phase-*/index.md file already contains the new schema header (| Epic | Name | Dependencies |). If yes, ask the user:
Migration appears partially complete — some phase indexes already contain the v2.5.0 schema. How would you like to proceed?
Use AskUserQuestion:
"Migration appears partially complete. How would you like to proceed?"["Skip (recommended) — treat migration as already done", "Re-run from scratch — overwrite phase indexes and sidecars"]Skip: exit cleanly with "Skipped — migration treated as complete." Do not overwrite any files.
Re-run: confirm that the legacy docs/implementation-plan/index.md still contains the status table header (it will not be present after a successful first run). If it does not, report "Legacy index.md no longer contains the status table — cannot re-run. Use git revert <migration-hash> to restore the legacy layout, then re-run." and stop.
If the legacy status table header is found and no partial-migration state exists, proceed to Step 2.
Read docs/implementation-plan/index.md in full.
Extract the status table rows. Find the table with a header containing | Phase |, | Epic |, | Name |, and | Status | columns (order may vary). Parse every data row (skip the header and separator rows). For each row, capture all seven fields:
7, a decimal like 6.5, or a 7-char alphanumeric like a3f2K7p)[Epic Name](phase-dir/epic-id-name.md))— or a markdown link)— or YYYY-MM-DD)— or YYYY-MM-DD)Validate spec links. For each epic row with a spec link, verify the linked file exists under docs/implementation-plan/phase-N-*/. Report orphans without stopping:
Warning: No spec file found for Epic (link: ). This row will still be migrated — fix the spec path manually after migration if needed.
Validate status values. Confirm each Status value is one of: Not Started, In Progress, Implemented, Complete, Paused. For any malformed value, report:
Row for Epic has unexpected status: ''. Please fix this row in
docs/implementation-plan/index.mdand re-run migration. Migration is idempotent — safe to re-run after fixes.
If any malformed status is found, stop here and let the user fix the legacy file before re-running.
Before writing any files, present a summary of planned writes to the user:
## Migration Preview
Will create:
- <N> phase index files (across <M> phase directories):
- docs/implementation-plan/<phase-dir>/index.md (<X> epics)
[one line per phase]
- <K> status sidecars under docs/implementation-plan/status/:
- docs/implementation-plan/status/epic-<id>.md (status: <Status>)
[one line per epic]
- docs/implementation-plan/README.md (prose extracted from old index.md preamble)
- docs/implementation-plan/index.md (replaced with thin stub)
Will discard:
- Hand-maintained dependency graph (regenerated on demand by /epic-workflow:status)
- Legacy status table (replaced by per-epic sidecars)
Total: <N> phases, <K> epics
Ask the user to confirm before any writes. If the user declines, stop with no changes made.
For each phase directory found under docs/implementation-plan/phase-*/:
Derive phase title. Extract from the directory name:
phase-1-foundation/ → Phase 1: Foundationphase-2-data-layer/ → Phase 2: Data Layer
(Capitalize the first letter of each hyphen-separated word segment after the phase number.)Collect rows. Gather all epic rows from the legacy table that belong to this phase (matched by Phase column value).
Derive spec filename. The spec file is already at docs/implementation-plan/{phase-dir}/epic-{id}-{name}.md. In the phase index, use only the filename (no directory prefix) since the index lives in the same directory. Extract the filename from the legacy table's Name column spec link.
Derive dependencies. Use these sources in order of preference:
index.md ASCII dependency graph section — parse parent/child relationships.**Dependencies:** line.—.Write docs/implementation-plan/{phase-dir}/index.md:
# Phase {N}: {Phase Name}
| Epic | Name | Dependencies |
|------|------|--------------|
| {id} | [{Epic Name}](epic-{id}-{slug}.md) | {dep1}, {dep2} |
— when there are none.Create the docs/implementation-plan/status/ directory if it does not exist.
For each epic row from the legacy table, write docs/implementation-plan/status/epic-<id>.md with exactly these four lines:
status: <Status>
implemented: <Implemented date or —>
completed: <Completed date or —>
handoff: <Handoff link or —>
status: — verbatim from the legacy Status column (Not Started, In Progress, Implemented, Complete, Paused).implemented: — verbatim date from the legacy Implemented column, or —.completed: — verbatim date from the legacy Completed column, or —.handoff: — the raw markdown link text from the legacy Handoff column (e.g., [paused](session-handoffs/epic-7-paused.md)), or — if the column was empty.Read docs/implementation-plan/index.md. Identify the prose region — everything before the legacy status table. This typically includes:
# [Project Name] — Implementation Plan titleUpdate the prose for the v2.5.0 workflow:
/epic-workflow:status for the live cross-phase dashboard."index.md directly → point to /epic-workflow:status.If docs/implementation-plan/README.md already exists, ask:
docs/implementation-plan/README.mdalready exists. Overwrite with the extracted preamble?
Use AskUserQuestion:
"docs/implementation-plan/README.md already exists. Overwrite?"["Overwrite with extracted preamble", "Keep existing README — skip extraction"]If the file does not exist, write it without asking.
Write docs/implementation-plan/README.md with the updated prose from item 2 (if not skipped).
index.mdOverwrite docs/implementation-plan/index.md with this exact stub:
# Implementation Plan
This project uses the v2.5.0 layout. See:
- `README.md` — project overview and lifecycle
- `phase-*/index.md` — per-phase epic registries (epic ID, name, dependencies)
- `status/epic-<id>.md` — per-epic status sidecars
- Run `/epic-workflow:status` for the live cross-phase dashboard
Skills do not read or write this stub after migration — it is a human-readable pointer only.
Stage every new and changed file by exact path (not git add -A):
docs/implementation-plan/phase-*/index.md files written in Step 4docs/implementation-plan/status/epic-*.md files written in Step 5docs/implementation-plan/README.md (if written in Step 6)docs/implementation-plan/index.md (the new stub from Step 7)Commit with:
chore(epic-workflow): migrate implementation plan to v2.5.0 layoutMigrated <N> phases, <K> epics from legacy single-index layout to v2.5.0
per-phase indexes + status sidecars.
- Phase indexes written: <N>
- Status sidecars written: <K>
- Prose extracted to README.md: [yes / no — skipped by user]
- Dependency graph: discarded (regenerated by /epic-workflow:status)
Single commit so git revert <hash> rolls everything back atomically. Do not push.
After committing, report:
Migration complete. This project now uses the v2.5.0 layout.
To roll back:
git revert HEADVerify with
/epic-workflow:status— it should show the same epic counts and statuses as before.
git revert <migration-commit-hash> to restore the legacy layout, then re-run this skill.docs/implementation-plan/session-handoffs/.docs/architecture.md or docs/design-notes.md.CLAUDE.md files — if a project's CLAUDE.md references the old index.md path, the user may want to update it to point to /epic-workflow:status or the phase indexes.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 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".
/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".
npx claudepluginhub peakflames/claude-plugins-peakflames --plugin epic-workflowOther plugins' skills for the same job