skills/work-unit-commits/SKILL.md
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.
npx skillsauth add gentleman-programming/gentle-ai work-unit-commitsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Load this skill when deciding what belongs in each commit or PR.
Use it for:
| 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. |
| SDD workload guard | If SDD tasks forecast a >400-line change, group commits into chained PR slices before implementation. |
Before committing, confirm:
| 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 |
Use work-unit commits as the foundation for chained PRs:
When sdd-tasks produces a Review Workload Forecast:
delivery_strategy — ask on ask-on-risk, auto-slice on auto-chain, require size:exception on over-budget single-pr, or record accepted size:exception on exception-ok.Each SDD work unit should map cleanly to a commit or PR with:
# Review the story before committing
git diff --stat
git diff --cached --stat
# Check recent commit style
git log --oneline -5
tools
Shared SDD references for installed skills. Not invokable.
tools
<!-- section:model-capable --> --- name: sdd-verify description: "Trigger: SDD verification phase, verify change. Execute tests and prove implementation matches specs, design, and tasks." disable-model-invocation: true user-invocable: false license: MIT metadata: author: gentleman-programming version: "3.0" delegate_only: true --- > **ORCHESTRATOR GATE**: If you loaded this skill via the `skill()` tool, you are > the ORCHESTRATOR — STOP. Do NOT execute these instructions inline. Delegate
documentation
Write SDD delta specs with requirements and scenarios. Trigger: orchestrator launches spec work for a change.
tools
Create an SDD change proposal with intent, scope, and approach. Trigger: orchestrator launches proposal work for a change.