/sd0x-dev-flow:feature-devfrom sd0x-dev-flow
Guides feature implementation from requirements through design, coding, testing, and precommit gate. Loads feature intent docs and enforces invariants.
Ships in sd0x-dev-flow. 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.
/codex-test-review directly)❌ git add | git commit | git push — per @rules/git-workflow.md
This skill implements features but does not commit. /precommit is a quality gate only. To commit, offer the menu per rules/git-workflow.md § Proactive Offer — a commit option on any real branch, a push option only where review-state.js offer allows one — and invoke /smart-commit --execute on selection; never print the command for the user to copy.
budget:token_budget200000</budget:token_budget>
Requirements → Design → Implement → Test + Review → Precommit Gate → Doc Sync
│ │ │ │ │
▼ ▼ ▼ ▼ ▼
/codex- /codex- /verify /precommit /update-docs
architect implement /codex-test-review (or /precommit) /create-request --update
/codex-review-fast
Load the intent first: identify the feature this work belongs to (from the task, the
spec/requirements being followed, or the paths being changed) and read
docs/features/<key>/intent-<key>.md if it exists — it overrides your default approach. Work
that contradicts one of its INV-* invariants or Non-goals stops and asks the user (cite the
line; amending intent is their re-decision). No identifiable feature → nothing to load; proceed.
Design before code: for a non-trivial change, briefly consider who owns each responsibility,
the simplest shape that fits the existing code, and why — and say what you chose when the choice
is non-obvious. Principles (clear names, small cohesive functions, dependency direction,
composition where it reduces coupling) are questions, not quotas: never add an abstraction to
demonstrate design. /codex-architect is for genuinely hard trade-offs (cross-module boundaries,
new public APIs, durable abstractions), not every feature.
Hard decisions: when to decide. Only for a decision that is genuinely hard — a trivial feature skips this paragraph and records nothing. Weigh two things: the cost of changing course later (who depends on the choice, and what a reversal would break) and the value of waiting (what evidence would arrive, when, and what the delay costs). State the outcome where the design is already being stated — the reply, or the feature's tech spec when it has one; no separate decision log.
| Decision | Timing |
|---|---|
| Costly to reverse — an external contract others build on: public API, wire or file format, event schema, CLI flags | Address it early, before building on it. This is where /codex-architect belongs |
| Cheap to reverse — a private choice behind an interface, such as the storage layout of data only this module reads | Defer when feasible: take the simplest shape that keeps the switch cheap, and name the signal that would settle it (a measurement, a usage count, a failing test). Decide when that signal arrives |
| Cannot wait — the work is blocked without it | Decide now with the simplest reversible shape, and still name the signal that would reopen it |
At the start, run node "${CLAUDE_PLUGIN_ROOT}/skills/agentctl-setup/scripts/agentctl-setup.js" status
once. Only when state is installed/enabled, offer to draft a task proposal from the ticket per
@skills/agentctl-setup/references/workflow-integration.md — the user accepts it with
/agentctl accept; any other state, say nothing about agentctl and continue. It is never a gate:
every review and precommit obligation in this skill is unchanged, and its evidence is context
beside a verdict, never the verdict.
| Phase | Command | Description |
|---|---|---|
| Design | /codex-architect | Get architecture advice |
| Implement | /codex-implement | Codex writes code |
| Test: Run | /verify | Run tests (lint → typecheck → unit → integration) |
| Test: Review | /codex-test-review | Mandatory — review test sufficiency (5 dimensions) |
| Test: Generate | /codex-test-gen | Generate unit tests for gaps |
| Test: Integration | /post-dev-test | Write missing integration/e2e tests |
| Review | /codex-review-fast | Code review (auto-loop) |
| Precommit | /precommit | lint + build + test (auto-loop canonical path) |
| Doc Sync | /update-docs | Sync docs with code |
| Doc Sync | /create-request --update | Update request progress |
| Refactor | /simplify | Final refactoring |
This is the core of feature-dev — ensuring sufficient test coverage before code review.
/verify → all tests pass?
Yes → Step 2
No → fix failures → re-run /verify
/codex-test-review → ✅ Tests sufficient?
Yes → Step 3
No → close gaps (Step 2a) → /codex-test-review --continue
| Gap Type | Remediation Command |
|---|---|
| Unit test missing/insufficient | /codex-test-gen → write tests → /verify |
| Integration/E2E missing | /post-dev-test → write tests → /verify |
/codex-review-fast → ✅ Ready?
Yes → Precommit Gate
No → fix issues → re-run /codex-review-fast (auto-loop)
If code changes after the latest ✅ Tests sufficient gate (e.g., fixes from code review), rerun /verify then /codex-test-review --continue before proceeding to precommit gate.
Follow @rules/testing.md for conventions (AAA, naming, evidence model).
Follow @rules/testing-project.md for project-specific overrides (directories, runner, adequacy mode).
| Change Type | Test Requirements |
|---|---|
| New Service/Provider | Must have corresponding unit test |
| Modify existing logic | Existing tests pass + new logic tested |
| Bug fix | Must add regression test |
| New API endpoint | Integration test required |
| Cross-service change | E2E test required |
Use project convention from @rules/testing-project.md. If no override is defined, follow ecosystem defaults:
| Source Pattern | Test Pattern |
|---|---|
src/<module>/ | test/unit/<module>/ or test/<module>/ |
scripts/<name>.sh | test/scripts/<name>.test.js |
skills/<name>/SKILL.md | test/skills/<name>.test.js |
/verify)/codex-test-review)/codex-review-fast ✅ Ready)/precommit ✅ All Pass)git add/commit/push executed⚠️ Auto-triggered by @rules/auto-loop.md — behavior-layer rule, not hook-enforced.
Only when change maps to a feature under docs/features/. Target detection uses 3-level fallback — see /update-docs for algorithm details.
precommit Pass
→ Locate feature docs (see /update-docs 3-level fallback)
→ /update-docs docs/features/<feature>/2-tech-spec.md (current-authority doc)
→ /create-request --update docs/features/<feature>/requests/<date>-<title>.md (record: status + outcome only)
→ /codex-review-doc (ONE dispatch for every doc touched above)
→ Safety valve: new code diff? → back to review loop (see /update-docs)
Sync the current-authority doc; append to the record. The tech spec states what is true now, so
code landing makes it stale and it is rewritten. A request ticket, review log or ADR states what was
decided or done at a point in time — it is updated with status and outcome, never rewritten to match
today's code, because rewriting it destroys the record. scripts/lib/doc-metadata.js decides which a
file is; /codex-review-doc reviews each under the profile that classification earns.
One /codex-review-doc for all of them, not one per file: the changed docs are a single review plan
(skills/doc-review/SKILL.md § Workflow). Per-file dispatch is what multiplied a three-file doc sync
into three whole-document reviews.
MUST re-review after fix until PASS (per @rules/auto-loop.md)
Review → Issues found → Fix → Re-review → ... → ✅ Pass → Next step
Input: Implement a fee calculation method
Action: /codex-architect → /codex-implement → /verify → /codex-test-review → /codex-review-fast → /precommit
Input: Add an export endpoint; unsure about the response schema and about how to store export jobs
Action: Response schema is an external contract → settle it first (/codex-architect). Job storage is
private and reversible → start with the simplest table behind the repository interface, revisit
when queue depth stays above 10,000 jobs for a day. Then implement → /verify → ... → /precommit
Input: This code needs refactoring
Action: /simplify → /verify → /codex-test-review → /codex-review-fast → /precommit
Input: Feature dev, continue (resuming work)
Action: Check git status → identify remaining tasks → continue from current phase
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sd0xdev/sd0x-harness --plugin sd0x-dev-flow102 skills in this plugin
/adrWrite an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as docs/features/<feature>/adr-<NNN>-<title>.md with a 3-digit zero-padded number. Handles the Superseded case: bidirectional linking when a new ADR replaces an old one. Use when: recording why an architectural approach was chosen, documenting a decision so it doesn't get re-litigated, marking a prior decision as superseded. Not for: feature-level technical design (use /tech-spec), task progress tracking (use /create-request), bulk backfill of historical decisions (a separate request — this skill writes one ADR at a time)./agentctl-setupInstall and set up the optional agentctl mod (task scope, refusal before execution, evidence that goes stale, model-free hand-over) — checks the environment, installs after approval, builds the first task line, optional deny rules, uninstall/architectureOther plugins' skills for the same job