commit skill
Generates well-crafted git commit messages by analyzing diffs and following existing repository styles.
- GitHub 스타
- 75
- 파일
- 1
- 마지막 커밋
- 2026년 9월 14일
- 라이선스
- MIT
- 허용된 도구
- 3
commit skill은 무엇을 하나요?
commit은(는) agent skill입니다. Generates well-crafted git commit messages by analyzing diffs and following existing repository styles.
skill의 SKILL.md에서 생성된 요약입니다.
commit skill 정보
Writing descriptive git commit messages that explain the purpose of code changes is what this skill automates for developers. When an agent needs to finalize a task, it loads this skill to analyze staged and unstaged diffs alongside recent repository history. By examining the last ten commits, the agent learns the specific formatting style used by the project to ensure consistency across the codebase.
The tool uses bash commands like git status, git diff HEAD, and git branch to gather context before drafting a message. It focuses on the reasoning behind a change rather than just listing the modified files. The process concludes by staging relevant files and executing a git commit command using heredoc syntax. To maintain repository integrity, the skill avoids interactive flags, refuses to amend existing commits without permission, and skips files that appear to contain secrets like .env or credentials.json.
agent가 수행할 수 있는 작업
- 1Automate descriptive commit messagesAsk the agent to create a commit message that explains the reasoning behind your recent code changes.
- 2Maintain repository style consistencyHave the agent write commits that match the existing formatting and tone of your project history.
- 3Secure file stagingEnsure that sensitive configuration files are not accidentally included in your version control history.
skill의 SKILL.md를 기반으로 작성되었습니다. 모든 사용 사례는 해당 문서의 인용구와 대조 확인되었습니다.
commit skill 설치 방법
각 명령은 skill 폴더를 클라이언트의 skills 디렉터리에 복사합니다. 클라이언트를 재시작하거나 새 세션을 시작하여 로드하세요.플러그인에 commit skill 설치
/plugin marketplace add sneg55/agent-starter /plugin install agent-starter@agent-starter
Claude Code에 commit skill 설치
~/.claude/skills/commit/SKILL.md
$ npx degit sneg55/agent-starter/skills/commit ~/.claude/skills/commitClaude Code (project)에 commit skill 설치
.claude/skills/commit/SKILL.md
$ npx degit sneg55/agent-starter/skills/commit .claude/skills/commitCodex에 commit skill 설치
~/.agents/skills/commit/SKILL.md
$ npx degit sneg55/agent-starter/skills/commit ~/.agents/skills/commitGemini CLI에 commit skill 설치
~/.gemini/skills/commit/SKILL.md
$ npx degit sneg55/agent-starter/skills/commit ~/.gemini/skills/commitClaude.ai에 commit skill 설치
npx degit sneg55/agent-starter/skills/commit commit && zip -r commit.zip commit # claude.ai → Customize → Skills → + → Create skill → Upload a skill → commit.zip
SKILL.md
GitHub에서 보기Git Commit
Context
Gather this context before committing:
- Current git status:
git status - Current git diff (staged and unstaged):
git diff HEAD - Current branch:
git branch --show-current - Recent commits:
git log --oneline -10
Git Safety Protocol
- NEVER update the git config
- NEVER skip hooks (--no-verify, --no-gpg-sign, etc) unless the user explicitly requests it
- CRITICAL: ALWAYS create NEW commits. NEVER use git commit --amend, unless the user explicitly requests it
- Do not commit files that likely contain secrets (.env, credentials.json, etc). Warn the user if they specifically request to commit those files
- If there are no changes to commit (i.e., no untracked files and no modifications), do not create an empty commit
- Never use git commands with the -i flag (like git rebase -i or git add -i) since they require interactive input which is not supported
Task
Based on the changes, create a single git commit:
-
Analyze all staged changes and draft a commit message:
- Look at the recent commits to follow this repository's commit message style
- Summarize the nature of the changes (new feature, enhancement, bug fix, refactoring, test, docs, etc.)
- Ensure the message accurately reflects the changes and their purpose (i.e. "add" means a wholly new feature, "update" means an enhancement to an existing feature, "fix" means a bug fix, etc.)
- Draft a concise (1-2 sentences) commit message that focuses on the "why" rather than the "what"
-
Stage relevant files and create the commit using HEREDOC syntax:
git commit -m "$(cat <<'EOF'
Commit message here.
EOF
)"
Stage and create the commit in a single message. Do not do anything else.
이 스킬의 파일
1commit skill 질문
Claude Code에 commit skill을 어떻게 설치하나요?
npx degit sneg55/agent-starter/skills/commit ~/.claude/skills/commit를 실행합니다. Claude Code는 ~/.claude/skills(모든 프로젝트) 또는 .claude/skills(한 프로젝트)에서 skills를 로드하며, 설명이 작업과 일치할 때 skill을 사용합니다.
commit skill을 사용할 수 있는 클라이언트는 무엇인가요?
Agent Skills 형식을 읽는 모든 클라이언트(Claude Code, Codex, Gemini CLI, claude.ai(ZIP으로 업로드))가 사용할 수 있습니다. skill 내 스크립트는 클라이언트가 코드 실행을 허용하는 경우에만 실행됩니다.
How does the agent decide on the commit message style?
The agent analyzes recent commits in the repository to ensure the new message follows the established commit message style.
Will the agent amend existing commits?
No, the agent is instructed to always create new commits and never use git commit --amend unless explicitly requested by the user.
What happens if there are no changes to commit?
The agent will not create an empty commit if there are no untracked files or modifications.