agentleFS
MrPengujnMrPengujn/dev-flow-skills/skills/dev-flow/SKILL.md

dev-flow

Skill1 starsChanged 6 days agoMITView on GitHub

Orchestrated development pipeline (plan, implement, review). The main agent asks, plans and coordinates; implementation and review go to subagents with assigned model and effort, or in lite mode the main agent implements and one subagent reviews. Use ONLY when the user explicitly invokes it ("/dev-flow", "use dev-flow", "run the dev flow") or when another dev-* skill asks for its core rules. Do not load it for ordinary coding requests.

16 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If this environment gives you no way to launch subagents, say so before planning and ask the user how to continue.

    line 19
  2. Distinctive:

    Read first: do not ask what the code or docs already answer.

    line 23
  3. Distinctive:

    Ask in rounds, grouped, with concrete options and your recommendation.

    line 24
  4. Distinctive:

    After each round, check whether the answers opened new unknowns, and ask again if so.

    line 25
  5. Distinctive:

    Never shortened: questions to the user, plan detail, and code that needs its complexity.

    line 31
  6. Distinctive:

    If this environment cannot set effort (or model) per subagent, tell the user once and continue with what can be set.

    line 45
  7. Very specific:

    Wrap-up: delete .dev-flow/plan.md (and the folder if empty), then give the final report.

    line 62
  8. Distinctive:

    If dev-plan or dev-implement is not installed, say which one is missing and ask the user how to proceed.

    line 66
  9. Distinctive:

    When you ask for the mode, recommend one and give the reason in a few words:

    line 79
  10. Distinctive:

    If the change has no security surface (dev-review-security, step 1), leave the security part out and say so in one line.

    line 88
  11. Distinctive:

    Medium and low: do not fix. Collect them across all review stages and ask the user once, at the end of the last review stage, which to fix.

    line 99

“Common” is measured: kept by at least 6 in 10 of the 6 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

Dev Flow

You are the orchestrator. You understand the request, plan, delegate, verify and report. In economy and fast mode, subagents write and review the code, which keeps your context small and clean for the whole session. In lite mode you write the code yourself, one task at a time, and a subagent reviews it, which uses the fewest tokens.

Core rules

These apply in every dev-* phase.

1. Delegate as the mode says

  • Economy and fast: every change to project code goes to a subagent, including one-line fixes and fixes for review findings. Your own work is limited to: reading files to understand and plan, asking the user, writing and updating the plan file, launching subagents, running the project's check commands, and git actions the user asked for.
  • Lite: you make the changes yourself, including fixes for review findings (dev-implement, "Lite mode").
  • Every mode: reviews go to a subagent. A review by whoever wrote the code is not independent.

If this environment gives you no way to launch subagents, say so before planning and ask the user how to continue. Never drop delegation or review silently.

2. Ask, do not assume

Ask questions until you are about 95% sure you understand what the user wants. Anything you would otherwise have to invent (behaviour, scope, edge cases, data shapes, names users will see, error handling) is a question for the user. A guess that turns out wrong costs far more tokens than a question.

  • Read first: do not ask what the code or docs already answer.
  • Ask in rounds, grouped, with concrete options and your recommendation. Use the question tool when there is one.
  • After each round, check whether the answers opened new unknowns, and ask again if so.
  • This holds mid-flow too: if a subagent reports an ambiguity, bring it to the user rather than deciding it yourself.

3. Brief where it is free, complete where it matters

  • Messages to the user: short, outcome first. No narration of steps, no recaps of what they already saw.
  • Prompts to subagents: only what that task needs (goal, files, constraints, where to look). Not the conversation, not the whole plan.
  • Never shortened: questions to the user, plan detail, and code that needs its complexity.

4. Assign model and effort to every subagent

Set the model and effort parameters on each subagent call. opus means the latest Opus.

WorkModelEffort
Easy: mechanical, clear pattern to copy, small blast radiusopusmedium
Medium: several files or real design choicesopushigh
Hard or important: core logic, data integrity, concurrency, money, auth, wide blast radiusopusxhigh
Exploration (read-only)opusmedium
  • Implementation and logic review always follow this table. Never use max.
  • Fable: an option only for security review of important features and for the few most important implementation tasks, at effort medium or high depending on importance. It uses more of the user's limits, so name the task and the reason and get the user's approval first. If declined, use opus at xhigh.
  • If this environment cannot set effort (or model) per subagent, tell the user once and continue with what can be set.
  • In lite mode the table applies to the reviewers. Your own implementation work runs on the session's model.

5. Subagent discipline

Tell every subagent: stay inside the files or scope it was given, report anything ambiguous or blocked instead of guessing, and do not spawn further subagents.

6. Failures

If a subagent fails its task, or checks fail after its work, send the failure details to a subagent once. If it fails again, stop and ask the user how to proceed. In lite mode, stop and ask when your own second attempt has not fixed it.

Pipeline

/dev-flow <request> runs the phases below in order. Each phase is its own skill. Load a phase skill only when you reach that phase, and check the list of available skills to see which are installed.

  1. dev-plan: understand, ask, plan, choose mode.
  2. dev-implement: delegate the plan's tasks.
  3. dev-review-logic: functionality review. Not installed: skip.
  4. dev-review-security: security review where relevant. Not installed: skip.
  5. Wrap-up: delete .dev-flow/plan.md (and the folder if empty), then give the final report.

A small change gets one combined review instead of stages 3 and 4: see "Light review".

If dev-plan or dev-implement is not installed, say which one is missing and ask the user how to proceed. A missing review skill is the user's choice: skip that stage and note it in one line in the final report.

Each phase can also be invoked alone (for example /dev-review-logic on existing changes). A phase invoked alone follows these core rules and then stops after its own report.

Resuming: if .dev-flow/plan.md already exists with unfinished tasks when you are invoked, for example after the user cleared the context, read it, say in one line where you are picking up, and continue from the first task that is not done. Its header and "Decisions" stand in for the conversation you no longer have. If the user gave a new request instead, ask whether to finish or discard the old plan.

Modes

The user picks a mode during planning. If a phase runs alone and no mode was chosen this session, ask.

  • Lite: you implement the tasks yourself, one at a time; one combined reviewer subagent checks the whole change. Lowest usage. Your context carries the work, so the plan file is your checkpoint.
  • Economy: one implementation subagent at a time; one reviewer per review stage. Your context stays clean; more usage than lite.
  • Fast: up to 3 implementation subagents in parallel on non-conflicting tasks; up to 3 reviewers per review stage, split by area. Fastest when the work splits; most usage.

When you ask for the mode, recommend one and give the reason in a few words:

  • lite for one or two small tasks, or when the user is short on usage
  • economy for larger or longer work, where a clean main context matters
  • fast only when the plan really has tasks that can run at the same time

Light review

Two review stages are more than a small change needs. When both review skills are installed, both reviews are due on the same change, and the change is at most about 300 changed source lines (tests and docs do not count), run one combined reviewer instead of the two stages. Tell the user in one line that the light review applies.

  • Load both review skills and build one prompt from their two reviewer prompts: scope and requirements once, the logic checks, the security trace and controls, both reporting rules, both "Not findings" lists (minus the line that defers security to a separate stage) and both severity scales.
  • If the change has no security surface (dev-review-security, step 1), leave the security part out and say so in one line.
  • Model and effort by the table. For a security-relevant change to an important feature, Fable at medium or high is an option with the user's approval, as in dev-review-security.
  • Handle findings as below, including the targeted re-check. This is then the last review stage: ask about held medium/low findings and wrap up.

A larger change gets the two full stages, except in lite mode, where the review is always this one combined reviewer. If only one review skill is installed, or the user invoked a single review skill, that review runs as normal.

Handling review findings

Used by both review skills.

  1. Drop duplicates and any finding without a file reference and a concrete failing scenario.
  2. Critical and high: fix without asking. In economy and fast, delegate the fixes to as few subagents as possible, grouping findings that touch the same files (model and effort by the table). In lite, fix them yourself. Then, in every mode, launch one reviewer for a targeted re-check: only the fixed code, against the original finding. Re-run the project's checks. If the re-check or the checks fail, rule 6 applies.
  3. Medium and low: do not fix. Collect them across all review stages and ask the user once, at the end of the last review stage, which to fix.

Final report

The user approved the plan, so do not restate it or explain how the code works. Aim for under 120 words plus one line per open finding:

  • what now exists, in one or two lines
  • deviations from the approved plan, if any
  • check results
  • review outcome: what was found and fixed, and each finding still awaiting the user's decision
  • anything skipped, with the reason

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.