feature
Runs the full feature workflow: plan, critique, implement, review, QA. Use this when starting a new feature. Guides you through each phase with explicit gates between steps.
Files4
View on GitHubSKILL.mdplugins/ai-workflow/skills/feature/SKILL.md
GitHub/feature
Pipeline: plan → critique → implement → test → code-review → QA → PR.
Run steps in order, skipping only where a step or the mode says so.
AGENTS.md is the source for commands, default branch, sensitive areas, and
task tracking.
planner, plan-critic, code-critic and adversarial-qa below are
sub-agents: "call" means spawn the sub-agent of that name, never load the
same-named skill into your own context (you would be reviewing your own work).
The same holds for build.md step 4's second reviewer, a general-purpose
sub-agent that runs the bundled /code-review skill.
Input
- User prompt (verbatim, including any doc/link references)
- Session branch: a feature branch, not the default branch (any branch with
--plan-only)
Phases
The steps live in files in ${CLAUDE_SKILL_DIR}/, the directory of this
skill. Read each with Read when its phase starts:
plan.md: step 1 (1a–1d), from prompt to saved planbuild.md: steps 2–8, from implementation to a reviewed, QA'd HEAD. Its input is the approved plan text from step 1, or a saved plan it loads itself (--from-plan)pr.md: step 9, opening the PR and keeping it up to date once open
The mode is set by the first token of the arguments; except the exact token
--hands-off where the table places it, a flag anywhere else is prompt
content, passed on verbatim:
| First token | Runs |
|---|---|
--plan-only |
plan.md, then STOP; --hands-off next → STOP: nothing would execute |
--from-plan |
build.md (loading the saved plan) → pr.md; Hands-off if --hands-off directly follows the slug |
--hands-off |
the rest runs as anything else, under Hands-off; nothing after it → STOP and ask; --plan-only next → STOP: they can't combine; --from-plan next → STOP, give the form --from-plan <slug> --hands-off |
| anything else | plan.md → build.md → pr.md |
Only this table decides what runs next: each phase file ends at its last step, then continue with the next file in the table. For every phase file:
- An unexpanded
${CLAUDE_SKILL_DIR}, or a phase file you can't read → STOP perAGENTS.mdRule 2; never work from memory of it - Re-read the current phase file whenever it is no longer fully in your context (e.g. after compaction), and read a file before following a pointer into it
- Step numbers are the same across files: steps 1a–1d are in
plan.md, steps 2–8 inbuild.md, step 9 inpr.md
--plan-only STOP: skip steps 2–9, report the plan file's absolute path and
that /feature --from-plan <slug> on a feature branch runs it. No branch,
commit, push, or PR.
Shared definitions
Used by more than one phase file.
Plan file location: .workflow-plans/<slug>.md under the main
worktree: the parent of the .git dir printed by git rev-parse --path-format=absolute --git-common-dir. That parent still contains a .git
segment (e.g. a submodule), or the dir's name is not .git (a bare repo) →
ask the user where to write (for --from-plan, where to read).
Ownership check, before this run rewrites, removes or marks a plan file:
the file still has the slug, base-commit and exact content this run last
wrote to it, or read from it for --from-plan (when marking consumed, a
consumed: line is not part of the comparison). Content no longer available,
e.g. after context compaction → can't verify → ask.
Hands-off: from approval (--from-plan: once loading passes) to the open
PR, on any Tier, the user is not waiting:
- Decide whatever a step would ask them:
NEEDS_DECISIONs, Open Questions, every QA finding, minor and material deviations, andreview-guidestep 2's extra reviews (run them once per run, even past step 4's extra-run cap) - Take the most conservative, reversible option, citing the plan or an
AGENTS.mdrule where one applies. Record it asD<n>: step, item, what it was about, the option chosen (a deferral: its task id), the one rejected and why, basis, any earlier choice if re-decided, anddeviationif material; no absolute local paths - These still STOP rather than being decided: a FAIL you dispute or one
surviving two fix rounds (
build.mdstep 6); a/code-reviewfinding you would not fix; a deviation that changes, weakens or removes a plan-derived test, AC or EDGE; a plan file collision or location question at 1d; any Rule 2 failure (an unavailable second reviewer, a walkthrough you can't run, QA Blockers); theD<n>list no longer fully in context before the PR opens. The user's answer at a STOP is not aD<n>; then continue hands-off
Output
- Default and
--from-plan:pr.md's Output --plan-only:plan.md's Output, reported as in the--plan-onlySTOP- Every mode: a summary of skipped steps, plan deviations,
context7lookup failures, and why
Rules
- Never skip
plannerfor a new feature (--from-planruns a plan that already went through it) - Never skip
plan-criticunless all step 1b criteria hold AND the user opted out (--from-planre-runs it only when the base moved) - Never leave a source the prompt references unread: read it yourself and
pass it to the
plannerverbatim; the planner never fetches - Never enter plan mode from a sub-agent
- Never present work to the user before
code-critichas reviewed it - Relay ALL
NEEDS_DECISIONitems and Open Questions to the user; never decide them, except under Hands-off - Sub-agents never modify the project's code; only the main agent implements
changes (
adversarial-qaalso writes.qa-evidence/)