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

incremental-implementation

Skill1 starsChanged 22 days agoMITView on GitHub

Delivers work in thin vertical slices and a walking skeleton that can be tested and shipped independently. Use when a change touches multiple files, when a feature is too large for one review, or when risky work needs safe defaults and a rollback path.

96 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility-engineering, observability-and-instrumentation 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.
  • steven123397Skill

    accessibility-engineering

    Audits existing interfaces for WCAG 2.2 AA conformance and remediates the violations found. Use when auditing a page or component for accessibility, running axe-core or pa11y, triaging a11y violations, or checking screen reader and contrast issues before shipping.

    Also in 4 projects that use this

  • jaydubya818Skill

    observability-and-instrumentation

    Add or review logs, metrics, traces, and actionable alerts.

    Also in 35 projects that use this

  • jaydubya818Skill

    deprecation-and-migration

    Retire APIs or migrate consumers and persistent data across releases.

    Also in 42 projects that use this

  • HK-hubSkill

    source-driven-development

    Grounds every implementation decision in official documentation. Use when you want authoritative, source-cited code free from outdated patterns. Use when building with any framework or library where correctness matters.

    Also in 44 projects that use this

  • seikaikyoSkill

    doubt-driven-development

    對非平凡決策啟動新鮮 context 對抗審查(找碴不背書),在修正還便宜的時候抓出錯誤方向。適用:高風險改動(production、資安敏感邏輯、不可逆操作)、不熟的程式碼、要宣稱「這樣是安全的 / 可行的」之前。機械性操作與一行修改不適用。

    Also in 40 projects that use this

  • seikaikyoSkill

    interview-me

    需求不明時的意圖萃取訪談:一次一題、每題附上自己的猜測、聽出「真正想要 vs 覺得應該要」,直到能預測使用者反應(約 95% 信心)才動工。適用:需求缺少對象 / 動機 / 成功標準 / 約束,或使用者點名「訪談我」「先確認一下」「我們確定嗎」。明確自足的指示、純資訊查詢、機械性操作不適用。

    Also in 36 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 91 edited versions we read keep these.

  • 20

    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:

    Use this skill when:

    line 29
  2. Distinctive:

    Do not use it for:

    line 37
  3. Distinctive:

    Put the riskiest unknown early, while the change is small.

    line 74
  4. Distinctive:

    Keep each slice independently revertible.

    line 76
  5. Distinctive:

    Write or update the spec delta, even if it is one paragraph.

    line 82
  6. Distinctive:

    Write the failing test.

    line 83
  7. Distinctive:

    Run the slice's tests and the adjacent tests.

    line 85
  8. Distinctive:

    Run lint, type check, and build if the slice touches them.

    line 86
  9. Distinctive:

    Commit with a message that names the slice.

    line 87
  10. Distinctive:

    When a slice is not ready for users:

    line 93
  11. Distinctive:

    Put it behind a feature flag that defaults off.

    line 95
  12. Distinctive:

    Add the new path without removing the old one.

    line 96
  13. Distinctive:

    Use additive schema changes.

    line 98
  14. Distinctive:

    Never ship a half-wired path that users can reach.

    line 100
  15. Distinctive:

    After the last slice:

    line 110
  16. Distinctive:

    Remove the flag or record why it stays.

    line 112
  17. Distinctive:

    Delete the old path if it is now dead.

    line 113
  18. Distinctive:

    Run the full suite and the release checks.

    line 114
  19. Distinctive:

    Update the spec to match what shipped.

    line 115
  20. Distinctive:

    Exit condition: every slice is committed with its tests green, the feature is reachable only when intended, and the final state has no dead …

    line 117

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

Overview

A large change held back until it is perfect is a large change that cannot be reviewed, tested in production, or rolled back cleanly. Incremental implementation ships a thin vertical slice at a time: a little behavior, wired end to end, verified, and committed.

The unit of progress is a working system, not a finished layer. "The schema is done" is not progress if nothing can use it. "A user can create one draft" is progress, even if editing and publishing are still missing.

Small slices also make agent work reviewable. A 900-line diff hides mistakes; a 90-line diff invites scrutiny.

When to Use

Use this skill when:

  • A change touches more than one file or layer.
  • A feature will take more than one sitting to finish.
  • The work is risky enough to need a flag, a safe default, or a rollback plan.
  • A migration must run while old and new code coexist.
  • A reviewer could not meaningfully review the whole change at once.

Do not use it for:

  • A single-file change with one behavior, already covered by a red test.
  • A mechanical rename enforced by the compiler.
  • A dependency upgrade with no code changes.

Related: use the planning-and-task-breakdown skill to choose the slices, and the test-driven-development skill inside each slice.

Core Process

1. Slice by behavior, not by layer

A vertical slice crosses the layers needed to deliver one observable outcome. A horizontal slice finishes one layer for every outcome and delivers nothing until the end.

Weak horizontal sliceStrong vertical slice
Add every database columnA user can save one draft
Build the whole API surfaceA draft can be listed
Build every UI screenA draft can be published
Wire it all together at the endA published draft is visible

2. Build a walking skeleton first

The first slice should touch every layer once, with the simplest possible behavior. It proves the wiring, the deploy path, and the test harness before the complexity arrives.

For a new service, that might be a health endpoint that reads one row. For a new screen, a rendered empty state behind a flag. For a migration, a dual-write that is verified but not read yet.

3. Order by dependency, then by risk

  • Unblock other work first.
  • Put the riskiest unknown early, while the change is small.
  • Defer cosmetic work until the behavior is proven.
  • Keep each slice independently revertible.

4. Run a full cycle per slice

For each slice:

  1. Write or update the spec delta, even if it is one paragraph.
  2. Write the failing test.
  3. Implement the minimum to pass.
  4. Run the slice's tests and the adjacent tests.
  5. Run lint, type check, and build if the slice touches them.
  6. Commit with a message that names the slice.

The suite stays green at every commit. A red commit is not a checkpoint.

5. Protect incomplete work

When a slice is not ready for users:

  • Put it behind a feature flag that defaults off.
  • Add the new path without removing the old one.
  • Dual-write and verify before switching reads.
  • Use additive schema changes; make destructive changes in a later release.

Never ship a half-wired path that users can reach.

6. Keep the diff reviewable

As a rule of thumb, a slice should be reviewable in one sitting. If the diff has several unrelated concerns, split it. If the test is larger than the implementation, that is usually a good sign.

7. Close the loop

After the last slice:

  • Remove the flag or record why it stays.
  • Delete the old path if it is now dead.
  • Run the full suite and the release checks.
  • Update the spec to match what shipped.

Exit condition: every slice is committed with its tests green, the feature is reachable only when intended, and the final state has no dead scaffolding.

Common Rationalizations

RationalizationWhy it is wrongRequired action
"It is cleaner to build all the layers first."Nothing works until the end, so nothing is verified until the end.Build one outcome end to end, then widen.
"The feature is not usable until it is complete."Incomplete work can still be merged behind a flag and tested.Ship the slice dark, then enable it.
"Feature flags are overhead."They are cheaper than a rollback of a half-finished release.Use the smallest flag that lets you disable the new path.
"I will commit when it is all working."One large commit hides regressions and cannot be bisected.Commit each green slice.
"Splitting will take longer."It takes less time than reviewing and debugging a monolith.Split by behavior, not by file.
"The refactor is small enough to include."Mixing refactor and behavior makes both harder to review.Land the refactor separately.
"We can clean up the old path later."Old paths become permanent when no one owns the cleanup.Record the cleanup task with the slice that enables it.
"The flag will never be turned off."Then it is not a flag, it is a permanent branch.Set an owner and a removal date.

Red Flags

  • The first commit contains the entire feature.
  • Work is organized by layer: all models, then all services, then all UI.
  • Nothing is runnable until the last step.
  • A slice has no test that could fail.
  • The old and new paths are both live with no flag or routing rule.
  • A destructive migration lands before the code that survives it.
  • The diff mixes refactoring, formatting, and behavior.
  • Cleanup is deferred with no owner.
  • The suite is red between commits.
  • The pull request is too large to review in one sitting.

Verification

  • Each slice delivers one observable outcome.
  • The first slice is a walking skeleton that touches every layer.
  • Every commit leaves the suite green.
  • Incomplete paths are behind a flag or unreachable.
  • Additive changes precede destructive ones.
  • No commit mixes refactoring with behavior change.
  • The final feature is reachable only when intended.
  • Flags are removed or have an owner and a removal date.
  • Dead scaffolding is deleted.
  • The spec reflects what actually shipped.

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.