Agent skill

Work-Unit Commits

by Gentleman-Programming in Gentleman-Programming/gentle-ai

Plans commits and PRs as reviewable work units, keeping tests and docs with the code they cover and splitting large changes into chained PRs.

Apache-2.0Auto-check passedDevelopment

Install Work-Unit Commits

skills CLI
$ npx skills add Gentleman-Programming/gentle-ai --skill work-unit-commits -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Gentleman-Programming/gentle-ai work-unit-commits --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Gentleman-Programming/gentle-ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/work-unit-commits .claude/skills/work-unit-commits && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
work-unit-commits
GitHub stars
7.6k
Token cost
~1.1k tokens
SKILL.md length
589 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
Apache-2.0

At a glance

Plans commits and PRs as reviewable work units, keeping tests and docs with the code they cover and splitting large changes into chained PRs.

  • Works in 4 steps: Build the smallest independent work unit. → Include verification for that unit. → Commit it with a Conventional Commit… → …
  • Splitting a large feature into reviewable commits
  • SKILL.md covers When to Use, Critical Rules, Work Unit Checklist and Split Examples, plus 3 more sections
  • Calls git

What it does

This skill guides what goes into each commit or PR. A commit should be one deliverable behavior, fix, migration or docs unit, not a layer such as models, then services, then tests. Tests stay in the same commit as the behavior they verify, docs travel with the user-visible change, and each commit should tell a story and could become a chained PR if the change grows.

A pre-commit checklist asks that the commit has one purpose, that the repo still makes sense with only that commit applied, that rollback is reasonable, that the focused test command and its exact result are recorded along with any runtime scenario, and that the message explains the outcome instead of listing files. When spec-driven tasks forecast a change over 400 lines, commits are grouped into chained PR slices before implementation starts. Messages follow the Conventional Commit style, and a table contrasts weak splits with better ones.

When your agent uses it

  • Splitting a large feature into reviewable commits
  • Preparing commits before opening a PR
  • Turning a big change into chained or stacked PRs
  • Keeping tests and docs in the same commit as the code they cover

Example prompts

  • “Split my auth changes into work-unit commits before I open the PR.”
  • “This branch is heading past 400 changed lines, so plan chained PR slices.”
  • “Rewrite my commit plan so tests and docs ship with the behavior they cover.”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Build the smallest independent work unit.
  2. Include verification for that unit.
  3. Commit it with a Conventional Commit message.
  4. If the PR approaches 400 changed lines, promote commits or groups of commits into chained PRs.

What it can do on your machine

Read from SKILL.md and the folder at commit 81d2225. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Work-Unit Commits loads about 1.1k tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 589 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Gentleman-Programming/gentle-ai at commit 81d2225, republished under its Apache-2.0 licence (© Gentleman-Programming). 589 words, ~1,137 tokens.

Download SKILL.mdSave it as .claude/skills/work-unit-commits/SKILL.md (or your agent's skills folder).
name
work-unit-commits
description
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.
license
Apache-2.0
metadata.author
gentleman-programming
metadata.version
1.0

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.
  • Applying SDD tasks without accidentally producing a PR above 400 changed lines.

Critical Rules

RuleRequirement
Commit by work unitA commit represents a deliverable behavior, fix, migration, or docs unit.
Do not commit by file typeAvoid models, then services, then tests if none works alone.
Keep tests with codeTests belong in the same commit as the behavior they verify.
Keep docs with the user-visible changeDocs belong with the feature or workflow they explain.
Tell a storyA reviewer should understand why each commit exists from its diff and message.
Future PR-readyEach commit should be a candidate chained PR when the change grows.
SDD workload guardIf SDD tasks forecast a >400-line change, group commits into chained PR slices before implementation.

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/A explains 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 splitBetter work-unit split
add modelsfeat(auth): add token validation domain model and tests
add servicesfeat(auth): wire token validation into login flow
add testsTests included with each behavior commit
update docsDocs included with the user-facing change they explain

PR Relationship

Use work-unit commits as the foundation for chained PRs:

  1. Build the smallest independent work unit.
  2. Include verification for that unit.
  3. Commit it with a Conventional Commit message.
  4. If the PR approaches 400 changed lines, promote commits or groups of commits into chained PRs.
Show full SKILL.md (243 more words)Show less

ODD Relationship

Organic Driven Development (ODD) closes every substantial task with a work-unit commit on the feature branch:

  • Every ODD task closes with at least one work-unit commit, branch first when on the default branch, with tests and docs alongside the behavior and a Conventional Commit message.
  • 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.
  • Count authored additions plus deletions for the >400 threshold. Exclude generated goldens from that authored count, but include every generated file in complete snapshot identity and receipt validation.
  • The ODD feature document records the commit identity as evidence and, once a delivery strategy applies, the chosen chain strategy and slice boundaries (which commits each PR holds).

Each ODD work unit should map cleanly to a commit or PR with:

  • clear start state,
  • clear finished state,
  • verification in the same unit,
  • rollback that does not remove unrelated work.

Its implementation evidence MUST include:

  • Focused test command and exact result.
  • Runtime harness command/scenario and exact result, or explicit N/A with reason.
  • Rollback boundary stated independently of commit creation; uncommitted work units still require it.
  • When fixing a bounded review ledger, group atomic work units inside the single correction transaction; work-unit count never creates another fix budget.

Commands

bash
# Review the story before committing
git diff --stat
git diff --cached --stat

# Check recent commit style
git log --oneline -5

© Gentleman-Programming, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/work-unit-commits of Gentleman-Programming/gentle-ai.

Open the folder on GitHubat commit 81d2225

Compare with similar skills

Work-Unit Commits next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Work-Unit Commits compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Work-Unit Commits this skillGentleman-Programming/gentle-ai7.6k—~1.1kAutomated safety check: PassApache-2.0
Git Workflow and Versioningaddyosmani/agent-skills102k2 repos~3.5kAutomated safety check: NotesMIT
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Emoji Commit ConventionsbaptisteArno/typebot.io11k—~424Automated safety check: PassCustom licence
Commit And PR Messagessuperplanehq/superplane7.7k—~1.6kAutomated safety check: PassCustom licence
Draft Pull Request Creatorwordpress-mobile/WordPress-Android3.2k—~881Automated safety check: NotesGPL-2.0

Similar skills

  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    102k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Emoji Commit Conventions

    baptisteArno/typebot.io

    Sets the repository's convention for commit messages and pull request titles: one emoji prefix for the main intent, a concise title and clean follow-up commits.

    11k GitHub stars~424 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Commit And PR Messages

    superplanehq/superplane

    Write Git commit messages and pull request titles/descriptions using the Chris Beams / Tim Pope conventions (subject/body split, ~50-char subject, imperative mood, why-not-how body) plus ASD-STE100…

    7.7k GitHub stars~1.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Draft Pull Request Creator

    wordpress-mobile/WordPress-Android

    Commits and pushes current changes, writes a pull request title and body from the branch history and template, and opens a draft PR on GitHub after you approve it.

    3.2k GitHub stars~881 tokensUpdated today
    DevelopmentAuto-check: notes
  • Codewhale Landing Workflow

    codewhale-hq/Codewhale

    Decides how verified work should reach main, directly, in a worktree or on an integration branch, while keeping contributor credit and respecting merge gates.

    41k GitHub stars~1.6k tokensUpdated today
    DevelopmentAuto-check passed

More from Gentleman-Programming/gentle-ai

All 15 skills in this repo
  • GitHub Issue Creation

    Gentleman-Programming/gentle-ai

    Drafts, creates, comments on and approves GitHub issues under strict rules: YAML Issue Forms, a duplicate search first, and guarded protected labels.

    7.6k GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • Skill Creator

    Gentleman-Programming/gentle-ai

    Guides writing a new agent skill: when one is warranted, the required folder layout and frontmatter, section order and size limits, with a bundled style guide.

    7.6k GitHub stars~998 tokensUpdated today
    Auto-check passed
  • Gentle AI Pull Requests

    Gentleman-Programming/gentle-ai

    Prepares pull requests for the Gentle AI project under an issue-first rule: a linked approved issue, one type label, a valid branch name and confirmed required CI.

    7.6k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Go Testing

    Gentleman-Programming/gentle-ai

    Trigger: Go tests, go test coverage, Bubbletea teatest, golden files.

    7.6k GitHub stars~550 tokensUpdated today
    Auto-check passed
  • Hermes Ephemeral Delegation

    Gentleman-Programming/gentle-ai

    Trigger: a mapping need, parallel units, context backstop, high-risk verify, fresh review, or multi-step debug.

    7.6k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Judgment Day

    Gentleman-Programming/gentle-ai

    Trigger: judgment day, dual review, adversarial review, juzgar.

    7.6k GitHub stars~927 tokensUpdated today
    Auto-check passed

Categories

Questions about Work-Unit Commits

What does Work-Unit Commits do?

Plans commits and PRs as reviewable work units, keeping tests and docs with the code they cover and splitting large changes into chained PRs. This skill guides what goes into each commit or PR. A commit should be one deliverable behavior, fix, migration or docs unit, not a layer such as models, then services, then tests.

When should I use Work-Unit Commits?

Work-Unit Commits fits situations like: splitting a large feature into reviewable commits; preparing commits before opening a PR; turning a big change into chained or stacked PRs; keeping tests and docs in the same commit as the code they cover.

How do I install Work-Unit Commits in Claude Code?

Run `npx skills add Gentleman-Programming/gentle-ai --skill work-unit-commits -a claude-code`. Or copy the skill folder (skills/work-unit-commits in Gentleman-Programming/gentle-ai) into .claude/skills/work-unit-commits in your project. Claude Code loads it when a task matches its description.

How do I install Work-Unit Commits in Codex?

Run `npx skills add Gentleman-Programming/gentle-ai --skill work-unit-commits -a codex`. Or copy the skill folder (skills/work-unit-commits in Gentleman-Programming/gentle-ai) into .agents/skills/work-unit-commits in your project. Codex loads it when a task matches its description.

Can I use Work-Unit Commits in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Gentleman-Programming/gentle-ai --skill work-unit-commits -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/work-unit-commits, .gemini/skills/work-unit-commits, .github/skills/work-unit-commits and .opencode/skills/work-unit-commits in your project.

What does Work-Unit Commits need to run?

Going by SKILL.md and its folder, Work-Unit Commits needs the command-line tools its instructions call (git).

Does Work-Unit Commits access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Work-Unit Commits safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Work-Unit Commits use?

Work-Unit Commits is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Work-Unit Commits use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Work-Unit Commits?

Skills that share tags, products or a category with Work-Unit Commits: Git Workflow and Versioning (addyosmani/agent-skills, 102k stars), React Router Pull Request Creator (remix-run/react-router, 57k stars), Emoji Commit Conventions (baptisteArno/typebot.io, 11k stars) and Commit And PR Messages (superplanehq/superplane, 7.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Work-Unit Commits?

Gentleman-Programming (a GitHub organization) maintains it in Gentleman-Programming/gentle-ai, which has 7,583 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 7, 2026.

Source: Gentleman-Programming/gentle-ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.