본문으로 건너뛰기
Skillpedia
일반 코딩33k · #8878

commit-work

하는 일

이 스킬은 에이전트가 검토하기 쉬운 git 커밋을 준비하도록 돕습니다. 각 커밋에 의도한 변경만 담고, 그 변경을 설명하는 명확한 메시지를 원하는 개발자에게 맞습니다.

사용하는 경우

  • ✓작업을 커밋하고 싶은데 변경을 검토하고 올바르게 스테이징해야 할 때.
  • ✓변경이 여러 무관한 작업에 걸쳐 있어 별도의 커밋으로 나눠야 할 때.
  • ✓Conventional Commits 형식의 커밋 메시지를 원할 때.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/commit-work/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/commit-work/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분.

작동 방식

에이전트는 작업 트리를 확인하고, 각 커밋이 어디서 시작하고 끝나야 할지 정하며, 속하는 것만 스테이징하고, 비밀 정보나 디버그 코드가 있는지 스테이징된 diff를 검토한 뒤 메시지를 씁니다.

기술 내용 (원본 SKILL.md)

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

Commit work

Goal

Make commits that are easy to review and safe to ship:

  • only intended changes are included
  • commits are logically scoped (split when needed)
  • commit messages describe what changed and why

Inputs to ask for (if missing)

  • Single commit or multiple commits? (If unsure: default to multiple small commits when there are unrelated changes.)
  • Commit style: Conventional Commits are required.
  • Any rules: max subject length, required scopes.

Workflow (checklist)

  1. Inspect the working tree before staging
    • git status
    • git diff (unstaged)
    • If many changes: git diff --stat
  2. Decide commit boundaries (split if needed)
    • Split by: feature vs refactor, backend vs frontend, formatting vs logic, tests vs prod code, dependency bumps vs behavior changes.
    • If changes are mixed in one file, plan to use patch staging.
  3. Stage only what belongs in the next commit
    • Prefer patch staging for mixed changes: git add -p
    • To unstage a hunk/file: git restore --staged -p or git restore --staged <path>
  4. Review what will actually be committed
    • git diff --cached
    • Sanity checks:
      • no secrets or tokens
      • no accidental debug logging
      • no unrelated formatting churn
  5. Describe the staged change in 1-2 sentences (before writing the message)
    • "What changed?" + "Why?"
    • If you cannot describe it cleanly, the commit is probably too big or mixed; go back to step 2.
  6. Write the commit message
    • Use Conventional Commits (required):
      • type(scope): short summary
      • blank line
      • body (what/why, not implementation diary)
      • footer (BREAKING CHANGE) if needed
    • Prefer an editor for multi-line messages: git commit -v
    • Use references/commit-message-template.md if helpful.
  7. Run the smallest relevant verification
    • Run the repo's fastest meaningful check (unit tests, lint, or build) before moving on.
  8. Repeat for the next commit until the working tree is clean

Deliverable

Provide:

  • the final commit message(s)
  • a short summary per commit (what/why)
  • the commands used to stage/review (at minimum: git diff --cached, plus any tests run)
자주 묻는 질문

한 파일에 두 커밋에 해당하는 변경이 있으면요?

스킬은 패치 스테이징을 사용하므로, 파일의 일부 변경만 골라 스테이징할 수 있습니다.

커밋 전에 무엇을 확인하나요?

비밀 정보나 토큰, 실수로 남긴 디버그 로그, 무관한 서식 변경을 확인합니다.

어떤 커밋 형식을 쓰나요?

스킬이 요구하는 Conventional Commits입니다.

상세 정보

작성자의 원본 설명

Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8878
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬