work-unit-commits
Was er macht
Diese Fähigkeit hilft deiner KI zu entscheiden, was in jeden Commit oder Pull Request gehört. Sie ist für Entwickler gedacht, die Änderungen wollen, die Prüfende Stück für Stück verstehen können.
Wann du ihn nutzt
- ✓Wenn du eine Funktion vor dem Committen in prüfbare Teile aufteilst.
- ✓Wenn eine Änderung zu groß wird und vielleicht mehrere Pull Requests werden muss.
- ✓Wenn jeder Commit aus seinem Diff und seiner Nachricht eine klare Geschichte erzählen soll.
Link zum Skill
https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/work-unit-commits/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Plane, wie ich diese Funktion in Commits aufteile, denen eine Prüfende einzeln folgen kann.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die Fähigkeit bittet die KI, Änderungen nach Verhalten oder Ergebnis zu gruppieren, nicht nach Dateityp. Tests und Dokumentation kommen in denselben Commit wie der Code, den sie prüfen, und jeder Commit soll für sich Sinn ergeben.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
When to Use
Load this skill when deciding what belongs in each commit or PR.
Use it for:
- Splitting a feature into reviewable work.
- Preparing commits before opening a PR.
- Turning a large change into chained or stacked PRs.
- Keeping reviewer cognitive load healthy.
- Committing ODD work units in reviewable slices.
Critical Rules
| Rule | Requirement |
|---|---|
| Commit by work unit | A commit represents a deliverable behavior, fix, migration, or docs unit. |
| Do not commit by file type | Avoid models, then services, then tests if none works alone. |
| Keep tests with code | Tests belong in the same commit as the behavior they verify. |
| Keep docs with the user-visible change | Docs belong with the feature or workflow they explain. |
| Tell a story | A reviewer should understand why each commit exists from its diff and message. |
| Future PR-ready | Each commit should be a candidate chained PR when the change grows. |
| Budget is not code-golf | Never shrink a diff by deleting comments, blank lines, docs, or tests, or by compressing code, to fit the review budget (400 by default, or the session review_budget_lines). Slice by work unit or report the overage. |
Work Unit Checklist
Before committing, confirm:
- The commit has one clear purpose.
- The repo still makes sense after applying only this commit.
- Tests or docs for this unit are included when relevant.
- Rollback is reasonable without reverting unrelated work.
- Focused test command and exact result are recorded.
- Runtime harness command/scenario and exact result are recorded, or explicit
N/Aexplains why no runtime boundary exists. - Rollback boundary names the exact files/behavior removable without unrelated work.
- The commit message explains the outcome, not the file list.
Split Examples
| Weak split | Better work-unit split |
|---|---|
add models |
feat(auth): add token validation domain model and tests |
add services |
feat(auth): wire token validation into login flow |
add tests |
Tests included with each behavior commit |
update docs |
Docs included with the user-facing change they explain |
PR Relationship
Use work-unit commits as the foundation for chained PRs:
- Build the smallest independent work unit.
- Include verification for that unit.
- Commit it with a Conventional Commit message.
- If the PR approaches 400 changed lines, promote commits or groups of commits into chained PRs.
ODD Relationship
Organic Driven Development (ODD) commits substantial work in reviewable slices on the feature branch, not one commit per task:
- Commit work units in reviewable slices of about 400 authored changed lines, branch first when on the default branch, with tests and docs alongside the behavior and a Conventional Commit message. A unit whose Risk line names a high-risk item gets its own commit so native review can take it alone, and the last slice closes the feature.
- The native review candidate is that commit, or the PR slice it belongs to when review is deferred, against the previous reviewed boundary. It is never a TODO checkbox and never the accumulated feature branch.
- The running authored line count from work-unit commits feeds the delivery-strategy vocabulary:
ask-on-risk,auto-chain,single-pr,exception-ok. - The ODD feature document records the commit that holds each task as evidence and, once a delivery strategy applies, the chosen chain strategy and slice boundaries (which commits each PR holds).
Commands
# Review the story before committing
git diff --stat
git diff --cached --stat
# Check recent commit style
git log --oneline -5
Häufige Fragen
Soll ich Commits nach Dateityp gruppieren?
Nein. Die Fähigkeit rät davon ab, Commits nach Modellen, dann Diensten, dann Tests zu ordnen.
Wohin gehören Tests?
Tests gehören in denselben Commit wie das Verhalten, das sie prüfen.
Kann sie eine Änderung verkleinern, um ein Prüflimit einzuhalten?
Nein. Sie sagt, dass man niemals Kommentare, Tests oder Dokumentation löschen oder Code komprimieren darf, nur um in ein Budget zu passen.
Details
Originalbeschreibung des Autors
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.
Beliebtheit
- GitHub-Sterne
- 8.2k
- Platz im Ranking
- #12558
- Lizenz
- MIT
- Aktualisiert
- 1.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
branch-pr
8.2kHilft deinem Agenten, Branches und Pull Requests vorzubereiten, die den eigenen Beitragsregeln des Zielprojekts folgen, nicht einer allgemeinen Vorlage.
chained-pr
8.2kHilft deinem Agenten, eine große Änderung von über 400 Zeilen in eine Kette kleinerer, prüfbarer Pull Requests aufzuteilen, die jeweils für sich stehen können.
cognitive-doc-design
8.2kBringt deinem Agenten bei, Anleitungen, READMEs und Reviews zu schreiben, die sich leicht überfliegen und merken lassen, indem die Antwort vorangestellt und Details gruppiert werden.
comment-writer
8.2kHilft deinem Agenten, kurze, warme und direkte Kommentare für Pull Requests, Reviews, Issue-Antworten und Nachrichten im Team-Chat zu schreiben.
Ähnliche Skills
diffs
394kLässt deinen Agenten einen echten, teilbaren Diff seiner Änderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine größere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu übergeben und danach den Fortschritt zu prüfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwählen und Pull Requests mit Korrekturen zu öffnen, einschließlich der Nacharbeit an Review-Kommentaren.