/fff:work-epicfrom fff
Sequentially executes every open issue under an epic onto one feature branch, producing one squashed commit per task and one PR per epic. Keeps implement and review subagents independent; user approves the merge.
Ships in fff. 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.
This skill does NOT invoke Plan Mode. It runs a sequence of implement/review subagents on one feature branch.
Drive an entire epic from open issues to a reviewed PR off main. One feature branch, one clean commit per task, one PR per epic. Stops before merging — the user approves merges.
Use this when:
For one PR per issue: /work-issue. For multiple parallel PRs: /work-fanout.
/work-epic E0.1 or /work-epic 100 for a GitHub umbrella issue number)..ffflow/config.yaml — read for level, stack, capture backend.epic/<epic-id> off origin/main.main.work-issue discipline applies inside each implement subagent (TDD loop, spec update, level-appropriate gates).self-review discipline applies inside each review subagent.plan-capture to resolve epic→issues (the active capture backend's "list child issues" semantics).These are non-negotiable.
GitHub issue numbers are out of order (parallel agents created them). The titles are ground truth — plan-capture burns the task ordinal into every title as T<N> — <title> (e.g. T1 — Add validator). Always sort by title, never by issue number. Use a natural sort on the T<N> prefix so T10 comes after T2. Older titles may carry an epic code before the ordinal (for example, E0.1 T1 — …); the T<N> component remains the ordering key.
Legacy fallback. Epics captured before the ordinal scheme have plain titles with no T<N>; partially recaptured epics may contain a mix of prefixed and plain titles. If any resolved title lacks a T<N> ordinal, don't combine ordering schemes or guess — fall back to the epic issue's checklist order for the entire task set, and warn the user. Titles are primary only when every resolved task carries the ordinal.
Each task uses a fresh implement subagent and a fresh review subagent. Reviews must be independent of the implementation that produced them.
This skill never merges. Even green PRs sit until the user approves. Step 7 (post-merge cleanup) runs only after the user confirms the merge happened.
The argument is the epic/umbrella issue number. For the GitHub backend:
gh issue list --label "epic-<epic-id>" --state open --limit 100 --json number,title,labels
gh issue view <epic-id> --json body # epic checklist, used only for the legacy fallback below
For other backends, equivalent queries via the active capture cartridge.
Parse the tasks. If every title carries a T<N> ordinal, extract it and sort numerically (natural sort — T10 after T2). Per the Issue ordering invariant, if any title lacks a T<N>, fall back to the epic's checklist order for the entire task set and warn. Print the resolved task list (issue # + title in execution order) to the user before doing anything destructive. If zero issues found, stop and ask.
git fetch origin maingit checkout -b epic/<epic-id> origin/mainIf the branch already exists, stop and ask whether to resume on it or recreate.
For each task T<N> (issue #NN):
git rev-parse HEAD → remember as START_SHA for this task.
Spawn a subagent via the Agent tool. Briefing:
epic/<epic-id> and must not create a new branch, push, or open a PR."work-issue discipline (TDD loop, spec update in-tree, level-appropriate gates) but skip the PR-creation phase — your output is local commits."just check-all green before reporting success."Spawn a fresh subagent. Do not reuse the implementer:
git diff $START_SHA..HEAD against the issue's acceptance criteria.view-issue equivalent.just check-all.self-review checklist appropriate for the project's level.PASS or a concrete list of issues to fix. Be specific — file:line where possible.If review returns issues, spawn a new implement subagent with the issue list, then re-review. Cap at 3 cycles. If still failing, stop and report to the user — don't push through.
Once review passes:
git reset --soft $START_SHA
git commit -m "<message>"
Match the project's commit style (run git log --oneline -10 first to see the convention). Reference the issue (#NN).
Push and open the PR:
git push -u origin epic/<epic-id>
gh pr create --base main --title "Epic <epic-id> — <epic title>" --body "$(cat <<'EOF'
## Summary
<one-paragraph epic summary>
## Tasks
- T1 — <title> (#NN)
- T2 — <title> (#NN)
## Test plan
- [ ] <item>
EOF
)"
Pull the epic's title and description from the umbrella issue. For GitHub:
gh issue list --search "Epic <epic-id>" --state all --json number,title,body --limit 5
Pick the one whose title starts with Epic <epic-id> — …. Use its title for the PR title and its body as the basis for the PR Summary.
Spawn one more fresh subagent:
PASS or specific fixes.If fixes needed, loop back to Step 3 for the affected task(s) — add follow-up commits, re-squash if needed, push.
Print the PR URL. Explicitly ask the user to approve the merge.
Do not merge. The user merges.
Once the PR has merged (the user either merged themselves or asked you to merge after approving), do this cleanup pass:
Close each per-task issue with a back-link to the PR. gh issue close only takes one issue per invocation:
gh issue close <NN> -c "Landed in PR #<PR> (epic <epic-id>)."
Close the umbrella issue:
gh issue close <umbrella-num> -c "Epic <epic-id> landed in PR #<PR>."
Sync local main and delete the local epic branch if it still exists. (gh pr merge --delete-branch may have removed it already; tolerate that.)
git checkout main && git pull origin main
git branch -d epic/<epic-id> 2>/dev/null || true
--force push or reset --hard to a SHA you don't fully control./work-fanout if you want parallelism (different shape — one PR per issue, not one PR per epic).epic/<epic-id> branch with an open PR: resume by computing which tasks are already squash-committed (parse commit messages for issue refs), skip those, continue from the next.main.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub zerotechdebt/ffflow --plugin fffOther plugins' skills for the same job
38 skills in this plugin
/adopt-ffflowEnd-to-end onboarding for a new FFFlow project. Runs init-ffflow, stack-init, then hands off to plan-roadmap to phase out the work (greenfield or brownfield — roadmap figures out the right per-phase entry point). Use `--ui` to adopt FFFlow's view-layer-purity structure (the frontend sibling of hexagonal) on an already-adopted project./auditRun the FFFlow keep-honest auditors against this project. Coordinator with per-type cartridges (CLAUDE.md freshness, spec drift, characterization tests, architecture conformance, complexity/refactor signals, and L3 RID traceability). Use --type to target one; --plan to convert findings into work./autopilotMeta-skill that wraps any interactive skill for unattended execution. Reads project context to stand in for the user on routine decisions, with a decision log.