incremental-implementation
What it does
This skill helps break down large programming tasks into small, manageable steps. It ensures each step is tested and works before moving to the next, making the development process safer and more organized.
When to use it
- βWhen implementing a new feature affecting multiple code parts.
- βWhen a task feels too big to do all at once.
- βWhen refactoring (improving) existing code.
Skill link
https://github.com/addyosmani/agent-skills/blob/main/skills/incremental-implementation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βBreak down the implementation of the login feature into small steps. First, create the login screen. Then, add email and password validation. Finally, connect it to the authentication system.β
5 new skills a week. 1 minute to read.
How it works
The idea is to do one small piece at a time: write a bit of code, test if it works, verify it's correct, and save your progress. Repeat this for each small piece until the task is complete.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Incremental Implementation
Overview
Build in thin vertical slices β implement one piece, test it, verify it, then expand. Avoid implementing an entire feature in one pass. Each increment should leave the system in a working, testable state. This is the execution discipline that makes large features manageable.
When to Use
- Implementing any multi-file change
- Building a new feature from a task breakdown
- Refactoring existing code
- Any time you're tempted to write more than ~100 lines before testing
When NOT to use: Single-file, single-function changes where the scope is already minimal.
The Increment Cycle
ββββββββββββββββββββββββββββββββββββββββ
β β
β Implement βββ Test βββ Verify βββ β
β β² β β
β ββββββ Commit βββββββββββββββ β
β β β
β βΌ β
β Next slice β
β β
ββββββββββββββββββββββββββββββββββββββββ
For each slice:
- Implement the smallest complete piece of functionality
- Test β run the test suite (or write a test if none exists)
- Verify β confirm the slice works as expected (tests pass, build succeeds, manual check)
- Commit -- save your progress with a descriptive message (see
git-workflow-and-versioningfor atomic commit guidance) - Move to the next slice β carry forward, don't restart
Slicing Strategies
Vertical Slices (Preferred)
Build one complete path through the stack:
Slice 1: Create a task (DB + API + basic UI)
β Tests pass, user can create a task via the UI
Slice 2: List tasks (query + API + UI)
β Tests pass, user can see their tasks
Slice 3: Edit a task (update + API + UI)
β Tests pass, user can modify tasks
Slice 4: Delete a task (delete + API + UI + confirmation)
β Tests pass, full CRUD complete
Each slice delivers working end-to-end functionality.
Contract-First Slicing
When backend and frontend need to develop in parallel:
Slice 0: Define the API contract (types, interfaces, OpenAPI spec)
Slice 1a: Implement backend against the contract + API tests
Slice 1b: Implement frontend against mock data matching the contract
Slice 2: Integrate and test end-to-end
Risk-First Slicing
Tackle the riskiest or most uncertain piece first:
Slice 1: Prove the WebSocket connection works (highest risk)
Slice 2: Build real-time task updates on the proven connection
Slice 3: Add offline support and reconnection
If Slice 1 fails, you discover it before investing in Slices 2 and 3.
Implementation Rules
Rule 0: Simplicity First
Before writing any code, ask: "What is the simplest thing that could work?"
After writing code, review it against these checks:
- Can this be done in fewer lines?
- Are these abstractions earning their complexity?
- Would a staff engineer look at this and say "why didn't you just..."?
- Am I building for hypothetical future requirements, or the current task?
SIMPLICITY CHECK:
β Generic EventBus with middleware pipeline for one notification
β Simple function call
β Abstract factory pattern for two similar components
β Two straightforward components with shared utilities
β Config-driven form builder for three forms
β Three form components
Three similar lines of code is better than a premature abstraction. Implement the naive, obviously-correct version first. Optimize only after correctness is proven with tests.
Rule 0.5: Scope Discipline
Touch only what the task requires.
Do NOT:
- "Clean up" code adjacent to your change
- Refactor imports in files you're not modifying
- Remove comments you don't fully understand
- Add features not in the spec because they "seem useful"
- Modernize syntax in files you're only reading
If you notice something worth improving outside your task scope, note it β don't fix it:
NOTICED BUT NOT TOUCHING:
- src/utils/format.ts has an unused import (unrelated to this task)
- The auth middleware could use better error messages (separate task)
β Want me to create tasks for these?
Rule 1: One Thing at a Time
Each increment changes one logical thing. Don't mix concerns:
Bad: One commit that adds a new component, refactors an existing one, and updates the build config.
Good: Three separate commits β one for each change.
Rule 2: Keep It Compilable
β¦
FAQ
Why break it into small steps?
It makes large tasks less daunting, allows errors to be found earlier, and makes it easier to undo changes if something goes wrong.
What does 'verifiable' mean?
It means that after each step, you can confirm the code works as expected, usually by running tests or checking manually.
Can I make code improvements while breaking down the task?
It's best to focus only on what the task requires. If you notice something that needs improvement outside the scope, note it down to do later, in another task.
Details
Original description by the author
Delivers changes incrementally in thin, verifiable slices. Use when implementing any feature or change that touches more than one file, or when picking up the next task from a plan. Use when rolling a change out behind a feature flag, when you're about to write a large amount of code at once, or when a task feels too big to land in one step.
repo: addyosmani/agent-skills
Popularity
- GitHub stars
- 107k
- Ranking position
- #775
- License
- MIT
- Updated
- 10/13/2026
Comments
- β¦
More skills from this repository
api-and-interface-design
107kHelps create well-defined APIs and interfaces. It's useful when designing how different parts of software will communicate.
browser-testing-with-devtools
107kHelps your agent test code directly in real browsers. It's useful for checking how something works in the environment where it will be used, finding errors and performance issues.
ci-cd-and-automation
107kTeaches your AI agent to automate repetitive tasks and ship projects and manage infrastructure.
code-review-and-quality
107kPerforms detailed code reviews on multiple fronts. It's useful before merging new changes to ensure quality and prevent future problems.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.