work-unit-commits
하는 일
이 스킬은 AI가 각 커밋이나 풀 리퀘스트에 무엇을 넣을지 정하도록 돕습니다. 검토자가 한 번에 한 조각씩 이해할 수 있는 변경을 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓기능을 커밋하기 전에 검토 가능한 조각으로 나눌 때.
- ✓변경이 커져서 여러 풀 리퀘스트로 나눠야 할 것 같을 때.
- ✓각 커밋이 diff와 메시지로 명확한 흐름을 전하길 원하는 경우.
스킬 링크
https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/work-unit-commits/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 기능을 검토자가 하나씩 따라갈 수 있는 커밋으로 나누는 계획을 세워 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 AI에게 파일 종류가 아니라 동작이나 결과물별로 변경을 묶으라고 요청합니다. 테스트와 문서는 그것이 검증하는 코드와 같은 커밋에 넣고, 각 커밋은 그 자체로 의미가 있어야 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
파일 종류별로 커밋을 묶어야 하나요?
아닙니다. 모델, 그다음 서비스, 그다음 테스트처럼 정리된 커밋은 피하라고 스킬이 설명합니다.
테스트는 어디에 두나요?
테스트는 검증하는 동작과 같은 커밋에 둡니다.
검토 한도에 맞추려고 변경을 줄일 수 있나요?
아닙니다. 예산에 맞추려고 주석, 테스트, 문서를 지우거나 코드를 압축하지 말라고 스킬이 설명합니다.
상세 정보
작성자의 원본 설명
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.
인기도
- GitHub 스타
- 8.2k
- 순위
- #12558
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
branch-pr
8.2k에이전트가 일반 템플릿이 아니라 대상 프로젝트 고유의 기여 규칙을 따르는 브랜치와 풀 리퀘스트를 준비하도록 돕습니다.
chained-pr
8.2k에이전트가 400줄이 넘는 큰 변경을 각각 독립적으로 검토할 수 있는 작은 풀 리퀘스트 체인으로 나누도록 돕습니다.
cognitive-doc-design
8.2k에이전트가 답을 먼저 제시하고 세부 내용을 묶어, 쉽게 훑어보고 기억할 수 있는 가이드와 README, 검토 글을 쓰도록 가르칩니다.
comment-writer
8.2k에이전트가 풀 리퀘스트, 리뷰, 이슈 답변, 팀 채팅 메시지에 쓸 짧고 따뜻하며 직접적인 댓글을 쓰도록 돕습니다.