옵션
집 Skill Git 및 버전 관리 conventional-git

conventional-git

samber/cc-skills samber/cc-skills

GitHub 및 GitLab 프로젝트를 위한 기존 커밋 v1.0.0 브랜치 명명법, 워크트리 명명법 및 커밋 메시지 표준입니다. 브랜치를 생성하거나, 워크트리 이름을 지정하거나, 커밋을 작성하거나, 커밋 메시지를 생성하거나, 브랜치 규칙을 검토하거나, 변경 로그 자동화를 설정할 때 사용하십시오. 프로젝트에 일관된 Git 히스토리, SemVer 기반 릴리스, 파싱 가능한 변경 내역 생성 또는 자동 이슈 종결이 필요한 경우 적용하십시오. 사용자가 워크트리 명명 방법, Git 워크트리 생성 방법 또는 정리 방법에 대해 문의할 때 적용하십시오.

...모든 것을 확장하십시오
15
업데이트 된 시간 2026년 8월 26일

소개 conventional-git

GitHub 및 GitLab 프로젝트 전반에 걸쳐 브랜치 이름, Git 워크트리 이름, 커밋 메시지에 대한 ‘Conventional Commits v1.0.0’ 표준을 정의하여, 도구가 변경 내역을 자동 생성하고, SemVer 버전을 준수하도록 강제하며, 관심사별로 히스토리를 필터링할 수 있도록 합니다. 브랜치를 생성하거나, 워크트리 이름을 지정하거나, 커밋 메시지를 작성 또는 생성하거나, 브랜치 규칙을 검토하거나, 변경 내역 자동화 기능을 설정할 때, 그리고 프로젝트에 일관된 Git 히스토리, SemVer 기반 릴리스, 분석 가능한 변경 내역, 또는 자동 이슈 종결이 필요한 경우 이 표준을 적용하십시오. 이 표준은 Claude Code 또는 이와 유사한 AI 코딩 에이전트를 위해 설계되었으며 git이 필요합니다.

브랜치 이름은 '/[issue-]' 형식을 따르며, 소문자로만 작성하고 하이픈만 사용해야 합니다. 이슈 번호가 존재할 경우 GitHub 및 GitLab에서 자동 링크가 생성되도록 앞부분에 이슈 번호를 붙이고, 길이는 50자 이내로 유지해야 합니다. 워크트리는 원격 저장소에 절대 반영되지 않는 로컬 체크아웃 디렉터리로 취급됩니다. 이 디렉터리는 .claude/worktrees/ 아래에 위치하며, 브랜치 이름에서 슬래시를 하이픈으로 대체한 형태를 따릅니다. 또한, 브랜치 이름에 'worktree'가 절대 포함되어서는 안 된다는 점이 명시되어 있습니다. 이 문서는 새로운 워크트리를 생성하기 전에 'git worktree list'를 실행하고, 워크트리의 범위를 단일 브랜치로 제한하며, 브랜치가 병합된 후에는 'git worktree remove' 및 'git worktree prune' 명령어를 사용하여 워크트리를 제거할 것을 권장합니다.

커밋 메시지는 표준 형식인 '[선택적 범위]: ' 헤더를 사용하며, 본문과 푸터는 선택 사항입니다. 유형 표는 각 유형(feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert)을 해당 SemVer 영향도와 용도에 매핑합니다. 규칙에 따르면 제목은 72자 이내여야 하며, 명령형 어조를 사용해야 하고, 대문자나 끝의 마침표는 사용해서는 안 되며, 본문 앞에 빈 줄을 삽입해야 하며, '!' 또는 'BREAKING CHANGE:' 푸터를 통해 변경 사항을 명시적으로 표시해야 합니다. 특히, 어떤 AI 에이전트에 대해서도 Claude 서명, AI 에이전트 출처 표기, 또는 ‘Co-authored-by’ 트레일러를 절대 추가하지 말 것을 지시합니다. 또한, 리포지토리 간 및 다중 이슈 형태를 포함하여 기본 브랜치에서 푸터 키워드(close/fix/resolve 변형)를 통해 이슈를 종결하는 방법을 문서화하고 있으며, 스쿼시 병합 시 PR 제목이 커밋 메시지로 사용되므로 제목은 규약을 따라야 한다고 경고합니다.

FAQ

브랜치 이름은 어떤 형식을 따라야 합니까?

'/[issue-]' 소문자로만 작성하고 하이픈만 사용해야 합니다(예: feat/42-user-authentication). 이슈 번호가 있는 경우 그 번호를 접두사로 붙이고, 설명은 50자 이내로 유지하십시오.

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 보기
GitHub에서 보기

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-module

Prefix 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-condition

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

TypeSemVerWhen
featMINORNew feature
fixPATCHBug fix
docsDocs only
styleFormatting, no logic change
refactorRestructure, no feature/fix
perfPerformance improvement
testAdd/fix tests
buildBuild system, deps
ciCI config
choreAnything else (not src/test)
revertReverts 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 add BREAKING CHANGE: footer (triggers MAJOR bump) — body-only descriptions are invisible to changelog tools
  • revert commits SHOULD include This reverts commit <hash>. in the body — git revert generates this automatically; don't strip it
  • NEVER add a Claude signature, AI agent attribution, or Co-authored-by trailer for Claude or any other AI agent to commits

Examples:

feat(auth): add JWT token refresh
fix: 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

MistakeFix
feat: Added login pagefeat: add login page — imperative, no capital
fix: fix bug.fix: fix bug — no trailing period
Subject over 72 charsShorten; move detail to body
Breaking change only in bodyAdd ! 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 lineMove 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, not feat(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

복사 복사
빠른 설정: skill 폴더를 .claude/skills/로 복사하면 Claude가 해당 스킬을 자동으로 감지하여 사용합니다.
저장소 samber/cc-skills

관련 스킬

github-project-management
업데이트 된 시간 2026년 6월 29일
using-git-worktrees
업데이트 된 시간 2026년 6월 29일
readme-blueprint-generator
업데이트 된 시간 2026년 7월 5일
finishing-a-development-branch
업데이트 된 시간 2026년 6월 29일
OR