commit

Create a git commit following project conventions. TRIGGER when: user asks to commit, create a commit, stage and commit, save changes, or any workflow that includes committing (e.g., "commit and push", "commit and create PR", "커밋해줘", "커밋하고 푸시"). DO NOT TRIGGER when: user is only checking git status/diff without intent to commit.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "commit" with this command: npx skills add chanmuzi/git-conventions/chanmuzi-git-conventions-commit

Gather Context

If the current changes are already known from the conversation context (e.g., you just edited the files), skip these commands. Otherwise, run them to understand the current state:

  1. git status — check current status and untracked files
  2. git diff HEAD — review all changes

Commit Message Convention

Format: {type}: {description} or {type}({scope}): {description}

Type Prefixes (always lowercase)

TypePurpose
featNew feature
fixBug fix
refactorCode restructuring without behavior change
styleFormatting, linting (no logic change)
docsDocumentation only
testAdding or updating tests
perfPerformance improvement
choreBuild, CI, dependencies, config
hotfixUrgent production fix

Scope (optional)

Add scope in parentheses when the change targets a specific module or component:

  • feat(source-map): ...
  • fix(full-text): ...
  • test(query-rewriting): ...

Description Rules

  • Write the description in the language configured in the project's CLAUDE.md. If no language is configured, follow the user's conversational language.
  • Keep the subject line concise — aim for under 50 characters.
  • Use natural, fluent phrasing. Do not force-translate well-known technical terms. For example, write source_map as-is rather than translating it.
  • Focus on WHAT changed and WHY, not HOW.

Multi-line Body (for complex changes)

When the diff involves multiple files or logical units, add a body after a blank line to explain details:

{type}: {subject line}

- {detail 1}
- {detail 2}
- {detail 3}

When to use multi-line:

  • 3+ files changed across different concerns
  • Non-obvious reasoning behind the change
  • Breaking changes or migration notes

When single-line is enough:

  • Simple, self-explanatory changes (typo fix, single-file edit, etc.)

Examples

Single-line:

feat: 멀티턴 컨텍스트 유지 기능 추가
fix: 요청 DTO 모델 기본값을 settings 기반으로 통일
refactor: 미사용 openai_api_key/openai_base_url 프로퍼티 제거
style: black 포맷팅 적용
perf: Classification max_tokens 30 → 15로 조정
chore: 보안 취약점 패키지 업데이트 (urllib3, langchain-core)
docs: README 환경변수 가이드 업데이트
test: 멀티턴 컨텍스트 유지 기능 테스트 추가
feat(source-map): 검색하지 않은 턴에서도 source_map 지속 반환
fix(full-text): 전문 조회 실패 시 state 누출 방지
hotfix: uv lock synced

Multi-line:

refactor: Gather Context 불필요한 명령 및 중복 step 제거

- commit: git branch, git log 명령 삭제 (gitStatus/컨벤션 정의로 대체)
- pr: git remote show origin, gh pr list 네트워크 호출 제거
- review: Gather Context 섹션 삭제, 카테고리 불일치 수정

Task

  1. Analyze the diff and identify logical units of change. If there are multiple units, plan separate commits for each.
  2. For each commit unit:
    • Stage the relevant files individually.
    • Show the proposed commit message.
    • Create the commit. Follow the session's tool permission settings for approval.
  3. Repeat step 2 until all logical units are committed. Do NOT stop after the first commit — handle all units within this single skill invocation.

Important:

  • Do NOT use git add -A or git add . — stage specific files by name.
  • Do NOT include files that may contain secrets (.env, credentials, tokens, etc.).

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

pr

No summary provided by upstream source.

Repository SourceNeeds Review
General

review

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

commit

No summary provided by upstream source.

Repository SourceNeeds Review