본문으로 건너뛰기
Skillpedia
일반 코딩8.2k · #12558

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/work-unit-commits/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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/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 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:

  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.

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.

repo: Gentleman-Programming/gentle-ai

인기도

GitHub 스타
8.2k
순위
#12558
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬