Agent skill
commit
Use this skill when the user wants to create a git commit, stage files, write a commit message, or finalize their work with a git commit. Also invoked by phrases like "commit my changes", "save to git", "git commit".
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/commit-imran-ml-claude-skills
SKILL.md
Smart Git Commit
Review staged and unstaged changes, then create a well-formatted git commit.
Steps
- Run
git statusto see what's changed - Run
git diffandgit diff --cachedto understand the changes - Run
git log --oneline -5to match the project's commit style - Stage relevant files with
git add <files>(never usegit add .blindly) - Write a commit message following Conventional Commits:
feat:— new featurefix:— bug fixdocs:— documentationrefactor:— code restructuring (no behavior change)test:— adding/updating testschore:— tooling, deps, configperf:— performance improvementstyle:— formatting, no logic change
- Create the commit
Rules
- Keep subject line under 72 characters
- Use imperative mood: "add feature" not "added feature"
- If the user provided
$ARGUMENTS, use it as context or scope - Never commit
.env, secrets, orsettings.local.json - Warn the user before committing any sensitive-looking file
Example Messages
feat(auth): add OAuth2 login with GitHub
fix(api): handle null response from payment gateway
docs: update README with MCP setup instructions
refactor(db): extract query builder into separate module
$ARGUMENTS
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?