Agent skill
commit
Review changes and create clean git commits. Use when user types /commit or asks to commit changes. Creates well-structured commits with proper messages.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/commit-sterlingchin-marvin-template
Metadata
Additional technical details for this skill
- model
- default
- proactive
- NO
- slash command
- /commit
- user invocable
- YES
- marvin category
- work
SKILL.md
Commit Skill
Review changes and create clean, well-structured git commits.
When to Use
- User types
/commit - User asks to "commit changes" or "save to git"
- After completing a piece of work
Process
Step 1: Check Current Status
git status --short
git diff --stat
Review what's changed:
- New files
- Modified files
- Deleted files
Step 2: Review Changes
git diff
Understand what changed and why. Group related changes.
Step 3: Check Recent History
git log --oneline -5
Match the repository's commit style.
Step 4: Create Logical Commits
Group files by type and create separate commits:
| Category | Files | Commit Type |
|---|---|---|
| Features | New functionality | feat: |
| Bug fixes | Fixes | fix: |
| Documentation | *.md, docs |
docs: |
| Configuration | Config files | chore: |
| State/Sessions | state/, sessions/ |
chore: |
Step 5: Stage and Commit
For each group:
git add <specific files>
git commit -m "$(cat <<'EOF'
<type>: <short description>
<optional longer description>
Co-Authored-By: Claude <[email protected]>
EOF
)"
Step 6: Push (if requested)
git push
Commit Message Guidelines
Format:
<type>: <description>
[optional body]
Co-Authored-By: Claude <[email protected]>
Types:
feat:— New featurefix:— Bug fixdocs:— Documentationchore:— Maintenance, config, state updatesrefactor:— Code restructuringtest:— Tests
Good examples:
feat: add email notification systemfix: resolve login timeout issuedocs: update API documentationchore: session log and state update
Bad examples:
update(too vague)fixed stuff(not descriptive)WIP(don't commit work in progress)
Output Format
**Changes:**
- {file 1}: {what changed}
- {file 2}: {what changed}
**Commits created:**
1. `<type>: <message>`
2. `<type>: <message>`
{Pushed to origin/main | Ready to push}
Skill created: 2026-01-22
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?