/fx-dev:devfrom fx-dev
Runs an attended SDLC lifecycle through requirements, implementation, review, CI, and finalization when explicitly invoked via /dev. Supports Lifecycle and Implementer roles.
Ships in fx-dev. 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.
Read when SKILL.md points to them; scripts run unread.
This skill defines the mandatory workflow for one explicitly invoked /dev lifecycle. Follow its steps in order for that lifecycle; do not infer or auto-start it from an ordinary coding request.
/dev, names fx-dev:dev, or directly asks to use the dev lifecycle./dev again.This skill is loaded in one of two roles. Know which one you are in before doing anything else.
You are in the Lifecycle role when the user explicitly invokes /dev, or when fx-dev:team runs it for one change. Run Steps 0–8 below for one change and stop at the first PR boundary: the PR is open, reviewed, CI is green, the Step 8.1 gates are verified, and it is handed to the user (Step 8.4). dev never merges on its own — a later "merge it" is a standalone user request (Step 8.4). The only workflow that merges autonomously is fx-dev:team, which replaces the Step 8.4 hand-off with its own merge.
You are in the Implementer role when a coordinator — this skill's own Lifecycle, fx-dev:team, or another active workflow — spawns you with a plan, a fix list, or a single focused job and tells you to act in the Implementer role. A sub-agent spawned with a specific job and told to load dev is in the Implementer role unless its prompt explicitly says to run the Lifecycle.
Do exactly that job and nothing else:
references/scope-contract.md). When the work turns out to need materially more than the brief implies, deliver everything unambiguously in scope, then stop and report to the coordinator per Scope Discipline below — never stop with nothing done, and never widen the change on your own.AGENTS.md rule; write the failing test first for a bug fix; match the surrounding code's style; follow security best practices. The Test Policy below binds you in full.#<number>, no waves/phases. A commit subject auto-links #N to PR/issue #N, and it propagates into the PR title (GitHub pre-fills the title from a single commit's subject) and the squash-merge commit subject — so the PR-title rule applies here too: never put #<number> (#4, (#4), #123) in a commit subject unless N is a real PR/issue ref on this repo, and never use a wave/phase/step/change-doc number there. See the fx-dev:github skill's "#<number> PR-Title Rule".sleep-poll a long-running tool or match its process by pattern (references/background-waits.md § The rule binds delegates too).These rules are the Lifecycle coordinator's. An Implementer follows § Roles → Implementer, the Scope Discipline STOP rule, and the Test Policy below.
Use the Agent tool for the substantive delegated roles owned by the active lifecycle: requirements analysis, planning, implementation, and independent review. Each such sub-agent loads the appropriate skill via the Skill tool. Do not spawn a sub-agent for a mechanical operation the coordinator can perform directly. Implementation sub-agents load this skill and act in its Implementer role: Load the dev skill (Skill tool: skill='fx-dev:dev') and act in its Implementer role, then:.
Skills are NOT agent types. Launch a general-purpose sub-agent and instruct it to load the skill:
Agent tool:
prompt: "Load the [skill-name] skill (Skill tool: skill='[skill-name]'), then:
[task details]"
description: "[3-5 word summary]"
model: "[per the size table below]"
Do NOT use subagent_type for skills. The subagent_type parameter is reserved for built-in agent types (Explore, Plan, etc.). Skills are loaded inside the sub-agent via the Skill tool.
Choose by the shape of the task, not by how important it feels. Sizes are named so this table survives model releases — map the size to whatever the Agent tool's model parameter currently offers. Every Agent template in this document omits model for brevity; supply it from here on every call.
| Size | model | Use for |
|---|---|---|
| large | opus | Implementation (Step 4). Planning (Step 3). Requirements analysis (Step 2). Independent review. Fix agents on an undiagnosed failure. Anything requiring design judgment. |
| medium | sonnet | PR preparation. Browser/test-plan verification. Fix agents handed an exact, specified patch. Mechanical work with a clear spec. |
| small | haiku | Pure inspection or summarisation with no judgment call. |
Never downgrade an implementation or review agent. Those are judgment-heavy, and a weaker agent that needs more iterations costs more than a stronger one that needs fewer — turn count, not per-turn price, dominates. A downgrade that adds two review rounds is a large net loss that looks like a saving.
Two constraints worth knowing rather than rediscovering:
Agent tool has no reasoning-effort parameter. Effort is inherited from the session (effortLevel / CLAUDE_EFFORT) and cannot be set per spawn. Size selects the model; it does not select how much the agent thinks.small carries a 200k context ceiling. For read-heavy roles that is a feature — it bounds context growth for free.fx-dev:team carries the same table for its coordinator spawns; keep the two in step.
Sub-agents MUST NEVER send "idle" or "complete" states via mcp__coder__coder_report_task. Only the main agent session (root conversation) is allowed to report "idle" or "complete". Sub-agents spawned via the Agent tool may only report "state": "working". This prevents sub-agents from overwriting the coordinator's dashboard status and falsely signaling task completion.
test.skip, it.skip, describe.skip are FORBIDDEN)subagent_type for skills — use Skill tool inside the sub-agentreferences/background-waits.md § Headless sessions)FAILURE TO DELEGATE A SUBSTANTIVE LIFECYCLE ROLE = WORKFLOW FAILURE. Spawning a sub-agent for a mechanical coordinator operation is also a workflow failure.
When the work outgrows the request, stop and tell the user. Do not silently
deliver more than was asked. Full rule and calibration:
references/scope-contract.md.
Stop when you discover the task needs materially more than its own framing implies: subsystems the user never named, a migration or breaking change, several PRs where one was implied, or an architectural decision the user has not made. Report in two or three sentences — what you found, why it exceeds the request, the cheapest path forward — offer the narrow option first, and wait. Deliver everything unambiguously in scope first; never stop with nothing done.
The threshold moves with the Scope Brief's size signal: a narrow request stops
at any overrun, normal stops at an unmade decision or a reach beyond the named
subsystem, open-ended stops only at architectural forks or irreversible actions.
Do NOT stop for work inside the request's natural boundary: tests for code you
just wrote, docs the change invalidates, fixing a build you broke, following an
approved change document to completion, or resolving findings classified
required-by-contract / regression-caused-by-change. Over-triggering is its own
failure mode.
⛔ NEVER skip tests. If a test cannot pass:
If tests require infrastructure (auth, database, external services), SET UP that infrastructure. Do not skip tests because setup is hard.
Execute FIRST before anything else.
gh auth status
If fails: STOP. Tell user to run gh auth login. Do NOT proceed.
Create clean feature branch BEFORE any implementation.
git status
If uncommitted changes exist:
git stash push -m "SDLC auto-stash"git fetch origin
git checkout main
git pull origin main
git checkout -b <type>/<short-description>
Branch types: feat, fix, refactor, docs, test, chore
⛔ DO NOT PROCEED until branch is created
MANDATORY: Launch a sub-agent that loads the requirements-analyzer skill.
Agent tool:
prompt: "Load the requirements-analyzer skill (Skill tool: skill='fx-dev:requirements-analyzer'), then:
Analyze requirements for: [TASK DESCRIPTION]
- Analyze task/issue/error to understand requirements
- Use WebSearch to research technologies
- Use WebFetch for referenced URLs
- Use AskUserQuestion for ambiguities
- Analyze codebase for patterns
Output: Complete requirements with acceptance criteria"
description: "Analyze requirements"
For GitHub issues, fetch first:
gh issue view [NUMBER] --json title,body,labels,comments
⛔ DO NOT PROCEED until requirements are complete
First, build the Scope Brief. It is the user's own framing, and it must
survive every sub-agent hop and every reviewer call. Full definition and field
rules: references/scope-contract.md (beside this skill).
### Scope Brief
- **Verbatim request:** "<the user's exact words, quoted, never paraphrased>"
- **Interpreted scope:** <files, subsystems, deliverable>
- **Deliverable type:** <docs | code | spec | research | config | mixed>
- **Explicitly out of scope:** <what must NOT be touched or flagged, with reasons>
- **Size signal:** <narrow | normal | open-ended>
- **Known-and-accepted:** <deliberate states a reviewer would otherwise flag>
Derive size signal from the user's own language: "just", "real quick",
"only", "small", "minimal" → narrow; "thoroughly", "comprehensive", "audit",
"properly" → open-ended; otherwise normal. A narrow request is a budget,
not filler — honour it.
The Scope Brief MUST be included verbatim in every downstream sub-agent prompt and every reviewer invocation in Steps 3, 4, 4.5, 6, and 8. A reviewer without it reports the work you deliberately did not do, and every such finding costs a full review cycle to filter by hand.
Then freeze the implementation contract. If the task is sourced from, names, or discovers a relevant docs/changes/*.md file, read it and the spec sections it links. Confirm implementation approval from the conversation or the change's recorded workflow state; if approval is unclear, STOP and ask the user. Record the contract path and approval evidence in the working brief. The change document, its linked specs, and all mandatory project rules form the implementation contract: the plan and implementer prompt MUST map work to that contract and MUST NOT infer adjacent product or architecture work.
The coordinator owns one in-memory finding ledger for the run; reviewer sub-agents return findings to the coordinator and MUST NOT mutate the ledger concurrently. Give every finding a stable fingerprint (category + file + line/range + normalized claim) and record its source, first-seen revision, classification, materiality tier, disposition, and verification evidence. Classification and materiality are independent fields — see Step 4.5 for how the tier is assigned. The tier is n/a for a contract blocker: filter 2 stops before the bar, so a rule violation is never ranked, and inventing a tier for one is the mistake that lets it be argued down. Classify each finding exactly once as:
Fix the first two classes, and any entry that is blocking by tier — a reviewer-originated Material or Substantive finding blocks even where no written rule names it (references/scope-contract.md § Blocking). Deduplicate repeated or reworded findings by fingerprint and update the existing ledger entry. Record every non-blocking entry for the PR or later tracking without implementing it — follow-up/out-of-scope at tier n/a or immaterial. An entry of that class that blocks by tier is fixed like any other blocker; the class name never decides remediation. When reviewer resolvers are invoked by /dev, their deferred-feedback paths MUST return follow-ups to the coordinator instead of modifying task trackers in the implementation PR. To implement out-of-scope product or architecture work, first amend the change document and obtain user approval.
MANDATORY: Launch a sub-agent that loads the planner skill.
Agent tool:
prompt: "Load the planner skill (Skill tool: skill='fx-dev:planner'), then:
[PASTE THE STEP 2.5 SCOPE BRIEF VERBATIM HERE]
Create implementation plan for:
[REQUIREMENTS FROM STEP 2]
- Keep the plan inside the Scope Brief; if the work cannot be done
within it, stop and report that rather than planning around it
- Break into atomic steps
- Identify files to modify
- Determine test requirements
- Flag if multiple PRs needed
- Treat the approved change document as the implementation contract
- Do not include non-blocking follow-up/out-of-scope work, or expand product/architecture, without an approved amendment
Output: Numbered implementation steps"
description: "Plan implementation"
For GitHub issues, also update issue:
Agent tool:
prompt: "Load the issue-updater skill (Skill tool: skill='fx-dev:issue-updater'), then:
Update issue #[NUMBER] with plan. Add label: in-progress"
description: "Update issue"
⛔ DO NOT PROCEED until plan exists
MANDATORY: Launch a sub-agent that loads this skill in its Implementer role (§ Roles).
Agent tool:
prompt: "Load the dev skill (Skill tool: skill='fx-dev:dev') and act in its Implementer role, then:
[PASTE THE STEP 2.5 SCOPE BRIEF VERBATIM HERE]
Implement this plan:
[PLAN FROM STEP 3]
Requirements:
- Stay inside the Scope Brief; if implementation cannot be completed
within it, stop and report rather than widening the change
- Atomic commits (format: type(scope): message)
- Follow existing patterns
- Run tests
- Treat the approved change document as the implementation contract
- Do not implement non-blocking findings, or expand product/architecture, without an approved amendment (an entry blocking by tier is fixed whatever its class)
- Do NOT create PR"
description: "Implement changes"
Verify commits exist:
git log --oneline -5
git diff main --stat
⛔ DO NOT PROCEED until commits exist on feature branch
MANDATORY: Run the local Codex review before creating the PR. Run it once against the current HEAD, record the revision it reviewed, and classify its findings before accepting fixes.
This pass follows fx-dev:review — the canonical review procedure
(Skill tool: skill="fx-dev:review"), which each reviewer skill loads first. This
step does not restate it. In particular: the pass MUST receive the Step 2.5
Scope Brief verbatim, and a pass run without it is incomplete — rerun it with
the brief rather than filtering its output.
Codex (local, via codex) — independent one-shot branch review:
Skill tool: skill="fx-dev:codex-review", args="<Scope Brief>"
Codex is the ONLY local reviewer. The reviewer roster for this SDLC is exactly Codex locally, then Copilot and — where its GitHub App is installed — CodeRabbit at the PR level (Step 6.1). There is no local CodeRabbit pass (the cr CLI is not used anywhere in this SDLC), and no Claude-side review pass: do not run /code-review, /simplify, or a general-purpose reviewing sub-agent as an SDLC gate. The user may still invoke those directly; they are not part of this lifecycle.
The Codex CLI takes the scope as its review prompt, so this pass is the one where a missing brief is most expensive — it will confidently report every deliberate omission. If the codex CLI is unavailable or not authenticated, report it once and proceed without this pass. NEVER run codex login. In a headless session the Codex run is a wait like any other: do not end the turn while it is outstanding (references/background-waits.md § Headless sessions).
Record each finding's class, not just its location (references/scope-contract.md § Fix the class, not the instance). A reviewer reports the instance it read; the ledger entry names the defect pattern and every site in the change's surface that exhibits it, so a fix closes the class rather than buying the next cycle its input. A ledger entry is not resolved while a sibling of its class is open, and a reviewer MUST NOT be re-run with a class half-closed.
Fix every blocking ledger entry (references/scope-contract.md § Blocking): everything classified required-by-contract or regression-caused-by-change, plus any entry blocking by tier — a reviewer-originated Material or Substantive finding blocks even where no written rule names it. After a fix commit:
Do not rerun Codex merely because HEAD changed. Deduplicate repeated or reworded findings against the ledger; they do not start a new cycle. When /dev invokes reviewer subskills, this contract classification and bounded stopping policy takes precedence over generic instructions to resolve every actionable finding or rerun until clean.
The materiality bar applies to judgment-originated findings only — things a reviewer raised on its own reading, rather than violations of a rule the project wrote down (references/scope-contract.md). One of those must clear the bar before it can be treated as blocking. Materiality is a separate ledger field, not a fourth classification — every entry still carries exactly one of the three classifications above, plus a materiality tier. An observation that would change nothing if it shipped uncorrected is recorded as follow-up/out-of-scope with materiality immaterial, and never triggers a rerun.
Rule violations are blocking regardless of materiality. Anything Step 2.5 defines as required-by-contract — project, security, privacy, test and merge rules the project wrote down — is blocking by virtue of being a rule, whatever its direct behavioural impact. The contract filter runs before the bar, exactly as references/scope-contract.md § Three filters specifies, so the coordinator can never demote a violation the reviewer correctly marked blocking. Two shapes in particular are non-findings and MUST NOT enter the ledger at all, at any tier — not as blocking, and not as an immaterial entry either: a missing entry in a list the artifact does not present as exhaustive, whether it says "for example" or declares the list illustrative, and a decision the artifact records with its rationale where the disagreement is about preference. Recording them as immaterial keeps the churn and merely renames it. The second, raised again in the very next pass, is an escalation to the user rather than a third cycle (references/scope-contract.md § Convergence defines that trigger) — but a recorded rationale never makes a decision safe. The full carve-out is in references/scope-contract.md § Three things that are not findings and is not narrowed here: if the decision itself leaks a credential or private identifier, loses data, violates a security or privacy invariant, or contradicts a contract the project mandates, it is required-by-contract and stays blocking.
Proceed to Step 5 when all of the following are true:
Every blocking ledger entry is resolved with evidence. Blocking is defined once, in references/scope-contract.md § Blocking; this gate does not restate it.
A finding excluded at filter 1 can never carry a Material or Substantive tier. The two fields are assigned by different filters and cannot disagree, so that one pair is illegal. Note the rule is about the filter, not the class name: follow-up/out-of-scope holds entries of two different origins, and all three tiers can be legal for it — a finding excluded at filter 1 never reaches the bar, so its tier is n/a; an in-scope observation that reached filter 3 and failed it is tier immaterial. A finding that reaches the bar at all is one no written rule covers — a written-rule violation stops at filter 2, unranked, as a contract blocker with tier n/a and class required-by-contract, and never reaches filter 3. So a finding ranked Material or Substantive is in scope by construction, is a defect in work this change actually did, and is not required-by-contract: it is regression-caused-by-change where the branch caused a regression, and otherwise — a two-way ambiguity in something this change wrote, say — it stays in this class and still blocks, by tier. The classification answers what obliges the fix; the tier answers whether it blocks, exactly as the stopping condition below states. What is illegal is that tier pair on a finding excluded at filter 1, which never reached the bar. The filter outcome decides the resolver disposition — not the class name, and not the tier (§ Resolver dispositions). Tier n/a is carried by two unrelated outcomes and so cannot pick one: a contract blocker is n/a because filter 2 stopped before the bar, and it is blocking — fixed and pushed; a finding excluded at filter 1 is n/a because it never reached the bar, and it is deferred, replied to with the exclusion. Tier immaterial settles as immaterial, replying with the materiality reasoning. Read the outcome, never the tier alone. Citing an exclusion for an in-scope observation invents one that does not exist. If you are about to record that pair, one of the two filters was misapplied — re-run them rather than writing an entry the gate can neither clear nor waive. Materiality never promotes an out-of-scope finding back into scope (references/scope-contract.md § Three filters); this rule is that principle applied to the ledger.
Contract-required tests and tests affected by the latest delta pass.
The Codex pass completed its initial pass, or its unavailability is documented as a permitted degradation.
The review has converged as references/scope-contract.md § Convergence defines it — no blocking finding left unresolved, ledger-wide, not merely none new in the latest pass. As an additional gate, that state is confirmed by one verification pass over the latest affected delta.
follow-up/out-of-scope entries with tier n/a — the class and the tier together, which is what identifies a filter-1 exclusion — and immaterial observations, do not block PR creation. Tier n/a alone does not qualify: a required-by-contract entry carries it too, and blocks. Nothing else is waivable here: a reviewer-originated Material or Substantive finding blocks even though no written requirement names it, exactly as item 1 above and references/scope-contract.md § Blocking say. Each review channel caps at the single bound defined in references/scope-contract.md § The iteration bound, which counts the initial pass as iteration 1 and which no skill restates or overrides — count reviewer invocations in total, not remediation rounds on top of the first pass. Convergence is the goal, and the bound is a runaway backstop, not a target. Reaching it means the loop failed to converge; report it that way. Reaching the bound is a failure to converge and does not authorize Step 5. STOP, report the per-pass trend and everything still open, and let the user decide whether to create the PR — including when every remaining entry is follow-up/out-of-scope with tier n/a. A blocking entry at the bound is always an escalation; the bound never waives one. A contract amendment may change product scope, but it cannot waive mandatory correctness, security, privacy, testing, or merge rules.
Do not spend the headroom. The bound is far above what a healthy channel needs; the signals that should actually end a loop — converged, and the same disagreement in successive passes (references/scope-contract.md § Convergence) — fire in single digits, as does a rising blocking count of one class, which is a cause to fix rather than an exit: address the cause and continue, and escalate only where the cause is a design choice with two defensible answers (references/scope-contract.md § The iteration bound). A round that resolves only immaterial items is churn at any iteration number, and the convergence rule already forbids it.
MANDATORY: Prepare the PR directly from the coordinator, optionally loading fx-dev:pr-preparer in the coordinator session. Do not spawn a sub-agent solely to push a branch or create/edit PR metadata. ALL PRs MUST be created READY FOR REVIEW — never as drafts.
⛔ NEVER use the --draft flag. NEVER create draft PRs. Draft PRs have repeatedly been used as an excuse to skip downstream steps (reviewer waits, CI monitoring, CodeRabbit/Copilot resolution). The SDLC ALWAYS executes the full review/CI cycle from PR creation onward — opening as draft defeats this. If the work isn't ready for review, don't open the PR yet.
Before creating the PR, identify related spec and change documents:
# Find related change documents (check if task was sourced from a change doc)
ls docs/changes/ 2>/dev/null
# Find related specs
ls docs/specs/ 2>/dev/null
cat docs/index.yml 2>/dev/null
If the work was driven by a specific change document or spec, note the paths for inclusion in the PR description.
Skill tool: skill="fx-dev:pr-preparer", args="
Create PR (ready for review, NOT draft) for current branch.
Task: [ORIGINAL TASK]
Summary: [WHAT WAS IMPLEMENTED]
Spec/Change context (include in PR body if applicable):
- Spec: [SPEC_PATH or 'none']
- Change: [CHANGE_DOC_PATH or 'none']
CRITICAL: Do NOT pass --draft. The PR must be opened ready for review so
CI, Copilot, and CodeRabbit run from the start.
- Push branch if needed
- Create PR with: gh pr create (NO --draft flag)
- Include links to related spec/change docs in the PR body
(use relative paths from repo root, e.g. docs/specs/auth/ or docs/changes/0003-add-oauth.md)
- Do NOT put spec/change references in the PR title — not as a number,
slug, or path, even when the PR finalizes a change doc. Describe the
work itself in the title; reference the doc by path in the body only.
- ⛔ NEVER put '#<number>' in the PR title ('#4', '(#4)', '#123')
unless N is a REAL existing PR/issue on the target repo that this PR
references. On squash-merge the title becomes the commit subject,
where '#N' auto-links to PR/issue #N. NEVER use '#N' for an
implementation wave, phase, step, or change-doc number, and NEVER
pre-add a '(#N)' suffix (GitHub appends the real PR number at squash
merge). No waves/phases/steps in the title at all — those go in the
body. See the fx-dev:github skill's '#<number> PR-Title Rule'.
- Reference related issues
- Do NOT include any 'this is a draft' / 'draft for review' language
anywhere in the title or body
- Return PR number and URL"
Capture the PR number for remaining steps.
⛔ DO NOT PROCEED until PR is created (as ready for review)
This step is MANDATORY for every PR that has a test plan. It is NOT limited to web/UI changes. Backend changes, platform integrations, CLI tools, and infrastructure changes all have test plans that must be addressed.
Read the PR description and extract the Test Plan section:
gh pr view [PR_NUMBER] --json body --jq '.body'
Parse the ## Test plan section. Each - [ ] item is a verification target.
If the PR has no Test Plan section, construct one from the PR diff — identify what changed and create verification steps. Add them to the PR description before proceeding.
Classify each test plan item into one of three categories:
| Category | Description | Action |
|---|---|---|
| Browser-verifiable | Can be tested via Playwright MCP (UI routes, visual changes, interactions) | Run verify-web-change (Step 5.5.2) |
| Programmatically verifiable | Can be tested via CLI, API calls, log inspection, or automated scripts | Run verification commands directly (Step 5.5.3) |
| Manual-only | Requires external systems, user accounts, or physical interaction (e.g., "send a Discord message", "check email") | Annotate for user and prompt them to verify (Step 5.5.4) |
Skip this sub-step if no test plan items are browser-verifiable.
Detect if browser verification is possible:
WEB_FILES=$(git diff main --name-only | grep -E '\.(tsx|jsx|vue|svelte|html|css|scss|less)$' || true)
HAS_WEB_STACK=false
for cfg in vite.config.ts vite.config.js next.config.js next.config.ts next.config.mjs nuxt.config.ts svelte.config.js angular.json astro.config.mjs; do
if [[ -f "$cfg" ]]; then
HAS_WEB_STACK=true
break
fi
done
If web changes exist and browser-verifiable items are present, launch the verify-web-change sub-agent:
Agent tool:
prompt: "Load the verify-web-change skill (Skill tool: skill='fx-dev:verify-web-change'), then:
Verify the following Test Plan items for PR #[PR_NUMBER] using browser automation:
[BROWSER-VERIFIABLE TEST PLAN ITEMS]
For each item:
1. Navigate to the relevant page/route
2. Use Playwright MCP snapshots to verify the element/behavior exists
3. Test any interactions described in the test plan item
4. Check for console errors
5. Report PASS/FAIL per item with evidence (what you observed)
Output: A list of each test plan item with its result (PASS/FAIL/SKIPPED) and evidence."
description: "Verify web changes in browser"
Skip this sub-step if no test plan items are programmatically verifiable.
For items that can be verified via commands (API calls, log inspection, test runs, etc.), run the verification directly:
bun --bun run test — confirm relevant tests passcurl or similar to verify endpoint behaviorRecord PASS/FAIL per item with evidence.
⛔ NEVER silently skip manual-only test plan items.
For items that require manual interaction (external services, physical devices, user accounts), you MUST:
Example:
The following test plan items require manual verification:
- [ ] Send a message to the Discord bot and verify the typing indicator appears immediately
- [ ] Confirm the typing indicator stays active for responses > 10 seconds
Please test these and let me know the results.
MANDATORY: After all verification (automated + manual), update the PR description.
BODY=$(gh pr view [PR_NUMBER] --json body --jq '.body')
For each Test Plan item:
- [ ] to - [x]- [ ] and append: — FAILED: [reason]- [ ] to - [x] and append: (manually verified)- [ ] and append: — requires manual testingUpdate the PR:
gh pr edit [PR_NUMBER] --body "$UPDATED_BODY"
⛔ DO NOT PROCEED to Step 6 until every test plan item has been addressed — either verified (pass/fail), confirmed by user, or explicitly annotated as requiring manual testing.
If any Test Plan items failed verification:
Agent tool:
prompt: "Load the dev skill (Skill tool: skill='fx-dev:dev') and act in its Implementer role, then:
Fix these verification failures:
[FAILURE DETAILS]
Push fixes to the PR branch."
description: "Fix verification failures"
⛔ DO NOT PROCEED until verification passes or max iterations reached
MANDATORY: Execute ALL sub-steps.
There is no Claude-side self-review sub-step. PR-level review is Copilot and CodeRabbit, exactly as Step 4.5 named the roster: do not spawn a reviewing sub-agent to read the PR first, and do not invoke a general-purpose reviewer skill here. Blocking findings from the two reviewers are fixed by their resolvers inside 6.1, not by a separate implementer pass.
MANDATORY: Wait for and resolve EVERY automated reviewer configured on the repo. Copilot and CodeRabbit are the only two this step requests — that roster is closed (references/scope-contract.md § Injecting the brief into reviews), so do not add a pass for another reviewer, and in particular never reintroduce a Claude-side one. But requesting and settling are different obligations: if the repo has some other automated reviewer configured and it posts threads anyway, those threads are triaged and settled like any others, because no thread from a configured automated reviewer may be left open under a merge (Step 8.1's checklist, and the spec behind it). There is no waiter or resolver for such a reviewer, so settle it by hand — triage against the brief, reply with the disposition, resolve via resolveReviewThread (fx-dev:github) — and do not read a clean fx-dev:resolve-pr-feedback report as covering it; that skill categorises by author login and knows only Copilot and CodeRabbit (references/scope-contract.md § Injecting the brief into reviews). Reviewers are independent feedback channels with different latencies (Copilot 85 s to 12 m 42 s observed — do not budget for it being quick; CodeRabbit 2–10+ min and re-runs after every push).
CodeRabbit is PR-level only. There is no local CodeRabbit pass — Step 4.5 runs Codex alone. CodeRabbit applies here when the repo's GitHub App auto-reviews PRs, and its waiter reports
STATUS=NOT_CONFIGUREDwhen it does not, which is the common case and is terminal. Prefer a passing check and resolve received feedback; if CodeRabbit rate-limits, resolve what it already delivered — blocking findings fixed, every posted thread settled — then recordskipped (rate-limited)and continue without blocking.
| Reviewer | Skill | Notes |
|---|---|---|
| GitHub Copilot | fx-dev:copilot-review | Auto-reviews; we explicitly request via API as a defensive belt. Does NOT re-review on push by default. |
| CodeRabbit | fx-dev:coderabbit-review | PR-level only — there is no local pass. Applies when the GitHub App auto-reviews PRs: re-reviews after pushes and exposes state via the CodeRabbit check. Classify new feedback in the shared ledger and settle its threads within the bounds below. STATUS=NOT_CONFIGURED means the App is absent — report once and skip. |
⛔ Launch each configured reviewer's wait script in the SAME message, backgrounded per references/background-waits.md, each redirecting to its own log file. They then run concurrently and wake you per reviewer.
# Both in ONE message, both run_in_background: true
mkdir -p .claude/team/waits && \
bash [SKILL_BASE_DIR]/skills/copilot-review/scripts/wait-for-copilot-review.sh [PR_NUMBER] \
> .claude/team/waits/copilot-[PR_NUMBER].log 2>&1
mkdir -p .claude/team/waits && \
bash [SKILL_BASE_DIR]/skills/coderabbit-review/scripts/wait-for-coderabbit-review.sh [PR_NUMBER] \
> .claude/team/waits/rabbit-[PR_NUMBER].log 2>&1
⛔ Headless sessions wait in the foreground instead. If this session is non-interactive — your instructions say so, there is no user to reply mid-run, or ending your turn ends the process — nothing will wake you after you end your turn, so a backgrounded waiter is a gate you will silently skip. Never end the turn while any reviewer, CI, or sub-agent wait is outstanding. Run each waiter in the foreground with a budget below the tool's timeout and relaunch it on
STATUS=PENDING, exactly asreferences/background-waits.md§ Headless sessions specifies, and carry the lifecycle through the Step 8.4 hand-off before you reply.sleeppolling stays forbidden.
STATUS= line (each reviewer skill documents its own table; the five states are shared):
TERMINAL_PASS / TERMINAL_FAIL — settled. Do not re-run for a better answer.PENDING — not a verdict and not a failure. Re-running is safe if you still need it. Never record it as "no findings" or "CI passed".NOT_CONFIGURED — that reviewer does not apply to this repo. Terminal: report once, proceed without it, never retry.ERROR — the wait never started. Report it.blocking, immaterial, or deferred (references/scope-contract.md § Resolver dispositions) — so it settles both no-edit dispositions without code or task-tracker changes. A thread whose premise you verified and rejected is listed as undisposed with the reason, not forced into one of the three.HEAD changed.references/scope-contract.md § Convergence — no blocking finding left unresolved, ledger-wide — confirmed by one latest-delta pass, and every required reviewer thread is settled.Never let a reviewer's findings reach an implementer before you have classified them.
Fix every blocking finding and only those (references/scope-contract.md § Blocking), whatever its ledger class. Record the non-blocking remainder without implementing it, and settle its thread with the disposition that actually fits (references/scope-contract.md § Resolver dispositions): deferred — citing the exclusion — for a finding excluded by scope, and immaterial — replying with the materiality reasoning — for an in-scope observation that fails the bar. Both are no-edit, and they are not interchangeable: citing a scope exclusion for an in-scope observation invents an exclusion that does not exist. Each reviewer channel caps at the canonical bound in references/scope-contract.md § The iteration bound, which counts the initial pass as iteration 1 and which no local instruction restates or overrides. Convergence, not the bound, is what should end it: the early signals (converged, and the same disagreement in successive passes, both per references/scope-contract.md § Convergence) fire in single digits, as does a rising blocking count of one class — which is a cause to fix and continue, not an exit, and an escalation only where that cause is a design choice. Reaching the bound is a failure to converge, not an exit you may take: STOP, report the per-pass trend and what remains, and hand the decision to the user. Do not advance to the next workflow step on the strength of having hit it, even when only follow-up/out-of-scope entries remain. Do not seek zero suggestions or restart unrelated review channels.
STATUS=NOT_CONFIGURED — e.g. no CodeRabbit check ever appears), report this once and proceed without that reviewer. That status is terminal: never retry or wait it out.skipped (rate-limited), and proceed immediately. Do not raise timeouts, sleep, poll, or retry for CodeRabbit throttling. The degradation waives only the review passes that never ran (fx-dev:coderabbit-review, rate-limit rule): anything CodeRabbit already delivered still counts — fix its blocking findings and settle every thread it already posted before recording the skip, or the PR carries an open thread past a gate that requires none.⛔ DO NOT PROCEED until every required reviewer has settled. CodeRabbit is satisfied by a passing result, or by an explicit skipped (rate-limited) degradation once everything it already delivered is resolved.
MANDATORY: Execute ALL sub-steps. Maximum 3 fix iterations.
Because Step 5 opens the PR ready for review (NOT draft), CI workflows that
trigger on pull_request start immediately. There is no draft → ready
transition to manage in this workflow.
⛔ Run the bundled CI check script in the BACKGROUND, per references/background-waits.md, then read the log when the completion notification arrives. In a headless session, run it in the foreground instead and relaunch on PENDING (references/background-waits.md § Headless sessions) — never end the turn with CI outstanding:
mkdir -p .claude/team/waits && \
bash [SKILL_BASE_DIR]/skills/dev/scripts/wait-for-ci-checks.sh [PR_NUMBER] \
> .claude/team/waits/ci-[PR_NUMBER].log 2>&1
Script behavior:
Branch on the trailing STATUS= line:
| STATUS | Exit | What to do |
|---|---|---|
TERMINAL_PASS | 0 | Every check completed, none failed → proceed to Step 8 |
TERMINAL_FAIL | 1 | Every check completed, at least one failed → proceed to Step 7.2 |
PENDING | 2 | Still running at budget expiry. Not a verdict. Re-run to keep waiting, or report the wait as unfinished. Never record it as "CI passed". |
NOT_CONFIGURED | 3 | No checks appeared within the discovery grace — this PR has no CI configured. This is NOT a pass: a merge gate requiring green CI is not satisfied by the absence of CI. Report it and confirm against branch protection. |
ERROR | 4 | Bad arguments, gh unauthenticated, or the checks API could not be read → report. A failed read is not "no checks". |
If Step 7.1 reports STATUS=TERMINAL_FAIL (failures detected):
Skill tool: skill="fx-dev:resolve-ci-failures"
Pass the failure details from the script output to the skill. The skill will:
After the skill completes and fixes are pushed, GO BACK TO Step 7.1 — re-run the wait script to monitor the new check run. This creates a loop:
Step 7.1 (wait) → fail → Step 7.2 (fix) → Step 7.1 (wait) → ...
⚠️ Maximum 3 iterations. Track the current iteration count. If checks still fail after 3 fix attempts, STOP and report the persistent failures to the user with full details.
⛔ DO NOT PROCEED until all checks pass or max iterations reached
⛔ ALL of the following must be verified before ANY PR can be merged. No exceptions.
# 1. CI checks — ALL must be green (includes the CodeRabbit check)
gh pr checks [NUMBER]
# 2. Automated reviewers — MUST be settled and resolved (if not already done in Step 6.1)
# Reuse Step 6.1 evidence when it covers the current head SHA. Invoke a dedicated
# reviewer skill only when its check, threads, or reviewed SHA changed; do not restart
# a settled review loop solely because finalization was reached.
# Use the dedicated skills — NEVER raw gh api commands. That ban is about
# reviewers that HAVE a skill (Copilot, CodeRabbit): reaching past one loses its
# head-SHA scoping. A reviewer with no adapter is the documented exception —
# settle it by hand per references/scope-contract.md § Injecting the brief into
# reviews, which is the only route available and is not a bypass.
Skill tool: skill="fx-dev:copilot-review", args="[NUMBER] — [STEP 2.5 SCOPE BRIEF VERBATIM]"
Skill tool: skill="fx-dev:coderabbit-review", args="[NUMBER] — [STEP 2.5 SCOPE BRIEF VERBATIM]"
# 3. Unresolved review threads — MUST be 0 (across ALL reviewers)
gh pr view [NUMBER] --json reviewThreads \
--jq '[.reviewThreads[] | select(.isResolved == false)] | length'
# 4. Codecov — patch and project checks must pass
gh pr checks [NUMBER] # verify codecov/patch and codecov/project
Merge gate checklist (every item must pass):
type(scope): description) — verify gh pr view [NUMBER] --json title -q .title | grep -Eq '^(feat|fix|docs|refactor|chore|test|perf|build|ci|style|revert)(\(.+\))?!?: .+'; a plain prose title FAILS — rename with gh pr edit [NUMBER] --title "type(scope): …" BEFORE merging (squash bakes the title into main). Also no stray #<number>/wave/phase wording.fx-dev:copilot-review skill — NEVER raw gh api)skipped (rate-limited). CodeRabbit throttling is optional and never blocks merge.references/scope-contract.md § Blocking) — required-by-contract, regression-caused-by-change, and any entry blocking by tier; the latest affected delta is verified within the stopping boundsPR size is NEVER a reason to skip merge gates. A 1-line fix gets the same verification as a 1000-line feature.
The PR was opened ready-for-review in Step 5, so there is no draft → ready
transition to perform here. Do NOT run gh pr ready — it is unnecessary and
will fail on a non-draft PR.
MANDATORY: Mark completed tasks in the relevant change document or tasks file.
If a change document or task list was referenced in the original request (e.g., a docs/changes/NNNN-name.md or docs/tasks.md), use it directly. If none was provided, search for the relevant tracking doc:
# Look for change documents or tasks that reference the work being done
grep -rl "keyword from task" docs/changes/ docs/tasks.md 2>/dev/null || true
Once identified, update the doc to mark completed tasks:
- [ ] → - [x])- [x] Task name (PR #N)completeAgent tool:
prompt: "Load the dev skill (Skill tool: skill='fx-dev:dev') and act in its Implementer role, then:
Update task tracking in [DOC_PATH]:
- Read the doc and identify tasks completed by PR #[NUMBER]
- Mark those tasks as done: - [x] Task name (PR #N)
- Do NOT mark tasks that were not addressed
- If all tasks in a change doc are done, update Status: complete
- SYNC INDEXES: Update docs/index.yml (status field) and docs/index.md (table row) to match
- Commit the change with: docs: mark completed tasks in [DOC_NAME]
- Push to the PR branch"
description: "Update task tracking"
If no relevant tracking doc is found, skip this step.
Agent tool:
prompt: "Load the issue-updater skill (Skill tool: skill='fx-dev:issue-updater'), then:
Update issue #[NUMBER]: Link PR, set label ready-for-review"
description: "Update issue"
✅ PR #[NUMBER] ready: [URL]
Changes:
- [summary bullets]
Awaiting your approval to merge.
⚠️ NEVER MERGE WITHOUT USER APPROVAL ⚠️ NEVER MERGE WITHOUT ALL MERGE GATES PASSING (Step 8.1) ⚠️ NEVER MERGE WITHOUT COPILOT REVIEW RECEIVED AND ADDRESSED
After this handoff, a later user message such as "merge it" is a standalone mechanical request, not a new /dev phase. Recheck the live gates and merge directly in the coordinator session. Do not re-invoke /dev, reload its internal skills, or spawn a merge sub-agent.
This hand-off is where a /dev Lifecycle ends. When fx-dev:team runs this lifecycle for a change, team's own autonomous merge replaces this step (fx-dev:team § What team adds to dev); nothing in /dev itself merges.
fix/issue-123-descriptiongh issue view [NUMBER] --json title,body,labels,commentsfix/short-error-descNEVER have multiple PRs open simultaneously
| Error | Action |
|---|---|
| Sub-agent fails | Retry once with adjusted params, then STOP and report |
| Git conflict | STOP, report to user, wait for resolution |
| Tests fail | Implementer sub-agent fixes, rerun until pass |
| Auth fails | STOP, request gh auth login |
All sub-agents are launched via the Agent tool. Each loads its skill via the Skill tool inside the sub-agent.
| Step | Skill to Load | Skill Name |
|---|---|---|
| 2 | Requirements Analyzer | fx-dev:requirements-analyzer |
| 3 | Planner | fx-dev:planner |
| 3,8 | Issue Updater | fx-dev:issue-updater |
| 4,5.5.6,8.2 | Implementer | fx-dev:dev (this skill, Implementer role) |
| 4.5 | Pre-PR Self-Review | fx-dev:codex-review (local codex, the ONLY local reviewer) — initial pass complete, blocking findings resolved, latest affected delta verified |
| 5 | PR Preparer | fx-dev:pr-preparer |
| 5.5.2 | Browser Verification | fx-dev:verify-web-change |
| 6.1 | Copilot Review | fx-dev:copilot-review (waiter backgrounded, concurrent with coderabbit-review) |
| 6.1 | CodeRabbit Review | fx-dev:coderabbit-review (PR-level only, waiter backgrounded, concurrent with copilot-review; classify/deduplicate feedback and verify only affected deltas within bounds) |
| 6.1 | PR Feedback Resolver | fx-dev:resolve-pr-feedback (meta — called by reviewer skills) |
| 7.2 | CI Failure Resolver | fx-dev:resolve-ci-failures |
Pattern for every sub-agent call:
Agent tool:
prompt: "Load the [skill-name] skill (Skill tool: skill='[full-skill-name]'), then: [task]"
description: "[summary]"
Workflow complete when ALL true:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fx/cc --plugin fx-dev25 skills in this plugin
/coderabbit-reviewExplicit-use only — invoke when the user explicitly names this skill, or when an active explicitly invoked workflow calls it. Handles CodeRabbit's PR-level review as an optional review adapter with Scope Brief triage and rate-limit degradation./codex-reviewExplicit-use only — invoke when the user explicitly names this skill, or when an active explicitly invoked workflow calls it. Runs a scoped one-shot Codex CLI branch review as an external review adapter./copilot-feedback-resolverExplicit-use only — invoke when the user explicitly names this skill, or when an active explicitly invoked workflow calls it. Processes and resolves existing GitHub Copilot review threads without creating PR-level comments./copilot-reviewExplicit-use only — invoke when the user explicitly names this skill, or when an active explicitly invoked workflow calls it. Requests, waits for, inspects, and settles a head-scoped GitHub Copilot review./fixExplicit-use only — invoke when the user explicitly names this skill, or when an active explicitly invoked workflow calls it. Runs a test-first bug-fix lifecycle and then enters the explicitly requested SDLC workflow./githubExplicit-use only — invoke when the user explicitly names this skill, or when an active explicitly invoked workflow calls it. Provides reference guidance for GitHub CLI, pull-request, review-thread, and GitHub API operations.Other plugins' skills for the same job