agentleFS
chiruu12chiruu12/claude-skills-template/.claude/skills/incremental-implementation/SKILL.md

incremental-implementation

Skill0 starsChanged 7 months agoMITView on GitHub

Build features in small, always-compilable increments. Each step compiles, tests pass, and the system remains deployable. Use when implementing features that span multiple files, when working on a shared codebase, or when user says "incremental", "step by step", or "keep it working". Not for one-file changes.

96 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility-engineering, constraint-driven-development and 10 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

  • MrCipherSmithSkill

    constraint-driven-development

    Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.

    Also in 20 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

  • HK-hubSkill

    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 53 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 1

    Common

    Most of the 91 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:

    Before coding, identify the order of changes that keeps the system working at each step:

    line 26
  2. Distinctive:

    Rule: additions before modifications: Add new code first, then wire it in.

    line 32
  3. Common:

    If a feature isn't ready for users but you want to merge intermediate work:

    line 46
  4. Distinctive:

    DO NOT: commit broken tests with "will fix later" — fix them now or revert the change

    line 92
  5. Distinctive:

    DO NOT: leave feature flags in permanently — remove them once the feature ships or is abandoned

    line 94

“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

Build features in steps where the system compiles and tests pass after every change. Never leave the codebase in a broken state — not even for "just a minute." This discipline prevents integration nightmares, enables early feedback, and makes every intermediate state deployable.

When to Use

  • Implementing features that touch multiple files or modules
  • Working on a shared codebase where others may pull at any time
  • Changes that will take more than one commit
  • NOT for single-file changes that are atomic by nature
  • NOT for exploratory prototyping where you'll throw the code away

Process

1. Plan the increment sequence

Before coding, identify the order of changes that keeps the system working at each step:

  • What can be added without changing existing behavior? (new files, new functions, new types)
  • What existing code needs modification? (do this last)
  • What's the smallest change that demonstrates progress?

Rule: additions before modifications. Add new code first, then wire it in.

2. Execute each increment

For each step:

1. Make the change (smallest unit that's meaningful)
2. Verify: does it compile? do tests pass?
3. If yes: commit. If no: fix before moving on.

3. Use feature flags for incomplete features

If a feature isn't ready for users but you want to merge intermediate work:

if (featureFlags.newCheckout) {
  // new behavior
} else {
  // existing behavior
}

This lets you deploy incomplete work without exposing it.

4. Keep the diff small

Each commit should be reviewable in under 5 minutes. If it's larger:

  • Split it into multiple increments
  • Each increment should be independently understandable

Common Rationalizations

ShortcutWhy It Fails
"I'll fix the tests after I finish the whole feature"Broken tests for days means you're flying blind. When you finally run them, 15 failures compound and you can't tell which change broke what. Fix as you go.
"It's faster to do it all at once"It feels faster. But "all at once" means one giant PR, longer review cycles, harder debugging, merge conflicts with teammates, and no rollback points. Small increments ship faster in practice.
"This change can't be split up, it's all-or-nothing"Almost nothing is truly atomic. You can add new code without wiring it, add tests for future behavior, create interfaces before implementations, migrate one caller at a time. Look harder.
"Feature flags are overengineering for this"Feature flags let you merge daily instead of branching for weeks. They're not overengineering — they're the mechanism that makes incremental delivery possible for user-facing features.

Red Flags

  • A branch has been open for more than 3 days without merging — increments are too large
  • Tests have been red for multiple commits — the "always-compilable" rule is being violated
  • Single PR has 1000+ lines changed — this wasn't incremental
  • New code can only be tested after the full feature is complete — missing intermediate test points

Verification Checklist

  • System compiles after every commit
  • Tests pass after every commit
  • Each commit is independently reviewable (under 300 lines ideally)
  • No commit introduces dead code without a clear next step
  • Feature flags used for incomplete user-facing features
  • Additions before modifications pattern followed

Anti-patterns

  • DO NOT commit broken tests with "will fix later" — fix them now or revert the change
  • DO NOT make one giant commit at the end of a feature — if you can't split it, you didn't plan incrementally
  • DO NOT leave feature flags in permanently — remove them once the feature ships or is abandoned
  • DO NOT skip the compile/test check between increments — the whole point is continuous validity

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.