From feature-factory-core
Run a full feature build by chaining eight specialist subagents — codebase-researcher, story-writer, spec-writer, backend-builder, frontend-builder, test-verifier, e2e-author, implementation-validator — with three human approval gates and a validator loop-back on critical findings. Triggers when the user asks to "build a feature", "ship a feature", "implement a feature", "run the full chain", or invokes the "feature factory". Use for end-to-end feature work, not single-agent tasks or one-off questions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/feature-factory-core:feature-factoryThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill is the canonical step order for the eight-agent chain. The `feature-orchestrator` agent loads this skill as its source of truth; you can also invoke the skill directly when a user asks to run the chain.
This skill is the canonical step order for the eight-agent chain. The feature-orchestrator agent loads this skill as its source of truth; you can also invoke the skill directly when a user asks to run the chain.
Do not skip steps. Do not reorder. The approval gates and the loop-back rule exist because shortcuts at any of them have produced rework in past runs.
This chain is stack-agnostic. The builder, verifier, and validator agents discover the project's stack, test/e2e harness, and conventions themselves — by reading the repo, its CLAUDE.md, and its docs — and consult a stack-conventions skill if one is installed as an overlay for that stack.
| Agent | Input |
|---|---|
codebase-researcher | the user's rough idea framed as "how does X work today?" |
story-writer | the rough idea + researcher findings + any user-added rules |
spec-writer | the approved user story + researcher findings |
backend-builder | the approved brief + researcher findings |
frontend-builder | the approved brief + researcher findings + backend-builder's summary (the API contract) |
test-verifier | the approved story + the approved brief + both builder summaries |
e2e-author | the approved story + the approved brief + both builder summaries + the test-verifier's coverage map (so it sees which ACs still need end-to-end UI coverage). e2e-author reads the actual code on disk to ground its selectors and HTTP calls, and writes specs in whatever harness the project uses (a browser for web; a simulator/emulator for mobile). |
implementation-validator | the approved story + the approved brief + the test-verifier's report + the e2e-author's report (spec list + flagged divergences) |
If a hand-off requires fabricating something a prior agent didn't produce, stop and report the gap.
Invoke codebase-researcher to map the area of code involved. Capture its findings; pass them forward to every later step that needs them.
Invoke story-writer with the user's idea + researcher findings. Capture the user story, acceptance criteria, edge cases, and out-of-scope items.
Present the story to the user. Ask explicitly: approve, request changes, or reject?
story-writer with the user's specific feedback appended to its input. Return to step 3. Repeat until approved or rejected.Invoke spec-writer with the approved story + researcher findings. Capture the technical brief (data model, flow, API, frontend, tests required, risks, files that will change).
Present the brief to the user. Ask explicitly: approve, request changes, or reject?
spec-writer with the user's specific feedback appended. Return to step 5. Repeat until approved or rejected.Invoke backend-builder with the approved brief + researcher findings. The agent reads CLAUDE.md, discovers the project's stack and conventions (consulting a stack-conventions skill if one is installed), implements the backend half (services, API routes, jobs, migrations, server-side helpers) with unit tests, runs the project's typecheck/lint/test commands, and returns a summary including the API contract.
For a client-only app that consumes a separate or pre-existing API (e.g. a mobile app whose backend lives in another repo), there may be no backend work in this repo. "No backend changes — the feature consumes existing endpoints X, Y" is a valid backend-builder outcome; pass that API contract forward to the frontend-builder. Only treat it as a failure if the brief clearly required backend work in this repo and the agent skipped it.
If the agent reports a failure or a rule conflict it cannot resolve, stop and surface it.
Invoke frontend-builder with the approved brief + researcher findings + the backend-builder's summary (so it has the exact API contract). The agent implements the frontend half with component/unit tests, runs the project's typecheck/lint/test commands, and returns a summary.
If it reports a backend mismatch in its handoff section, loop back to backend-builder scoped to that mismatch, then re-run frontend-builder. Otherwise continue.
Invoke test-verifier with the approved story + approved brief + both builder summaries. It writes acceptance tests in the project's test harness covering every acceptance criterion and the listed edge cases, runs them and the full suite, and returns a coverage map.
If its coverage map reports an uncovered criterion that's blocked on a builder (e.g., missing API field, missing UI affordance), loop back to that builder scoped to the gap, then re-run test-verifier.
Invoke e2e-author with the approved story + approved brief + both builder summaries + the test-verifier's coverage map. It reads the actual code on disk (routes, components, API response shapes), then writes specs in the project's e2e harness for every AC that has a user-visible surface. It runs each spec it writes (using the project's e2e command) before handing off, and produces a coverage map + a list of any divergences it found between the spec and the implementation.
If e2e-author flags critical implementation divergences (e.g., a route file is missing on disk, a component renders fundamentally differently from the brief), surface them now and loop back to the appropriate builder before continuing to step 10.
Invoke implementation-validator with the approved story + approved brief + test-verifier's report + e2e-author's report. It runs the project's static checks (typecheck, lint, unit/acceptance tests) AND the full e2e suite, reads the changed files, and returns findings grouped as Critical / Important / Minor / Opinion, plus a "Recommended next agent" line.
backend-builderfrontend-buildertest-verifiere2e-authore2e-author BEFORE re-running the validator — its specs may need to be updated to match the new implementation.Guard: if the same critical finding survives two loop-back attempts, stop and escalate to the user. Something structural is wrong; another iteration won't fix it.
Present to the user:
Ask explicitly: ready to open PR, loop back, or waive specific findings?
When the chain ends successfully, produce:
CLAUDE.md from this skill.npx claudepluginhub kororos/cc-feature-factory --plugin feature-factory-coreGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.