agentleFS
hdprajwalhdprajwal/agent-skills/skills/incremental-implementation/SKILL.md

incremental-implementation

Skill1 starsChanged 6 months agoMITView on GitHub

Build in thin vertical slices — implement one piece, test it, prove it runs, commit, then expand. Use for any change touching more than one file, when you're about to write a lot of code at once, or when a task feels too big for one step. Each increment leaves the system working and committed.

47 other projects use a version of this, 24 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use constraint-driven-development, deprecation-and-migration and 8 more.

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.
  • vinvcnSkill

    constraint-driven-development

    把一个项目的质量线确立为书面契约,并阻止 agent 悄悄降低它。通过访谈确定用户在意哪些维度,当用户心里没有数字时提供合理的默认阈值,把一切记录进 CONSTRAINTS.md,并盯住 diff 中质量线被削弱的迹象——新增的 @ts-ignore 或 eslint-disable 抑制注释、被跳过或删除的测试、被剥掉的断言、未实现的 stub、被调低的阈值。当没有任何质量线被写下来时使用;当用户说 "set up constraints" 或 "define our standards" 时;当用户希望把他们在意的维度——无障碍性、Web 性能、覆盖率——设置成被强制执行的约束时;当 agent 为了变绿不断静默检查或跳过测试时;当你需要一个覆盖率或性能阈值却不知道该选什么数字时;或者当 agent 写下的代码超出任何人会读的体量时。

    Also in 4 projects that use this

  • az9713Skill

    deprecation-and-migration

    Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when deciding whether to maintain or sunset existing code.

    Also in 20 projects that use this

  • galandoSkill

    source-driven-development

    Version-aware, source-driven development — fetch official docs before writing framework code

    Also in 20 projects that use this

  • az9713Skill

    code-simplification

    Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

    Also in 24 projects that use this

  • borhen68Skill

    observability-and-instrumentation

    Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.

    Also in 9 projects that use this

  • mycelium-hqSkill

    doubt-driven-development

    Use when correctness matters more than speed: about to commit non-trivial code, make an architectural call under uncertainty, work in unfamiliar code, or assert what the compiler cannot check (''this is safe'', ''thread-safe'', ''this scales'', ''matches the spec''). Strongest on high-stakes surfaces (production deploys, security-sensitive logic, data migrations, irreversible operations) and when the user asks to sanity-check, red-team, double-check, or get a second opinion on a decision.

    Also in 13 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 46 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    0 — Simplest thing first: Before coding: what's the simplest thing that works?

    line 45
  2. Distinctive:

    1 — One thing per increment: Don't mix a new component, a refactor, and a build-config change in one commit.

    line 68
  3. Distinctive:

    2 — Keep it compilable: After each increment the project builds and existing tests pass.

    line 71
  4. Distinctive:

    Run each check after a change that could affect it.

    line 99

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

Incremental Implementation

Build in thin vertical slices. Implement one piece, test it, prove it runs, commit, then expand. Never build a whole feature in one pass — each increment leaves the system working and committed. This is what makes large features manageable.

When to use

Any multi-file change, building a feature from a task breakdown, refactoring, or any time you're about to write more than ~100 lines before testing. Skip it for single-file, single-function changes.

The cycle

For each slice: implement the smallest complete piece → test (run the suite, or write a test) → verify it actually runs → commit one logical change → next slice, carry forward.

Slicing

Vertical (preferred) — one complete path through the stack per slice:

Slice 1: Create  (DB + API + basic UI) → user can create
Slice 2: List    (query + API + UI)    → user can see them
Slice 3: Edit    → user can modify
Slice 4: Delete  → full CRUD

Contract-first — when backend and frontend move in parallel: define the types/interfaces first, build each side against the contract, then integrate.

Risk-first — prove the riskiest piece first (e.g. the WebSocket connection) before investing in what's built on top. If it fails, you find out cheaply.

Rules

0 — Simplest thing first. Before coding: what's the simplest thing that works? After: fewer lines? are these abstractions earning their keep? building for hypothetical future needs or the current task?

✗ Generic EventBus + middleware for one notification → ✓ a function call
✗ Abstract factory for two similar components         → ✓ two components
✗ Config-driven form builder for three forms          → ✓ three forms

Three similar lines beat a premature abstraction. Write the naive, obviously-correct version first; optimize only after correctness is proven.

0.5 — Scope discipline. Touch only what the task needs. Don't clean up adjacent code, refactor imports in files you're not changing, or modernize syntax in files you're only reading. Spotted something? Note it, don't fix it:

NOTICED, NOT TOUCHING:
- src/utils/format.ts has an unused import (unrelated)
→ Want me to file these?

1 — One thing per increment. Don't mix a new component, a refactor, and a build-config change in one commit.

2 — Keep it compilable. After each increment the project builds and existing tests pass. Never leave it broken between slices.

3 — Flag incomplete work. Gate not-yet-ready features behind a flag so you can land small pieces without exposing them.

4 — Safe defaults. New behavior defaults to conservative/opt-in.

5 — Rollback-friendly. Each increment is independently revertable. Don't delete-and-replace in one commit; migrations get rollback migrations.

Prove each slice runs

Tests green ≠ working. For the slices that matter, actually run it — start the app, hit the endpoint, run the CLI; for UI, drive it with agent-browser. The recurring failure mode is claiming "done" on something that compiles but doesn't actually work end-to-end.

Increment checklist

After each increment:

  • One thing, done completely
  • Existing tests pass (pnpm test / cargo test / go test ./...)
  • Build succeeds; types and lint pass
  • The new behavior actually runs
  • Committed with a descriptive message

Run each check after a change that could affect it. After a green run, don't re-run on unchanged code — it adds nothing.

Common rationalizations

RationalizationReality
"I'll test it all at the end"Bugs compound. A bug in Slice 1 makes 2-5 wrong.
"Faster all at once"Until something breaks and you can't find which of 500 lines did it.
"Too small to commit separately"Small commits are free; large ones hide bugs.
"I'll add the flag later"If it's incomplete, it shouldn't be user-visible. Flag it now.
"This refactor is small enough to include"Mixed refactor + feature is harder to review and debug. Split them.

Red flags

100+ lines without running tests · multiple unrelated changes in one increment · "let me just quickly add this too" · skipping verify to go faster · broken build between increments · abstractions before the third use case · touching files outside scope "while I'm here".

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.