본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)40k · #7222

git-commit

하는 일

이 도구는 코드의 정리되고 표준화된 '커밋' 메시지를 만드는 데 도움을 줍니다. 사용자가 한 변경을 분석해 무엇이 바뀌었는지 명확한 설명을 제안하므로, 프로젝트 기록을 추적하기 쉬워집니다.

사용하는 경우

  • ✓코드 변경을 마쳐서 저장하고 싶을 때.
  • ✓무엇이 바뀌었는지 나 자신과 다른 사람에게 명확히 설명하고 싶을 때.
  • ✓프로젝트 업데이트를 정리하는 표준 방식을 따르고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/git-commit/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

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

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/git-commit/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분.

작동 방식

도구는 사용자가 바꾼 것과 이미 저장된 것의 차이를 살펴봅니다. 이를 바탕으로 변경 유형(예: '수정' 또는 '기능')을 제안하고, 무엇을 했는지 짧은 설명을 씁니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Git Commit with Conventional Commits

Overview

Create standardized, semantic git commits using the Conventional Commits specification. Analyze the actual diff to determine appropriate type, scope, and message.

Conventional Commit Format

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Commit Types

Type Purpose
feat New feature
fix Bug fix
docs Documentation only
style Formatting/style (no logic)
refactor Code refactor (no feature/fix)
perf Performance improvement
test Add/update tests
build Build system/dependencies
ci CI/config changes
chore Maintenance/misc
revert Revert commit

Breaking Changes

# Exclamation mark after type/scope
feat!: remove deprecated endpoint

# BREAKING CHANGE footer
feat: allow config to extend other configs

BREAKING CHANGE: `extends` key behavior changed

Workflow

1. Analyze Diff

# If files are staged, use staged diff
git diff --staged

# If nothing staged, use working tree diff
git diff

# Also check status
git status --porcelain

2. Stage Files (if needed)

If nothing is staged or you want to group changes differently:

# Stage specific files
git add path/to/file1 path/to/file2

# Stage by pattern
git add *.test.*
git add src/components/*

# Interactive staging
git add -p

Never commit secrets (.env, credentials.json, private keys).

3. Generate Commit Message

Analyze the diff to determine:

  • Type: What kind of change is this?
  • Scope: What area/module is affected?
  • Description: One-line summary of what changed (present tense, imperative mood, <72 chars)

4. Execute Commit

# Single line
git commit -m "<type>[scope]: <description>"

# Multi-line with body/footer
git commit -m "$(cat <<'EOF'
<type>[scope]: <description>

<optional body>

<optional footer>
EOF
)"

Best Practices

  • One logical change per commit
  • Present tense: "add" not "added"
  • Imperative mood: "fix bug" not "fixes bug"
  • Reference issues: Closes #123, Refs #456
  • Keep description under 72 characters

Git Safety Protocol

  • NEVER update git config
  • NEVER run destructive commands (--force, hard reset) without explicit request
  • NEVER skip hooks (--no-verify) unless user asks
  • NEVER force push to main/master
  • If commit fails due to hooks, fix and create NEW commit (don't amend)
자주 묻는 질문

'커밋'이란 무엇인가요?

코드 프로젝트의 저장 지점과 같습니다. 커밋은 사용자가 한 변경 사항 묶음을 기록하고, 무엇을 수정했는지 설명하는 메시지를 함께 남깁니다.

'컨벤셔널 커밋 메시지'란 무엇인가요?

커밋 메시지를 표준화된 방식으로 쓰는 것입니다. 이해하기 쉽고, 다른 도구가 프로젝트 기록을 정리하는 데 사용할 수 있습니다.

도구가 파일을 자동으로 준비(스테이징)하나요?

네, 수정되었고 커밋에 포함할 준비가 된 파일을 고르는 데 도움을 줄 수 있습니다. 하지만 확정하기 전에 검토하는 것이 좋습니다.

상세 정보

작성자의 원본 설명

Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file stagin

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7222
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬