From project
Executes a multi-phase epic development workflow with GitHub sub-issues and git worktrees. Supports resume, next-phase, and finalize modes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/project:epic-devThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Codex entrypoint for the same phased epic workflow exposed to Claude Code as
Codex entrypoint for the same phased epic workflow exposed to Claude Code as
/epic-dev. Use workflow-reference for command snippets, state shape, and
variation details, then follow this procedure as the execution contract.
cd.codex/ branch prefixes. Prefer feature/issue-{N}-..., patch/..., or chore/... per project rules.agent-fanout.project-detect-repo-config from the target repository.INTEGRATION_BRANCHREPO_ROOTCURRENT_BRANCHERROR is set or required values are empty.HAS_GH=false or GH_ERROR is set, tell the user what to fix and stop.HAS_GH_SUBISSUE=false, install gh-sub-issue with gh extension install agbiotech/gh-sub-issue after normal approval rules for networked commands..claude/epic.local.md if present. New Codex runs may continue using that file for compatibility with the Claude command.Interpret the user request:
| Input | Mode | Action |
|---|---|---|
--resume | Resume | Read state, find the current incomplete phase, and continue. |
--next-phase | Next phase | Read state, find the next pending phase, and start it. |
--finalize | Finalize | Skip to the final epic PR and cleanup. |
| Any other text | New epic | Treat the text as the epic description. |
| Empty request | New epic | Ask for the epic description. |
For resume modes, validate state fields before acting: epic_issue,
epic_branch, integration_branch, phases, and current_phase.
Gather the epic description and phase breakdown. Suggest phases when the user has not provided them, using the sizing rule in workflow-reference (one phase = one independently reviewable and testable PR, roughly one subsystem or up to ~500 net changed lines; if two candidate phases can only be tested together, they are one phase). If the description contains only one such unit, use the single-phase shortcut.
Present the plan for confirmation:
Epic: {title}
Integration branch: {INTEGRATION_BRANCH}
Epic branch: feature/issue-{N}-epic-{slug}
Phases:
1. {phase 1 title}
2. {phase 2 title}
Proceed?
After confirmation, create the epic issue, phase sub-issues, and links:
gh issue create --title "Epic: {title}" --label "feature"gh issue create --title "Phase {X}: {title}" --label "feature"gh sub-issue add {epic_issue} --sub-issue-number {phase_issue}Create the epic worktree from the integration branch unless this is a single-phase feature.
Write .claude/epic.local.md using the format in workflow-reference.
Ensure .claude/*.local.md is ignored without overwriting existing .gitignore customizations.
For a single-phase feature, skip the epic worktree and sub-issues. Create one feature branch from the integration branch and target the integration branch directly.
For each phase, starting from the current state:
Create or reuse the phase worktree from the epic branch.
Mark the phase in_progress.
Have the lead define the phase architecture and open judgment calls. After approval, a Terra phase planner may expand it into exact files, decisions, tests, and gates. Ask for approval of the worker-executable plan.
Delegate implementation in the isolated phase worktree to a named Luna
worker using the full lifecycle brief from agent-fanout. The lead does not
hand over unresolved design choices.
Add focused tests for changed behavior and run the relevant verification.
Commit atomic changes with concise messages.
Push and create a PR targeting the epic branch:
git -C "{phase_worktree}" push -u origin {phase_branch}
gh pr create --base {epic_branch} --title "Phase {X}: {title}" --body "{body}"
Invoke pr-review-toolkit with a fresh Luna reviewer for the phase PR. Use
Terra or Sol for security, concurrency, authorization, data-integrity, or
unresolved architectural findings. The lead verifies the headline finding
before dispatching a fix.
Squash merge the phase PR only after checks and critical review issues are resolved.
Update state, remove the phase worktree, close/remove completed one-off agent threads, and continue to the next phase.
pr-review-toolkit on the final PR.--merge) to preserve per-phase history; only squash if the user explicitly asks.project-detect-repo-config error.in_progress.workflow-reference skill: branch strategy, state file format, worktree commands, GitHub commands, and variation handling.pr-review-toolkit skill: phase and final PR review before merge.npx claudepluginhub neuromechanist/research-skills --plugin projectManages multi-phase feature development using git worktrees, epic branches, and phased PR delivery. Useful for complex features broken into independently reviewable phases.
Orchestrates multi-story GitHub epics by building a DAG from child stories, processing them in parallel waves with git worktrees, and running automated code review with PR ejection for failures.
Drives a multi-ticket epic or backlog toward a single human-reviewable integration MR by following a compiled workflow.