agentleFS
maxg-agencymaxg-agency/claude-code-setup/skills/feature-dev/SKILL.md

feature-dev

Skill2 starsChanged 28 days agoMITView on GitHub

Feature development that spends agents only where they pay off. Phase 0 sizes the task (S small, M medium, L large) and the size decides how many helper agents run: S none, M one architect, L a full run with several explorers, architects and reviewers. Then understand the code, ask only blocking questions, design, build, review, summarize, with a PLAN.md that lets any later session resume. Use when the user says "/feature-dev", asks for a feature, a refactor, a new endpoint, an integration, a UX flow change, or "continue by PLAN.md".

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use code-review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If they are not installed, use the built-in general-purpose agent with the same instructions, or do the work in the main thread.

    line 24
  2. Distinctive:

    Do not wait for an answer.

    line 40
  3. Very specific:

    Escalate when the task turns out bigger: If exploration or a question reveals a real choice or an unfamiliar area, raise the scale, write …

    line 57
  4. Distinctive:

    Agents get a narrow question and ready facts: Put the file list, the constraints, the user's answers and one concrete question into each …

    line 60
  5. Very specific:

    End of phase 4 on M and L, on the planning model: do the checkpoint (PLAN.md complete, blueprints/ saved, a Model log entry), print the …

    line 74
  6. Distinctive:

    Start of phase 5: check the model. On the planning model with a finished plan, print the stop line and stop.

    line 77
  7. Very specific:

    If the request is unclear, ask what problem it solves, what it should do, and the constraints.

    line 138
  8. Distinctive:

    S: write section 4 yourself: approach, files, steps, verification, boundaries.

    line 159
  9. Distinctive:

    Check the model first (Models and the stop).

    line 177
  10. Distinctive:

    If the build shows the approach is wrong in substance (not a fix, a different design), stop building and go back to phase 4 with the scale …

    line 181

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Feature Dev, sized to the task

Derived from Anthropic's feature-dev plugin (https://github.com/anthropics/claude-plugins-official/tree/main/plugins/feature-dev, Apache License 2.0). Modified: a size check that scales the number of helper agents, a resumable plan file, and new helper agents in place of the plugin's.

Seven phases from request to working code: planning (phases 0–4) on the user's planning model, building (phases 5–7) on the building model, with one stop between them (see Models and the stop). The expensive part of a feature pipeline is helper agents: each one re-reads the codebase and writes a long report. So phase 0 decides how many of them the task actually needs.

Helper agents (installed with this skill into ~/.claude/agents/):

AgentJob
feature-explorerTraces how an area of the code works and returns the 5–10 files that matter.
feature-architectDesigns one implementation approach as an exact blueprint.
feature-reviewerReviews a diff for one focus and reports only high-confidence issues.

If they are not installed, use the built-in general-purpose agent with the same instructions, or do the work in the main thread.

Phase 0. Scale

Request: $ARGUMENTS

In one turn, without agents: from the request and a quick look at the code (a grep, one to three files, the latest PLAN.md in the same area) estimate the number of files, whether there is a real choice of approach, whether the area is known, whether undoing is cheap. Pick a scale and write one line in chat, for example:

Scale: M. 5 files, a choice between reusing the overlay host or a new dialog, area known from PLAN booking-form. Running: 1 architect, 2 reviewers.

Do not wait for an answer; continue. The user corrects it with one word if they disagree.

S smallM mediumL large
Signals (any two are enough)≤3 files; one obvious approach, or one already prescribed by a plan, a mockup or a decision log; known area; cheap to undo4–8 files; a local choice (where a helper goes, which component to reuse, the shape of data in one place); area partly known; touches a shared component or tests>8 files or a new module; a choice that changes the data model, module boundaries, external integrations or the user flow; new area; migrations, schema, security, production behaviour
Explorationmain thread reads 1–3 files0–1 feature-explorer with a narrow question; main thread reads 5–8 files2–3 feature-explorer in parallel, different angles
Questionsonly blocking ones, usually noneas neededas needed
Architecturemain thread writes the approach1 feature-architect ("pragmatic balance") + two asides: what a minimalist would do, what a clean architect would add2–3 feature-architect in parallel: minimal change, clean architecture, pragmatic balance
Approval before buildingno, build right awayyes, if there was a real choiceyes
Stop to switch to the building modelnoyes, if on the planning modelyes, if on the planning model
Reviewself-review of the diff; 1 feature-reviewer (bugs) only if the diff touches a shared component, data, publishing or auth2 feature-reviewer: bugs; simplicity + conventions3 feature-reviewer: simplicity; bugs; conventions
PLAN.mdshort, sections 1, 4, 7fullfull, plus blueprints/

Rules:

  • Doubt goes up. Between S and M take M, between M and L take L. Down only by the user's word ("no agents", "this is small"). Words the other way ("full run", "show me options") give L.
  • Escalate when the task turns out bigger. If exploration or a question reveals a real choice or an unfamiliar area, raise the scale, write Scale: S → M, why in PLAN.md, run the missing agents. Never lower the scale after phase 0.
  • Agents get a narrow question and ready facts. Put the file list, the constraints, the user's answers and one concrete question into each prompt. A wide question makes an agent spend half an hour rediscovering what you already know.
  • Do not wait on a slow agent. While an agent runs, write your own option. If your option is ready and the report is late, go on with yours and fold the report in later.

Models and the stop

Model names, what <set me> means, and the checkpoint itself: the rules block and the models block in ~/.claude/CLAUDE.md. Your own model: your system prompt. This section adds only when the feature pipeline stops. The user switches models; you never do.

  • S never stops. Its plan is a few lines with no choice of approach; a stop in front of it costs more than it saves. Plan and build on whatever model the chat is on.
  • End of phase 4 on M and L, on the planning model: do the checkpoint (PLAN.md complete, blueprints/ saved, a Model log entry), print the stop line and stop. Do not start phase 5 on the planning model "to save a step".
  • Start of phase 5: check the model. On the planning model with a finished plan, print the stop line and stop. Without a finished plan, do not build; go back to the missing phase.
  • The plan fails in substance during phase 5 or 6 (a different design is needed, not a fix): write why in section 5, set Status: planned, print the stop line to the planning model and stop.
  • The user said "do it on this model": no stops; note it in the Model log.

Stop line, exactly:

I have reached the point where we need to switch to <model>.
State saved: <path to PLAN.md>
To continue: /model <model>, then "continue" (or in a new chat: /feature-dev resume <path>).

PLAN.md

Path: <project root>/.claude/feature-dev/<feature-slug>/PLAN.md, slug of 2–4 words with hyphens. It exists so that a new session, or the same session after its context was compressed, can continue without the chat. Write it as you go, not at the end.

# <Feature>
Status: scale-set | planned | building | reviewed | done
Scale: S | M | L, signals in one line; escalations with "→"
Model log: one entry per checkpoint, `<phases> · <model> · <date> · Context: Nk / … (P%)`

## 1. Task
What, why, constraints, in the wording the user confirmed.

## 2. What we found in the code
Key files (path + one line why), patterns, extension points, conventions.

## 3. Questions and answers
Each question and the user's answer, or the decision you made and why.

## 4. Approach
The approach and why; rejected options one line each.
Files to create / modify, with what changes in each.
Numbered steps. How to verify (command, manual scenario). What not to touch.

## 5. Build log
Step → what was done; deviations from section 4 and why.

## 6. Review
Findings by severity and what was done with each.

## 7. Summary
What was built, files changed, how it was verified, open follow-ups.

On M and L, save each agent's full report as delivered into blueprints/ next to the plan, with a README of one line per file: what it is and what was taken from it. Section 4 must still be enough to build from without opening blueprints/.

Resume: /feature-dev resume <path> or "continue": read PLAN.md, find the next phase from Status, check your model against it (Models and the stop), read only the files named in sections 2 and 4, continue. Do not re-explore.

Phase 1. Discovery

If the request is unclear, ask what problem it solves, what it should do, and the constraints. Otherwise restate it in two or three lines. Create PLAN.md with sections 1 and the Scale line. On S, phases 0–4 usually fit in one turn.

Phase 2. Exploration

By scale (table above). From the agents' file lists read in the main thread only what you need for questions and design, usually 5–8 files, not all of them. Write section 2. If the picture is bigger than phase 0 assumed, escalate here.

Phase 3. Questions

Collect what is underspecified: edge cases, error handling, integration points, scope, compatibility, performance. Ask only what the user alone can answer (their facts, their money, their priorities, their taste). If you have a recommendation and the choice is cheap to undo, decide, write it in section 3, and mention it in one line. Ask the remaining questions as one list and wait. Skip this phase only when nothing is left to ask.

Phase 4. Architecture

By scale:

  • S: write section 4 yourself: approach, files, steps, verification, boundaries.
  • M: one feature-architect, focus "pragmatic balance", with sections 1–3 and one question in the prompt. Ask it to end with two short blocks: "what a minimalist would do" and "what a clean architect would add". Write your own option in parallel. Compare, take what is useful, write section 4. If there was a real choice, show the user the options with your recommendation and wait for their pick.
  • L: 2–3 feature-architect in parallel with the three focuses, the same facts and question for each. Compare, recommend one with reasons, show the user the trade-offs, wait for their pick, write section 4.

Section 4 is written so that someone who never saw the chat can build from it.

On M and L, phase 4 ends with the stop (Models and the stop). A new chat after it is cheaper than /model in the same one: a long context makes every turn costlier and the model less precise, and the plan and blueprints/ are what make the switch lossless.

Phase 5. Build

Check the model first (Models and the stop). Implement by the steps of section 4, following the project's conventions. Write tests for new behaviour where the project has tests. Run the verification from section 4. Deviate from the plan only when it does not work in practice, and log each deviation in section 5.

If the build shows the approach is wrong in substance (not a fix, a different design), stop building and go back to phase 4 with the scale raised at least to M (Models and the stop).

Phase 6. Review

By scale (table above). Give each reviewer the list of changed files, section 4 and its focus, not "look at the repository". Merge the findings. Fix what is clearly a bug. For the rest, show the user the serious ones with a recommendation and act on their answer. Write section 6.

Phase 7. Summary

Fill section 7, set Status: done, save reviewer reports to blueprints/ on M and L. Then do the final checkpoint from the rules block in ~/.claude/CLAUDE.md, with the proposed commit message at the end of section 7. Tell the user in a few lines what was built, how it was verified, and what is left open.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.