commit skill
Generates well-crafted git commit messages by analyzing diffs and following existing repository styles.
- GitHub yıldızları
- 75
- Dosyalar
- 1
- Son commit
- 14 Eyl 2026
- Lisans
- MIT
- İzin verilen araçlar
- 3
commit skill ne işe yarar?
commit bir agent skill'dir. Generates well-crafted git commit messages by analyzing diffs and following existing repository styles.
Özet, skill'in SKILL.md dosyasından oluşturuldu.
commit skilli hakkında
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.
Bir agent bununla neler yapabilir
- 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'in SKILL.md dosyasından yazılmıştır. Her kullanım durumu oradaki bir alıntı ile kontrol edilir.
commit skill nasıl kurulur
Her komut, skill klasörünü istemcinin skills dizinine kopyalar. Yüklemek için istemciyi yeniden başlatın veya yeni bir oturum başlatın.commit skill'ini Eklenti uygulamasına kur
/plugin marketplace add sneg55/agent-starter /plugin install agent-starter@agent-starter
commit skill'ini Claude Code uygulamasına kur
~/.claude/skills/commit/SKILL.md
$ npx degit sneg55/agent-starter/skills/commit ~/.claude/skills/commitcommit skill'ini Claude Code (project) uygulamasına kur
.claude/skills/commit/SKILL.md
$ npx degit sneg55/agent-starter/skills/commit .claude/skills/commitcommit skill'ini Codex uygulamasına kur
~/.agents/skills/commit/SKILL.md
$ npx degit sneg55/agent-starter/skills/commit ~/.agents/skills/commitcommit skill'ini Gemini CLI uygulamasına kur
~/.gemini/skills/commit/SKILL.md
$ npx degit sneg55/agent-starter/skills/commit ~/.gemini/skills/commitcommit skill'ini Claude.ai uygulamasına kur
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'da görüntüleGit 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.
Bu becerideki dosyalar
1commit skill soruları
commit skill'ini Claude Code uygulamasına nasıl kurarım?
npx degit sneg55/agent-starter/skills/commit ~/.claude/skills/commit komutunu çalıştırın. Claude Code, skill'leri ~/.claude/skills (tüm projeler) veya .claude/skills (tek proje) konumundan yükler ve açıklaması görevle eşleştiğinde skill'i kullanır.
commit skill'ini hangi istemciler kullanabilir?
Agent Skills biçimini okuyan her istemci: Claude Code, Codex, Gemini CLI ve claude.ai (ZIP olarak yükleyin). Skill içindeki betikler yalnızca istemcinin kod çalıştırmaya izin verdiği yerlerde çalışır.
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.