incremental-commits
БесплатноБез исполняемых скриптовНе проверенCommit boundaries and messages on a task branch. Use when deciding where to cut a commit or how to word one while implementing.
от makifbaysal★ 123 звезды на GitHubОб этом скилле
Incremental Commits
Overview
Work in bite-sized steps, not one large change. Small commits keep each step reversible and make revisions cheap to localize.
The Process
- Before coding, turn the task into a short ordered list of steps. Each step is ONE action worth 2–5 minutes:
- "Write the failing test" — a step
- "Run it and watch it fail" — a step
- "Write minimal code to pass" — a step
- "Run the tests, all green" — a step
- "Commit" — a step
- Commit locally after each green step on your task branch:
run_terminalwithgit add -A && git commit -m "<type>: <imperative summary>". Do not push, and do not callcommit_task_changesmid-run — the system commits and pushes your run's final state and opens the pull request at hand-off; a mid-run commit of your own is never the one that ships. - Each commit is one logical change: the test and the code that satisfies it belong together; unrelated changes never share a commit.
- Commit message: imperative summary line; explain WHY in the body when it is not obvious from the diff.
Rules of Thumb
- Never accumulate a large uncommitted change — if the diff is hard to describe in one sentence, you missed a commit point.
- A step should end with an independently verifiable state (test green, build passing).
- Setup/scaffolding folds into the step whose deliverable needs it; don't commit empty skeletons.
- If a step balloons mid-way, stop, commit what is green, and re-slice the rest.
Quick Reference
| Situation | Commit boundary |
|---|---|
| Test + code that satisfies it | One commit together |
| Two unrelated behaviors | Two commits |
| Refactor + behavior change | Separate commits (refactor first, while green) |
| Setup/scaffolding | Folded into the step that needs it — no empty-skeleton commits |
| Formatting-only change | Its own commit, never mixed with logic |
Worked Example
Task: add a priority field to task creation. A good branch history:
feat: add priority column migration
test: expect create to persist priority
feat: persist priority in create handler
test: default priority to "medium" when omitted
feat: default omitted priority to medium
Five focused commits. When QA later reports "omitted priority crashes," the fix and the guard test land on top as commit six — nobody re-reads the migration. Compare to one feat: add priority blob, where the same fix forces a reviewer back through the entire change.
Why
- Each green commit is a checkpoint, not a review unit. PRs here are squash-merged and the reviewer reads the whole PR diff at once, not your individual commits — so commit granularity is for YOU:
git reset --hardto the last green commit when a step goes wrong instead of untangling a half-finished working tree. - When a revision comes back, small commits localize what to change even though the reviewer never saw them individually.
- If an approach fails, you lose one step, not the whole task.
Red Flags
- The diff is hard to describe in one sentence → you missed a commit point.
git statusshows changes across five unrelated areas → you batched.- You are about to commit with message "wip" or "fixes" → the step wasn't a clean logical unit.
- You are about to push or call
commit_task_changesmid-run → that is the system's job at hand-off, not yours mid-task.
Установить incremental-commits в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл incremental-commits?
Commit boundaries and messages on a task branch. Use when deciding where to cut a commit or how to word one while implementing.
Как установить скилл incremental-commits?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл incremental-commits запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic