contextual-commit
하는 일
이 스킬은 의도, 결정, 제약 같은 코드 변경의 이유를 담은 커밋 메시지를 작성합니다. 나중에 읽는 사람이 코드가 왜 그렇게 작성되었는지 이해하기를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓코드를 커밋하거나 작업을 마칠 때.
- ✓에이전트에게 변경 사항을 커밋하라고 요청할 때.
- ✓코드 차이만으로는 드러나지 않는 제약이나 절충 때문에 변경이 만들어진 경우.
스킬 링크
https://github.com/yamadashy/repomix/blob/main/.agents/skills/contextual-commit/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 변경 사항을 커밋해 주세요. 왜 이 방법을 골랐고 어떤 제약이 이를 결정했는지도 기록해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 표준 커밋 제목 줄을 유지하고, 본문에 의도, 결정, 제약, 배운 점을 설명하는 유형이 있는 작업 줄을 추가합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Contextual Commits
You write commits that carry development reasoning in the body — the intent, decisions, constraints, and learnings that the diff alone cannot show.
The Problem You Solve
Standard commits preserve WHAT changed. The diff shows that too. What gets lost is WHY — what the user asked for, what alternatives were considered, what constraints shaped the implementation, what was learned along the way. This context evaporates when the session ends. You prevent that.
Commit Format
The subject line is a standard Conventional Commit. The body contains action lines — typed, scoped entries that capture reasoning.
type(scope): subject line (standard conventional commit)
action-type(scope): description of reasoning or context
action-type(scope): another entry
Subject Line
Follow Conventional Commits exactly. Nothing changes here:
feat(auth): implement Google OAuth providerfix(payments): handle currency rounding edge caserefactor(notifications): extract digest scheduling logic
Action Lines
Each line in the body follows: action-type(scope): description
scope is a human-readable concept label — the domain area, module, or concern. Examples: auth, payment-flow, oauth-library, session-store, api-contracts. Use whatever is meaningful in this project's vocabulary. Keep scopes consistent across commits when referring to the same concept.
Action Types
Use only the types that apply. Most commits need 1-3 action lines. Never pad with noise.
intent(scope): ...
What the user wanted to achieve and why. Captures the human's voice, not your interpretation.
intent(auth): social login starting with Google, then GitHub and Appleintent(notifications): users want batch notifications instead of per-event emailsintent(payment-flow): must support EUR and GBP alongside USD for enterprise clients
When to use: Most feature work, refactoring with a purpose, any change where the motivation isn't obvious from the subject line.
decision(scope): ...
What approach was chosen when alternatives existed. Brief reasoning.
decision(oauth-library): passport.js over auth0-sdk for multi-provider flexibilitydecision(digest-schedule): weekly on Monday 9am, not daily — matches user researchdecision(currency-handling): per-transaction currency over account-level default
When to use: When you evaluated options. Skip for obvious choices with no real alternatives.
rejected(scope): ...
What was considered and explicitly discarded, with the reason. This is the highest-value action type — it prevents future sessions from re-proposing the same thing.
rejected(oauth-library): auth0-sdk — locks into their session model, incompatible with redis storerejected(currency-handling): account-level default — too limiting for marketplace sellersrejected(money-library): accounting.js — lacks support for sub-unit (cents) arithmetic
When to use: Every time you or the user considered a meaningful alternative and chose not to pursue it. Always include the reason.
constraint(scope): ...
Hard limits, dependencies, or boundaries discovered during implementation that shaped the approach.
constraint(callback-routes): must follow /api/auth/callback/:provider pattern per existing conventionconstraint(stripe-integration): currency required at PaymentIntent creation, cannot change afterconstraint(session-store): redis 24h TTL means tokens must refresh within that window
When to use: When non-obvious limitations influenced the implementation. Things the next person working here would need to know.
learned(scope): ...
Something discovered during implementation that would save time in future sessions. API quirks, undocumented behavior, performance characteristics.
learned(passport-google): requires explicit offline_access scope for refresh tokens, undocumented in quickstartlearned(stripe-multicurrency): presentment currency and settlement currency are different conceptslearned(exchange-rates): Stripe handles conversion — do NOT store our own rates
When to use: "I wish I'd known this before I started" moments. Library gotchas, API surprises, non-obvious behaviors.
Before You Write the Commit
Determine the commit scope, then compose action lines:
- Check for staged changes first — run
git diff --cached --stat.- If staged changes exist: these are the commit scope. Do no
자주 묻는 질문
커밋 제목 형식을 바꾸나요?
아니요, 제목 줄은 표준 Conventional Commits 형식을 따릅니다.
본문에는 무엇이 들어가나요?
결정, 제약, 배운 점처럼 이유를 설명하는 유형이 있는 작업 줄이 들어갑니다.
변경을 설명하기만 하면 안 되나요?
차이에는 무엇이 바뀌었는지가 이미 드러나지만, 본문은 이유를 담아 그렇지 않으면 사라질 정보를 보존합니다.
상세 정보
작성자의 원본 설명
Write contextual commits that capture intent, decisions, and constraints alongside code changes. Use when committing code, finishing a task, or when the user asks to commit. Extends Conventional Commits with structured action lines in the commit body that preserve WHY code was written, not just WHAT changed.
repo: yamadashy/repomix
인기도
- GitHub 스타
- 29k
- 순위
- #9762
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
repomix
29k에이전트가 프로젝트 전체 코드를 AI가 읽기 쉬운 하나의 파일로 묶어, 구조를 파악하고 패턴을 찾으며 토큰 수를 세도록 돕습니다.
agent-carnet
29k에이전트가 세션을 넘어 남는 짧은 메모를 저장하고 찾도록 돕습니다. 사용될 때마다 30일 기한이 다시 시작되며, 쓰지 않으면 휴지통으로 갑니다.
repomix-explorer
29k에이전트가 낯선 코드베이스를 로컬이든 원격이든 묶어서 탐색하고, 출력을 읽어 구조를 설명하며 패턴을 찾도록 돕습니다.