About implement-feature
A feature-build orchestration skill for agents that breaks a plan into dependent tasks, delegates implementation and review, then integrates and checks the complete feature.
Key features
- 01Decompose plans into vertical-slice tasks
- 02Schedule dependent and parallel tasks
- 03Delegate implementation and per-task review
- 04Integrate changes in dependency order
- 05Run feature-wide final review
Use cases
- 01Build a feature from an approved plan
- 02Coordinate independent implementation tasks
- 03Resume a long-running feature build
- 04Review cross-task integration seams
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ robsonrung/ rar-skills --skill implement-featureAfter installing, type/implement-featurein Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlreferences/feature-orchestration.md
Details
From the project READMEImplement Feature
High-level build orchestrator: turn a plan into a working, reviewed feature by decomposing it into tasks and delegating each to implement-and-review. You (the main agent, the Opus seat — model ids live only in shared/references/model-roster.md) own the breakdown, the dependency DAG and scheduling, cross-task integration, and the feature-wide final review. Per-task building — the FE/BE split, cross-model review, and TDD — is implement-and-review's job. Call it; don't reimplement it.
Pipeline: plan → to-tasks (vertical slices) → implement-and-review per task (parallel where independent) → integrate in dependency order → feature-wide full-review → green.
The detailed scheduling/integration commands are in references/feature-orchestration.md; read it before Phase 1.
Hard Rules
- Decompose with
to-tasks. Break the plan into tracer-bullet vertical-slice tasks, each with a machine-checkable acceptance contract, gate flags (lenses +security), andblocked_bydeps. - Tasks are the unit of value and parallelism. Independent tasks run in parallel; dependent ones wait on their blockers.
- Delegate each task to
implement-and-review. Don't duplicate its FE/BE/TDD/cross-review logic — hand it the task, a per-task--slicenamespace, and the base to build on. - Writes are gated. No code until the user approves the breakdown (skip only with
--auto). - Integrate in dependency order. Each task must pass its acceptance contract before its dependents start.
- Feature-wide final review. After all tasks integrate, run
full-reviewacross the whole feature (focused on cross-task seams; per-task review already happened), apply findings, leave green. - Bounded + escalate. A task whose
implement-and-reviewhits its 3-cycle cap is escalated; it blocks only its dependents — independent tasks keep going. - Never fabricate a seat; degrade per Degrade Gracefully.
Preflight
- Host & git. Worktrees (and thus parallel tasks) need git; no git → sequential fallback.
- Seats. Use the shared probe to verify the primary seats up front so tasks don't all fail:
python3 .agents/skills/shared/scripts/discover_runners.py probe --native-agent yes --seat codex --seat opus --seat kimi --format json. Each task'simplement-and-reviewneeds the default Codex seat and either a native or runner-backed Opus seat; Kimi is the first fallback reviewer. - Verification commands. Detect the project's feature-wide test/build commands.
to-tasksacceptance contracts must use commands that exist. - Concurrency cap. Default 3 tasks in flight (each runs a full FE+BE build); lower it when seats/cost are tight.
- Base & artifacts. Record
HEADas the feature<base>; create the feature integration branch; use.ai-workflow/impl-review/<session_id>/for the breakdown, per-task subdirs, and the report.
Phase 0 — Plan & Decompose (gate)
-
Intake the plan. Sources: a plan/spec the user gives; an existing
TASKS.mdor tracker issues; or amodels-consensuspoll-mode report (passed as--from-consensus <path>, e.g..ai-workflow/consensus/<session_id>.md) — take its Consensus answer as the plan and resolve its Open caveats with the user first.When a consensus run precedes the build, three rules govern the handoff:
- Frame the request for the council blind. Hand the council the raw request as the task to answer ("determine what this feature requires and the best approach:
<request>"). The orchestrator never pre-analyzes the request or pastes its own interpretation in — the unbiased fan-out is the entire value of the poll. - One session id threads both runs. The consensus run and this build share a single session id (
.ai-workflow/consensus/<id>.md→--from-consensus), so the build consumes exactly the consensus that was produced — never a re-run, a paraphrase, or a second poll. - No code needed → stop. If the consensus shows the request is a question or a decision rather than work to build, stop here and return the consensus answer instead of decomposing anything.
- Frame the request for the council blind. Hand the council the raw request as the task to answer ("determine what this feature requires and the best approach:
-
Decompose with
to-tasks→ vertical-slice tasks with acceptance, gates, and deps. If the work is genuinely a single task, skipto-tasksand just callimplement-and-review(then stop). -
Present the task list (titles, deps, acceptance, gates, HITL/AFK) + the verification commands. Get approval before any code is written, unless
--auto.
Phase 1 — Schedule & Build the DAG
Build the dependency graph from blocked_by. Then:
- Schedule HITL tasks first; run AFK tasks unattended.
- Run all currently-unblocked tasks concurrently, up to the cap, each by running
implement-and-reviewfor that task — pass the task brief, a per-task--slice <task>namespace, and--base= the current feature integration head (so each task builds on already-integrated work). See references/feature-orchestration.md. - As each task's build finishes and passes its acceptance contract, integrate it into the feature integration branch in dependency order, recompute readiness, and pull the next ready tasks into flight.
- Continue until every task is done or escalated. An escalated task blocks only its dependents.
- Report progress (done / in flight / blocked); never silently drop a task.
Run state
A feature spans hours and many subprocesses, so the DAG's progress lives in the ledger, not the transcript. This skill follows shared/references/run-state-contract.md — read it for the shape, the attempts/gates/side-effect rules, and the resume protocol. One feature-level run state, beside the per-task states each implement-and-review keeps. Only the feature-specific keys are stated here:
ceilings.max_in_flight— the concurrency cap (default 3). Count what is actually in flight against it rather than estimating.side_effectskeys aremerge:<task-id>— written before merging a task into the feature integration branch; skip a merge whose key is already present.- The integration head is the resume anchor.
stepsentries are keyed by stable T-ID, so a task already instepsis done: on resume, re-read the current integration head, recompute readiness from the ledger, and schedule only what is left. A resumed feature never rebuilds an integrated task. An escalated task is an exit, not a gap — record it instepswith its result and reason so the final report reconstructs from the ledger rather than from memory.
Phase 2 — Feature-wide Final Review
After all tasks are integrated, run full-review across the whole feature (diff vs the feature <base>), focused on cross-task integration and seams and anything the per-task reviews could not see. security_focus=true if any task was security-sensitive. Apply findings (route each to the owning task's implementer via implement-and-review, or a scoped fix), then re-verify the full suite green.
Phase 3 — Report
Deliver inline and write .ai-workflow/impl-review/<session_id>/report.md:
- Feature and final status (
done/partial/escalated). - Tasks — a table: task, deps, status, acceptance result, review cycles, which ran in parallel.
- Integration — order merged, conflicts resolved.
- Feature-wide full-review — verdict, findings by severity, what was fixed, deferrals.
- Verification — commands + results (green/red).
- Branch/worktrees — the feature integration branch and how to inspect/land it. Do not push, PR, or delete worktrees unless asked.
- Escalations — any task stopped at its build's 3-cycle cap, with open findings.
Degrade Gracefully
- Not a git repo: run tasks sequentially in the working tree (each via
implement-and-review's no-git fallback), no parallelism. - Few seats / tight cost: lower the cap toward 1 (sequential tasks).
- Single task: skip the DAG — just call
implement-and-reviewand report its result. - A task escalates: keep building independents; surface the escalation in the report.
Gotchas
- Don't reimplement
implement-and-review. This skill is breakdown + DAG + cross-task integration + feature-wide review only. - Each task builds on the current integration head (
--base), not the stale feature base, so later tasks see earlier work; respectblocked_by, and serialize tasks likely to touch the same files (add ablocked_by). - Per-task reviews already ran inside each
implement-and-review; the feature-widefull-reviewtargets the seams so you don't pay to re-review every task in full. - Vertical vs horizontal:
to-taskstasks are vertical (all layers);implement-and-reviewsplits each task horizontally (FE/BE). The task is the outer unit; the FE/BE split is inside each task. - Keep state in the orchestrator — track the DAG and integration head; read each task's compact report, not full transcripts.