Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

incremental-implementation

БесплатноБез исполняемых скриптовНе проверен

Builds a change as a sequence of small steps, each of which leaves the project building, passing its checks and safe to merge or revert on its own. Use when a…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Incremental Implementation

Overview

A large change written in one pass fails in one piece: nothing can be run until everything exists, the first error could be anywhere in a thousand lines, and the reviewer gets a diff too big to read. The alternative is to cut the work into steps that each do one thing, prove it with a command, and leave the project in a state that could be merged.

This skill covers how to find the project's checks, how to cut a change into steps using the established patterns (vertical slice, expand–migrate–contract, branch by abstraction, feature flag), what to do after every step, and how to get back to a working state when a step goes wrong.

Instructions

1. Establish the baseline

  1. Find the commands that define "working". The CI workflow is the authoritative list; otherwise read package.json scripts, Makefile, justfile, pyproject.toml or the README. Typically: build, type check, lint, tests.
  2. Run them before touching anything, with a time limit so a hanging test cannot stall the loop (timeout 300 npm test). Record the result. A check that already fails is reported to the user and excluded from "green" by agreement, not fixed silently.
  3. Look at the working tree. If it holds uncommitted work, ask before building on top of it.
  4. Ask what the code cannot tell you: commit after every step or leave commits to the user; work on a new branch or the current one; whether unfinished work may reach the main branch behind a flag; whether a database or public API is involved and who else consumes it.

2. Cut the change into steps

Every step must pass five tests:

  • One purpose. It can be described without "and".
  • Green. All baseline checks pass after it.
  • Observable. It adds something that can be run, called or seen, or a test that now passes.
  • Small. Aim for about 100 changed lines and a handful of files. Several hundred lines is a signal to cut again; generated code and pure renames are the exception.
  • Revertable. Undoing it alone does not break the steps before it.

Choose the cut by the kind of change:

Pattern Use it when The first step is
Vertical slice A feature crosses storage, logic and interface The thinnest path through every layer for one case, with the rest hard-coded or absent
Walking skeleton A new service or pipeline Empty stages connected end to end and running in the real environment
Riskiest part first Nobody knows whether the key piece works A time-boxed proof of that piece alone
Contract first Two sides are built in parallel The agreed schema or types, plus a stub that returns canned data
Expand, migrate, contract A column, endpoint or function signature that is in use must change Add the new form next to the old one; nothing reads it yet
Branch by abstraction A component called from many places is being replaced Put an interface in front of the old component and route callers through it
Preparatory refactoring The current structure makes the change awkward A behaviour-preserving refactor with the tests unchanged
Feature flag A step must merge before the feature is complete The flag, off by default, with its removal listed as the last step

Ordering rules:

  • The step with the most uncertainty goes first. Learning that the plan is wrong should be cheap.
  • Refactoring and behaviour change never share a step. A refactor step changes no test expectations.
  • Tests travel with the code they cover, in the same step.
  • A schema or data change lands before the code that needs it and is compatible with the code already running.
  • Removing the old path is its own step, last, after the new path has been used for real.
  • Do not cut by layer (all tables, then all endpoints, then all screens). Nothing is observable until the final step, which defeats the purpose.

3. Write the plan down

Show this table before starting whenever there are more than three steps, and keep it updated.

| # | Step | Proves | Check | Flag |
|---|------|--------|-------|------|

"Proves" is the observable result in plain words. "Check" is a command, or a manual action with the expected outcome.

4. Run the loop for each step

  1. Say which step is starting.
  2. Change only what the step needs.
  3. Run the checks. Use the fast ones (type check, the tests for the touched module) while working and the full set before calling the step done.
  4. Exercise the result itself: call the endpoint, run the command, open the page. A passing suite proves only what the tests cover.
  5. Read your own diff (git diff --stat, then the diff). Anything that does not belong to this step comes out.
  6. Commit if that was agreed, with a message that names the step; otherwise stop and hand over.
  7. Report, then revise the remaining plan with what the step taught you.
Step 2 of 5 done: export route behind EXPORT_CSV
Changed: src/server.js (+9), test/export-route.test.js
Полный SKILL.md на GitHub

Установить incremental-implementation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл incremental-implementation?

Builds a change as a sequence of small steps, each of which leaves the project building, passing its checks and safe to merge or revert on its own. Use when a user asks to implement a feature that spans several files or layers, says "do this step by step", "break this into small commits", "this is too big for one change", "migrate without downtime", "keep the build green", or when a large change is about to be written in one pass. Produces a step plan with a check for every step and a short report after each one.

Как установить скилл incremental-implementation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл incremental-implementation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить incremental-implementation с