write-git-commit
This skill enforces git commit message standards by requiring concise, imperative language that explains the change's motivation.
Install
mkdir -p .claude/skills/write-git-commit && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6596" && unzip -o skill.zip -d .claude/skills/write-git-commit && rm skill.zipInstalls to .claude/skills/write-git-commit
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Create a git commit following repository conventionsKey capabilities
- →Define commit scope based on codebase areas
- →Enforce imperative mood in subject lines
- →Validate commit message format
- →Guide the inclusion of optional explanatory bodies
How it works
The skill provides a template and scope list to ensure commit messages follow a consistent structure of scope, subject, and optional body.
Inputs & outputs
When to use write-git-commit
- →Formatting commit messages for PRs
- →Generating standard commits for features
- →Refactoring git history for clarity
- →Automating commit conventions in a team
About this skill
Git Commit
Create git commits following the repository's established conventions.
Commit Message Format
<scope>: <subject>
[optional body]
Scope
The scope indicates which part of the codebase is affected:
plugin- Plugin source code changes (most common)docs- Documentation changesscripts- Build/release script changes.github- GitHub workflows and actions.claude- Claude configuration and skills.vscode- VS Code settings*- Changes spanning multiple packages/areas
For focused changes within a scope, you may use a more specific prefix like plugin api, plugin settings, etc.
Subject Line
- Use lowercase after the colon
- Use imperative mood ("add feature" not "added feature")
- No period at the end
- Keep concise (ideally under 72 characters total)
Examples:
plugin: add support for task filteringdocs: update query-blocks documentation*: bump versions across the board.github: add separate build job
Body (Optional)
- Separate from subject with a blank line
- Explain why the change was made, not what
- Use sparingly - only when the subject isn't self-explanatory
Example:
plugin: restore react & react-dom dedupe
While the tests pass after aligning react versions between docs/ and
plugin/, the build still breaks at runtime without this.
DO NOT add Claude as a coauthor to the commit.
Process
- Run
git statusto see staged and unstaged changes - Run
git diff --stagedto review what will be committed - Stage files with
git add <files>(prefer specific files overgit add -A) - Determine the appropriate scope based on changed files
- Write a clear, concise subject line
- Add a body only if the "why" isn't obvious
- Create the commit
When not to use it
- →When adding Claude as a coauthor
Limitations
- →Subject line must be under 72 characters
How it compares
It enforces specific repository-wide scope conventions rather than allowing arbitrary commit messages.
Compared to similar skills
write-git-commit side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| write-git-commit (this skill) | 1 | 6mo | No flags | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| dependency-upgrade | 26 | 5mo | Review | Intermediate |
| openspec-onboard | 10 | 6mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jamiebrynes7
View all by jamiebrynes7 →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
openspec-onboard
studyzy
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
skill-sync
KyleKing
Syncs Claude Skills with other AI coding tools like Cursor, Copilot, and Codeium by creating cross-references and shared knowledge bases. Invoke when user wants to leverage skills across multiple tools or create unified AI context.
git-commits
bonny
Create well-structured git commits in logical chunks following best practices