/epic-workflow:setupfrom epic-workflow
Audits CLAUDE.md for required sections and stubs architecture.md and design-notes.md for first-time project setup before starting epics.
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 auditing the project's CLAUDE.md file to ensure it contains the sections that the epic workflow depends on, and ensuring the documentation stubs exist for the architecture and design documents that the workflow reads and maintains.
Follow these steps exactly:
Read CLAUDE.md at the repo root. If it doesn't exist, inform the user and offer to create one from scratch.
Check for the presence and completeness of each section below. Report a status for each:
| Section | What to check |
|---|---|
| Tech Stack | Lists the languages, frameworks, package manager, and key libraries used |
| Local Environment | Documents how to run the backend and frontend locally, whether the API is live and functional, and the preference for live data over mocking during verification |
| Epic Workflow | References the epic commands (/epic-workflow:triage, /epic-workflow:start, /epic-workflow:wrapup, /epic-workflow:pause, /epic-workflow:quick-fix, /epic-workflow:refresh-docs) and points to the implementation plan |
| Verification & Quality Gates | Lists concrete checks to run before marking an epic complete (e.g., build, tests, linting, visual checks, brand audits) |
| Important Reminders | Project-specific constraints that prevent common mistakes |
| Reference Materials | Pointers to docs, patterns, or external resources that inform implementation |
| Git Workflow | Documents branch strategy (including epic branch naming convention feature/epic-<id>-<short-name> where <id> is a legacy integer or 7-character alphanumeric, and quick-fix convention hotfix/issue-<N>-<slug> or hotfix/<slug>), merge preferences (--no-ff), push approval rules, and files that must never be committed (e.g., .env, appsettings*.json) |
| Verification Before Commit Rule | Prescribes the implement → lint → build → verify → commit sequence; explains why compiled code ≠ correct behavior |
| Release Protocol | Documents the full release flow: changelog finalization, merge to main, tagging convention, post-release version bump, and where the version lives in the codebase |
Report the result as a checklist:
[PASS] Tech Stack — found
[MISS] Verification & Quality Gates — section missing
[WEAK] Important Reminders — section exists but has no content
For each section that is MISS or WEAK, ask the user targeted questions to populate it. Ask one section at a time — do not dump all questions at once.
Tech Stack (if missing):
Local Environment (if missing):
dotnet run, npm start, etc.)bun run dev, npm run dev, etc.)Epic Workflow (if missing):
docs/implementation-plan/ — run /epic-workflow:status for the dashboard, or check docs/implementation-plan/phase-*/index.md for phase contents)/epic-workflow:triage <issue|description>, /epic-workflow:start <id>, /epic-workflow:wrapup <id>, /epic-workflow:pause, /epic-workflow:quick-fix <issue|description>, /epic-workflow:refresh-docs, /epic-workflow:setupVerification & Quality Gates (if missing):
playwright-cli skill if frontend)Important Reminders (if missing):
Reference Materials (if missing):
Git Workflow (if missing):
develop for active work, main for releases)feature/epic-<id>-<short-name> where <id> is either a legacy integer (pre-v2.0.0 epics, e.g., 7 or 6.5) or a 7-character alphanumeric ID (v2.0.0+ epics, e.g., a3f2K7p), and <short-name> is derived from the epic spec filename (e.g., epic-a3f2K7p-user-auth.md → feature/epic-a3f2K7p-user-auth). Include this convention in the Git Workflow section.hotfix/issue-<N>-<slug> when tied to a GitHub issue, or hotfix/<slug> otherwise. Include this convention too.--no-ff to preserve commit history?.env, appsettings*.json, credentials)Verification Before Commit Rule (if missing):
python build.py up -d, dotnet build, npm run build)python build.py lint, dotnet format --verify-no-changes)python build.py format, dotnet format)curl http://localhost:8080/api/health)## CRITICAL: Verification Before Commit Rule
**NEVER commit code changes before verification!**
A successful build (compile) does NOT equal working code. The workflow MUST be:
1. **Implement** — Make the code changes
2. **Lint** — Run `[lint command]` to verify formatting and static analysis
3. **Build** — Run `[build command]` to build and start the full stack
4. **Verify** — Use curl, playwright, or manual testing to confirm functionality
5. **Commit** — ONLY after verification passed
**Why this matters:**
- Compiled code ≠ correct behavior
- API changes need endpoint verification
- Business logic needs functional testing
- Committing untested code pollutes git history with potential bugs
**Verification Workflow Example:**
```bash
[lint command] # Check formatting + static analysis
[build command] # Build & start
[verify commands] # Verify endpoints
[stop command] # Stop when done
git add <files> && git commit -m "feat: ..." # Commit after verification
```
Release Protocol (if missing):
develop → main).csproj, package.json, setup.py)vX.Y.Z)## Release Protocol
**Prerequisites:** Must be on `[dev branch]` branch with a clean working tree.
**Steps:**
1. **Finalize CHANGELOG** — Change `[X.Y.Z] - UNDER DEVELOPMENT` → `[X.Y.Z] - DD-MMM-YYYY` in `CHANGELOG.md`
- Commit: `chore: release vX.Y.Z`
2. **Merge to [main branch]**
```bash
git checkout [main branch] && git pull origin [main branch]
git merge [dev branch] --no-ff -m "Merge branch '[dev branch]' into [main branch] for release vX.Y.Z"
```
3. **Tag the release** (on [main branch])
```bash
git tag -a vX.Y.Z -m "Release vX.Y.Z - Brief description"
git push origin vX.Y.Z
```
4. **Merge back to [dev branch]**
```bash
git checkout [dev branch] && git merge [main branch] --no-ff
```
5. **Post-release version bump** (on [dev branch])
- Bump `[version file path]`: `<Version>X.Y.Z</Version>` → next version
- Add `## [X.Y+1.0] - UNDER DEVELOPMENT` to `CHANGELOG.md`
- Commit: `chore: bump version for next development cycle`
6. **Push** (ASK USER FIRST)
```bash
git push origin [main branch] && git push origin [dev branch]
```
**Note:** [Describe CI/CD behavior for branch pushes vs tags]
After gathering answers, add or update the missing sections in CLAUDE.md. Preserve all existing content — only add or strengthen sections.
Show the final checklist with all sections now passing.
Check whether docs/architecture.md and docs/design-notes.md exist.
[PASS] Documentation stubs — both files exist and skip to Step 7.docs/architecture.md stubDerive the content from CLAUDE.md's Tech Stack, data sources, and project description sections:
# [Project Name] — Architecture Document
> **Note:** This is a planning artifact generated by `/epic-workflow:setup`. Sections marked with
> *(to be completed during implementation)* will be populated as epics are implemented.
> Run `/epic-workflow:refresh-docs` after completing epics to update this document to reflect the
> as-built system.
---
## 1. System Overview
[Derive from CLAUDE.md project description — 2-3 sentences about what the system does, who uses it, and the high-level deployment model (single container, microservices, serverless, etc.)]
---
## 2. Tech Stack
[Copy or adapt the Tech Stack table from CLAUDE.md. If CLAUDE.md has a simple list, convert it to a table with Layer / Technology / Purpose columns.]
---
## 3. Data Sources
[If CLAUDE.md mentions databases, APIs, or data sources, list them here with their purpose. Otherwise, add a placeholder:]
*(to be completed during implementation)*
---
## 4. API Design
*(to be completed during implementation — endpoint table will be derived from the codebase)*
---
## 5. Backend Architecture
*(to be completed during implementation — folder structure, key patterns, and service registrations)*
---
## 6. Frontend Architecture
*(to be completed during implementation — pages, component hierarchy, data fetching patterns)*
---
## 7. Background Services
*(to be completed during implementation — if the application has background jobs, scheduled tasks, or hosted services)*
---
## 8. Container / Infrastructure
*(to be completed during implementation — Dockerfile stages, build pipeline, deployment model)*
---
## 9. Security & Access
*(to be completed during implementation — authentication, authorization, network access, secrets management)*
docs/design-notes.md stubDerive the content from CLAUDE.md's Key Architecture Decisions and Important Reminders:
# [Project Name] — Design Decision Notes
> **Note:** This is a planning artifact generated by `/epic-workflow:setup`. Initial decisions
> are derived from CLAUDE.md. Additional decisions will be captured in session handoff
> files as epics are implemented. Run `/epic-workflow:refresh-docs` to consolidate all decisions
> into this document.
---
These notes capture design decisions and rationale that complement the Architecture Document.
---
Then, for each item in CLAUDE.md's Key Architecture Decisions section (or equivalent), generate a numbered section:
## N. [Decision Title]
**Decision:** [The decision as stated in CLAUDE.md]
**Rationale:** [If CLAUDE.md provides a rationale, include it. Otherwise:]
*(Rationale to be documented during implementation.)*
After all decision sections, add:
---
## [Next Number]. Known Issues and Deferred Work
*(to be populated as epics are implemented and design trade-offs are discovered)*
Inform the user:
Created
docs/architecture.mdanddocs/design-notes.mdas planning stubs. These will be read by/epic-workflow:startfor context and updated by/epic-workflow:refresh-docsafter implementation.
Remind the user:
CLAUDE.md is loaded automatically every session — the quality gates will apply to all future epic workdocs/architecture.md and docs/design-notes.md are read by every /epic-workflow:start and /epic-workflow:wrapup for context/epic-workflow:refresh-docs to bring the docs in sync with the as-built codebaseLegacy layout check: After completing the above, check whether docs/implementation-plan/index.md exists and contains a legacy status table header — a line matching | Phase | Epic | with a | Status | column. If found, add a one-line reminder at the end of your summary:
Your implementation plan uses the pre-v2.5.0 layout. Run
/epic-workflow:migrate-2.5to upgrade to per-phase indexes + status sidecars and eliminate implementation-plan merge conflicts.
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".
/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".
npx claudepluginhub peakflames/claude-plugins-peakflames --plugin epic-workflowOther plugins' skills for the same job