Skip to content
Back to skills

Implement Feature

ASecurity

Complete pipeline for implementing a feature — plan mode → agent fleet on disjoint batches (worktree, tests, review per batch) → diff application + integration → final grill oriented to user feedback (manual E2E). Invoke via /implement-feature <ticket ref or description> as soon as {USER_NAME} launches a multi-file workstream with clear ACs — "launch workstream X", "implement DEN-01", "big feature to parallelize" — even without an explicit /implement-feature. Do NOT use for debug/investigatio...

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
testingrustgobashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Zoomma1/get-your-life-together --skill implement-feature --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Implement Feature?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Implement Feature
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zoomma1-implement-feature/badge)](https://www.skillsdirectory.com/skills/zoomma1-implement-feature)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: implement-feature
description: Complete pipeline for implementing a feature — plan mode → agent fleet on disjoint batches (worktree, tests, review per batch) → diff application + integration → final grill oriented to user feedback (manual E2E). Invoke via /implement-feature <ticket ref or description> as soon as {USER_NAME} launches a multi-file workstream with clear ACs — "launch workstream X", "implement DEN-01", "big feature to parallelize" — even without an explicit /implement-feature. Do NOT use for debug/investigation (exploratory, no stable plan) or for a ticket without ACs.
---

## Argument

`$ARGUMENTS` = ticket ref (e.g. DEN-01) or feature description.
- Ticket ref → load the full note + its ACs.
- Free description → rephrase as ACs and have them validated before planning.
- **ACs missing or vague → block and ask. Never plan without ACs.**

---

## Step 1 — Load context

- Ticket + the project's `claude-code/README.md` + project ADRs (INDEX, then those touching the feature).
- Identify the project's **exact test command** (package.json, README, CI) — it will serve as the oracle in the test phase.
- Not found → two cases: **greenfield repo** (nothing to measure yet) → the plan will include a bootstrap batch 0 that creates it (see Step 2); existing repo without tests → ask {USER_NAME}, do not improvise.

---

## Step 2 — Plan phase (EnterPlanMode)

Produce in the plan:

a. The technical approach
b. The list of files touched — **before proposing a new file** (service, component, module, endpoint), check whether an equivalent already exists in the repo: read its code, compare if needed, create only if nothing matches. Before calling an existing service, read all its public methods — avoid duplicating logic a helper already provides.
c. **The partition into disjoint batches** `{batch → files}` — no file in two batches; any shared file is **serialized** (dedicated upstream step or a single batch)
d. The **fleet vs single-agent** verdict — small or too-coupled feature → 1 agent, no worktree (switch to be explicitly confirmed)
e. **The model map** per agent (see Model policy)
f. **Greenfield repo** → a **serialized bootstrap batch 0** (single agent, before any fan-out): project scaffold + setup of the test command. The first run of a new project is therefore mostly sequential — accepted.

`ExitPlanMode` = {USER_NAME} validates **the partition and the model map**. This is the central control point of the pipeline — not a "launch and forget".

---

## Step 3 — Fleet phase (Workflow, pipeline per batch)

- Single agent → 1 `agent()`, no isolation.
- Fleet → `pipeline()` over the disjoint batches. Each batch runs its full chain without waiting for the others:
  1. **Impl** — agent `sonnet`, `isolation: 'worktree'`. The agent implements **and runs the batch's fast tests itself** (TS/vitest unit tests only — never `cargo check`/build per batch: a fresh worktree recompiles all deps, prohibitive cost; Rust is verified at the post-application barrier). Worktrees are not shared between agents — that's why impl carries its own tests. Structured output: `{summary, full diff, test output}`.
  2. **Batch review** — agent `sonnet` effort high, adversarial on the **returned diff** (text — no access to the impl's worktree): prompted to refute, not to approve. **Blocking finding → the batch is not applied, {USER_NAME} arbitrates.**
- Shared files → serialized upstream step before the fan-out.
- Blocking ambiguity during the fleet → **review gate** (stop and ask), never log and continue.
- **`openQuestions` ≠ blocking**: a question that can only be resolved through usage (visual validation, grill point) is noted for the grill step and does not stop the barrier guard; only an ambiguity that changes the code to write does. *(Cause: DEN-16, 08/10 — run 1 stopped wrongly, it took 3 runs.)*

---

## Step 3bis — Applying diffs (no git merge)

The main loop **applies the returned diffs** to the main tree — file writes, no `git merge` nor agent commit (Git rule: `/commit` only, at {USER_NAME}'s request). Conflicts are impossible thanks to disjoint partitioning; a diff that doesn't apply cleanly = **partition bug to escalate**, not to resolve silently. Once all batches are applied and integration is green → suggest `/commit` to {USER_NAME}.

---

## Step 4 — Post-application integration (barrier)

After applying all batches, a **separate** verifier agent (`haiku`):
- Runs the **full suite + build** with the exact command identified in Step 1 — including Rust verification (`cargo check`/build), excluded from batches.
- **Binary** pass/fail oracle — capture the output, do not "judge the code by eye".

The per-batch review only sees its own diff: **cross-batch inconsistencies** (expected API ≠ exposed API) can only be detected here. Per-batch green tests ≠ green feature.

**Red tests → stop and present the output. Never loop in silent repair.**

**Batch blocked by review or barrier → targeted re-run, after {USER_NAME}'s arbitration on the findings.** Copy the initial run's script, inject into the prompt of the **affected batches only** a block of fixes (the retained blocking findings, verbatim), re-run only those batches in a new run, apply their diffs, then replay the full barrier. The prompt has changed, so the resume cache will not reuse the old verdict (see the cache trap, § Pause / resume). *Cause: factory Run 2 (gate B.1), the pattern repeated twice in one session.*

---

## Step 5 — Final grill: user feedback (manual E2E)

The goal is **not a code review** — it is to collect **user feedback** on the delivered feature. Interactive with {USER_NAME}, never delegated to an agent:

1. Generate a **manual E2E test path**: concrete scenarios to run through in the app, drawn from the ACs ("open a tab, start a session, check that the markdown renders as it streams…"). **Each scenario is written as a gesture in the app** — a sequence of clicks and observations visible on screen ("click X, window Y opens, click Cancel, nothing moves"). No jargon ("picker", "console", "Web Inspector") and no check requiring a tool outside the app: if the proof is not visible in the UI, it does not go in {USER_NAME}'s scenario, it goes into a measurement the agent performs itself. *Cause: 2026-09-02, grill DEN-04 A1 — "cancel the picker → clean console" required two clarifications for a three-click scenario.*
2. Ask the questions **one at a time** while {USER_NAME} tests: observed vs expected behavior, usage feel, friction, surprises, what's missing.
3. Record each feedback item: bug → immediate fix or ticket (`/create-ticket`) · idea/improvement → ticket · AC not met → back to the fleet (new targeted batch).

---

## Model policy (budget guard)

| Role | Model | Why |
|------|-------|-----|
| Plan phase (main loop) | session | this is where decisions are made |
| Implementation agents (impl + batch tests) | `sonnet` | mechanical batches, already specified by the validated plan |
| Integration verifier | `haiku` | runs a command, binary oracle |
| Per-batch review | `sonnet` effort high | judgment, but scope reduced to one diff |
| Final grill (user feedback) | session, interactive | with {USER_NAME} |

- The model map is **shown in the plan** and validated with the partition. Escalation possible batch by batch if the plan justifies it.
- **Never fleet at the session model without {USER_NAME}'s explicit agreement in the plan.**

---

## Pause / resume (token limit, interruption)

- Each Workflow launch returns a `runId` and persists its script (`scriptPath`) — **note them immediately in the ticket** (section `## Run en cours`: runId, scriptPath, date, batches launched). This is the checkpoint; without it, an interruption costs the whole run.
- **Pause within the session**: `TaskStop` on the workflow → resume in the same session via `Workflow({scriptPath, resumeFromRunId})`. Batches already finished come back instantly from cache, only remaining batches run.
- **Dead session** (token limit, `/clear`): the resume cache does not survive the session. Resume = reduced script continuation covering **only the remaining batches**, relying on the run's `journal.jsonl` and on the **actual state of the tree** (which diffs were applied) — re-measure what was actually delivered before re-running, do not trust the last announcement.
- **Preventive**: if the remaining session budget is visibly low when launching the fleet, split into several sequential Workflow runs (a subset of batches each, applying diffs in between) rather than one monolithic run that will die mid-flight.
- **Cache trap on a minor fix between two runs**: the `resumeFromRunId` cache keys on `(prompt, opts)` — if a fix (CSS, typo, minor adjustment) changes the real diff but not the review prompt sent to the agent, the re-run serves the **cached verdict** (typical signature: `subagent_tokens: 0`, `duration_ms: ~9`) instead of replaying the review on the new diff. Workaround: force a direct Bash barrier (lint/build/tests) on the diff in place of the agent review when the change is minor and the prompt has not changed.

---

## Review gates (3 tiers)

- ✅ **Alone**: parse input, propose plan/partition/model map, launch the Workflow once the plan is validated, tests, per-batch reviews, applying diffs without blocking findings.
- ⚠️ **Stops and asks**: ACs missing or vague · non-disjoint partition impossible to build · switch to single agent · **blocking finding from a batch review** (batch not applied before arbitration) · diff that doesn't apply cleanly · red tests (batch or integration).
- 🚫 **Never**: 2 agents on shared files · commit/push/merge (Git rule — `/commit` only, at {USER_NAME}'s request) · file outside the planned scope · fleet at an unvalidated session model.

---

## Final self-check

Before closing, re-read and list the gaps:
- Was the launched partition actually disjoint?
- Did each batch pass its test + review chain, and was its diff applied?
- Full suite + build green after application?
- Final grill done — feedback recorded (tickets/fixes)?

---

## Absolute rules

- Never plan without ACs — block and ask.
- Never 2 agents on shared files without a validated partition.
- Never commit/push — suggest `/commit` to {USER_NAME}, never invoke it yourself.
- Never a file outside the planned scope.
- Red tests → stop and present, never silently repair.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.