Incremental commits

From makifbaysal/tasktrooper · View interactive version

Incremental commits is an AI agent skill from the GitHub repository makifbaysal/tasktrooper. Commit boundaries and messages on a task branch. Use when deciding where to cut a commit or how to word one while implementing.

How to use this skill

Skill file

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

  1. Before coding, turn the task into a short ordered list of steps. Each step is ONE action worth 2–5 minutes:
  1. Commit locally after each green step on your task branch: run_terminal with git add -A && git commit -m "<type>: <imperative summary>". Do not push, and do not call commit_task_changes mid-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.
  2. Each commit is one logical change: the test and the code that satisfies it belong together; unrelated changes never share a commit.
  3. Commit message: imperative summary line; explain WHY in the body when it is not obvious from the diff.

Rules of Thumb

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

Red Flags

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.