본문으로 건너뛰기
cccskills
무료GitHub에 공개

commit

Stage relevant files and create a well-formed git commit. Use this when the user asks to commit changes, save work, or create a commit.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nullean/curb스타 36(GitHub 36 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Commit Skill

Read .claude/skills/writing-style.md before writing the commit message.

Creates a clean, well-formed commit following this project's conventions.

Steps

1. Check for project hooks

If the repo has a hook runner, ensure it is installed before committing. Common patterns:

# Husky.Net (dotnet)
if [ -f .husky/task-runner.json ] && [ ! -f .husky/_/husky.sh ]; then
  dotnet tool restore && dotnet husky install
fi

# Husky (Node)
# hooks install automatically via npm ci / npm install

# lefthook
if [ -f lefthook.yml ] || [ -f .lefthook.yml ]; then
  lefthook install
fi

Do not use --no-verify.

2. Understand what changed

git status
git diff
git diff --staged
git log --oneline -5

3. Stage files

Stage specific files by name — never git add -A or git add . blindly. Exclude:

  • .env files or anything with secrets/credentials
  • Large binaries not already tracked
  • Unrelated changes to the task at hand

4. Write the commit message

  • First line: Imperative mood, ≤72 chars, no trailing period. Front-load the outcome — a reader scanning git log sees this line only.
  • Body (optional): One short paragraph explaining why, not what. Skip if the title is self-explanatory. Follow the sentence mechanics in writing-style.md.
  • Trailer: Add a Co-Authored-By: line that identifies the model that helped write this commit. Use whatever attribution feels accurate — the model name you know yourself to be running as, or simply Claude if you are uncertain. The address is always noreply@anthropic.com. The point is honest attribution, not a precise version string.

Always pass the message via HEREDOC to avoid shell escaping issues:

git commit -m "$(cat <<'EOF'
Title here

Optional body explaining why.

Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"

5. Handle hook failures

If a git hook fails:

  1. Read the error output carefully
  2. Fix the underlying issue (formatting, linting, type errors — whatever the hook checks)
  3. Re-stage the affected files
  4. Create a new commit — never git commit --amend for a failed commit, and never use --no-verify

6. Verify success

git status

Confirm a clean working tree.

7. Refresh the PR description if one exists

gh pr view --json number,url,isDraft,baseRefName --jq '{number,url,isDraft,baseRefName}' 2>/dev/null
  • No PR → done. Say nothing.
  • PR exists → compare the current body against the current diff versus the PR's base branch. A PR description always describes the current diff against the base branch. It is never a log of the commits on the branch and never records the direction the work took. If any section (## What, ## Verify, or the lead paragraph) no longer describes that diff, the description is stale.
  • Stale description → read and follow pr's update path (step 7). Do not hand-edit the body inline from the commit skill. State plainly what was refreshed.
  • Still accurate → state that the description is still accurate. No edit needed.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

issue

무료

File a well-formed bug report or feature request. Use when the user asks to open an issue, report a bug, or request a feature.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nullean/curb362026년 10월 1일 업데이트

pr

무료

Create a GitHub pull request with a focused why/what body. Use when the user asks to open a PR, create a pull request, or ship a branch.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nullean/curb362026년 10월 1일 업데이트

nullean의 스킬 모두 보기

이 스킬의 문제 신고