一键导入
work-unit-commits
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Trigger: backup memories, restore memories, máquina nueva, respaldar engram, sync memoria, engram-memories. Backup/restore Engram chunks + Claude auto-memory to gonaas/engram-memories. Skip: in-session mem_save/search (use engram MCP).
Trigger: gentle-ai, configurar agentes, ecosystem doctor, actualizar gentle-ai, sdd status, sdd continue, gga review, skill-registry. Drive the Gentle-AI ecosystem CLI from Claude Code. Skip: running SDD phases (use sdd-* skills).
Trigger: Claude Code, CLAUDE.md, plan mode, shift+tab, MCP, worktrees, hooks, /loop, /schedule, voice mode, permissions, auto mode. Tips from Boris Cherny. Invoke proactively during work — surface tips as user edits.
Create pull requests with Conventional Commits and issue-first checks. Trigger: creating branches, opening PRs, or preparing changes for review.
Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained PRs that protect review focus.
Design docs that reduce cognitive load. Trigger: writing guides, READMEs, RFCs, onboarding, architecture, or review-facing docs.
| 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","version":"1.0"} |
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. |
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 |
| Question | Split into separate commits? |
|---|---|
| Does this commit work if the next one never lands? | ✅ Yes — split |
| Do tests/docs belong to a behavior in this commit? | ❌ No — keep together |
| Are these changes in different layers but same behavior? | ❌ No — keep together |
| Are these two independent behaviors that happened to be done together? | ✅ Yes — split |
| Would reverting this commit undo unrelated work? | ✅ Yes — split |
Return an ordered list of commits for the change, each with:
<type>(<scope>): <description> — what the commit deliversmodels → services → tests) creates commits where none of them work alone — split by behaviorgit diff --stat
git diff --cached --stat
git log --oneline -5