conventional-git
samber/cc-skills
GitHub 및 GitLab 프로젝트를 위한 기존 커밋 v1.0.0 브랜치 명명법, 워크트리 명명법 및 커밋 메시지 표준입니다. 브랜치를 생성하거나, 워크트리 이름을 지정하거나, 커밋을 작성하거나, 커밋 메시지를 생성하거나, 브랜치 규칙을 검토하거나, 변경 로그 자동화를 설정할 때 사용하십시오. 프로젝트에 일관된 Git 히스토리, SemVer 기반 릴리스, 파싱 가능한 변경 내역 생성 또는 자동 이슈 종결이 필요한 경우 적용하십시오. 사용자가 워크트리 명명 방법, Git 워크트리 생성 방법 또는 정리 방법에 대해 문의할 때 적용하십시오.
...모든 것을 확장하십시오소개 conventional-git
GitHub 및 GitLab 프로젝트 전반에 걸쳐 브랜치 이름, Git 워크트리 이름, 커밋 메시지에 대한 ‘Conventional Commits v1.0.0’ 표준을 정의하여, 도구가 변경 내역을 자동 생성하고, SemVer 버전을 준수하도록 강제하며, 관심사별로 히스토리를 필터링할 수 있도록 합니다. 브랜치를 생성하거나, 워크트리 이름을 지정하거나, 커밋 메시지를 작성 또는 생성하거나, 브랜치 규칙을 검토하거나, 변경 내역 자동화 기능을 설정할 때, 그리고 프로젝트에 일관된 Git 히스토리, SemVer 기반 릴리스, 분석 가능한 변경 내역, 또는 자동 이슈 종결이 필요한 경우 이 표준을 적용하십시오. 이 표준은 Claude Code 또는 이와 유사한 AI 코딩 에이전트를 위해 설계되었으며 git이 필요합니다.
브랜치 이름은 '
커밋 메시지는 표준 형식인 '
FAQ
브랜치 이름은 어떤 형식을 따라야 합니까?
'
git 워크트리는 어디에 배치해야 하며, 어떻게 이름을 지정해야 하나요?
.claude/worktrees/ 디렉터리에 배치하며, 브랜치 이름을 그대로 따르되 슬래시(/)를 하이픈(-)으로 대체하여 이름을 지정합니다. 워크트리는 로컬 체크아웃 메커니즘이므로, 브랜치 이름에 ‘worktree’라는 단어가 절대 포함되어서는 안 됩니다.
이 스킬은 AI 에이전트에 대해 ‘Co-authored-by’ 트레일러를 추가하나요?
아니요. 이 기능은 커밋에 Claude 서명, AI 에이전트 출처 표기, 또는 Claude나 다른 AI 에이전트에 대한 'Co-authored-by' 트레일러를 절대 추가하지 않도록 명시적으로 지시합니다.
커밋에서 호환성 깨는 변경 사항을 어떻게 표시하나요?
유형이나 범위 뒤에 '!'를 사용하거나, 'BREAKING CHANGE:' 푸터를 추가하면 MAJOR 버전이 자동으로 상승합니다. 본문에만 기술된 호환성 깨는 변경 사항은 변경 내역 도구에서 인식되지 않습니다.
커밋으로 이슈를 자동으로 닫으려면 어떻게 해야 하나요?
푸터에 이슈 참조와 함께 Closes, Fixes, Resolves와 같은 키워드를 넣으면, 기본 브랜치로 병합될 때 해당 이슈가 자동으로 닫힙니다. 'Closes owner/repo#42'와 같은 리포지토리 간 및 다중 이슈 형식도 지원됩니다.
모든 파일
2개파일 evals/evals.json 12.1KB 보기 SKILL.md 7.2 KB 보기Follow Conventional Commits v1.0.0 for both branch names and commit messages — consistent naming lets tools auto-generate changelogs, enforce SemVer bumps, and filter history by concern.
Branch Naming
Format: <type>/[issue-]<description> — lowercase, hyphens only, no special chars except /.
feat/user-authenticationfeat/42-user-authenticationfix/login-race-conditionfix/87-login-race-conditiondocs/api-reference-updaterefactor/payment-modulePrefix with the issue number when one exists — GitHub and GitLab auto-link it and it makes git log immediately traceable to the tracker. Keep the description under 50 characters — most git UIs truncate branch names in lists around that length. Match the type to the work you're doing — this is the contract readers use to understand the branch purpose at a glance.
NEVER include worktree in a branch name — git worktrees are a local checkout mechanism, not a branch concept; the name would leak implementation details into the remote and confuse other contributors.
Worktree Naming
Worktrees are local checkout directories — they never appear in the remote. Place them under .claude/worktrees/ and name them by replacing the branch / separator with -.
git worktree add .claude/worktrees/feat-user-authentication feat/user-authenticationgit worktree add .claude/worktrees/fix-87-login-race-condition fix/87-login-race-conditionThe directory name mirrors the branch name so git worktree list stays readable and each worktree is immediately traceable to its branch without inspecting the checkout. Run git worktree list before creating a new one — reuse an existing worktree if it already covers the same branch.
Keep worktrees scoped to a single branch. Doing unrelated work inside someone else's worktree obscures which changes belong where and makes cleanup error-prone.
Remove the worktree once its branch is merged — either after a local merge or after the pull/merge request is closed on the remote. Stale worktrees accumulate and make git worktree list unreadable.
git worktree remove .claude/worktrees/feat-user-authentication # branch merged locallygit worktree prune # remove refs to already-deleted directories
Commit Message Format
<type>[optional scope]: <description>[optional body][optional footer(s)]Types:
| Type | SemVer | When |
|---|---|---|
feat | MINOR | New feature |
fix | PATCH | Bug fix |
docs | — | Docs only |
style | — | Formatting, no logic change |
refactor | — | Restructure, no feature/fix |
perf | — | Performance improvement |
test | — | Add/fix tests |
build | — | Build system, deps |
ci | — | CI config |
chore | — | Anything else (not src/test) |
revert | — | Reverts a previous commit |
Rules:
- Subject line ≤ 72 characters — git log and GitHub/GitLab UIs silently truncate longer subjects
- Imperative mood: "add" not "added" — reads as an instruction, not a history log
- No capital letter, no trailing period — enforces uniform parsing by changelog tools
- Body separated by blank line — parsers split header/body at the first blank line
- Breaking changes: use
!after type/scope, or addBREAKING CHANGE:footer (triggers MAJOR bump) — body-only descriptions are invisible to changelog tools revertcommits SHOULD includeThis reverts commit <hash>.in the body —git revertgenerates this automatically; don't strip it- NEVER add a Claude signature, AI agent attribution, or
Co-authored-bytrailer for Claude or any other AI agent to commits
Examples:
feat(auth): add JWT token refreshfix: prevent race condition on concurrent requestsIntroduce request ID and reference to latest request.Dismiss responses from stale requests.refactor!: drop support for Go 1.18BREAKING CHANGE: Go 1.18 no longer supported; uses stdlib APIs from 1.21+Closing Issues via Commit Messages
Both GitHub and GitLab detect keywords in commit messages and automatically close the referenced issue when the commit lands on the default branch. Place the reference in the footer (preferred — keeps the subject line clean).
Keywords: close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved — case-insensitive.
GitHub:
fix(auth): prevent token expiry race conditionCloses #42Closes owner/repo#99- Triggers when merged into the default branch (usually
main) - Cross-repo:
Closes owner/repo#42 - Close multiple:
Closes #42, closes #43 - Works in PR descriptions too
GitLab:
feat: add dark mode supportResolves #101Closes group/project#42- Triggers when merged into the default branch (configurable per project)
- Cross-project:
Closes group/project#42 - Close multiple:
Closes #101, closes #102 - Works in MR descriptions too
Tip: Pair with the commit type — fix: closing a bug issue, feat: closing a feature request — keeps the changelog semantically coherent.
Common Mistakes
| Mistake | Fix |
|---|---|
feat: Added login page | feat: add login page — imperative, no capital |
fix: fix bug. | fix: fix bug — no trailing period |
| Subject over 72 chars | Shorten; move detail to body |
| Breaking change only in body | Add ! or BREAKING CHANGE: footer — tools won't detect body-only |
feat(adding-auth): ... | feat(auth): ... — scope is a noun, not a verb |
| Closes #42 in subject line | Move to footer — keeps subject clean and parseable |
Best Practices
- Align branch type and commit type —
feat/auth-*branch →feat(auth):commits - One concern per branch — mixing fixes into feature branches obscures the changelog
- Use scope consistently within a branch —
feat(auth):throughout, notfeat(user):mid-way - Squash merge: when squash-merging a PR/MR, the branch commits are collapsed into one — the PR/MR title becomes the commit message. If the title doesn't follow conventional commits format, changelog generation breaks silently. Always set the PR title before squashing.
모든 파일
0개 파일conventional-git 설치
스킬 파일을 다운로드하여 .claude/skills/ 디렉터리에 압축을 풀어주세요.
ZIP 다운로드저장소를 클론하고 스킬 파일을 프로젝트에 복사하세요.
git clone https://github.com/samber/cc-skills/blob/main/skills/conventional-git/SKILL.md # Copy SKILL.md to your .claude/skills/ directory
복사





집
