Agent skill
git-commits
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/git-commits
SKILL.md
Git Commits
Always invoke this skill for every commit. This ensures consistent, well-structured commits.
Workflow
- Run
git statusandgit diffto see changes - Run
git log --oneline -5to see recent commit style - Determine if changes should be one or multiple commits
- Stage and commit with clear message
When to Split vs Combine
Separate commits:
- CSS vs PHP logic
- Different features (even in same file)
- Refactoring vs new functionality
- Multiple bug fixes (one per fix)
Single commit:
- Related changes for one feature
- A handler + its CSS
- Tests for the feature being added
Commit Message Format
<summary line - what and why, not how>
<optional body with more context>
Examples
Input: Single file change to update details
- $title = __( 'Old title', 'simple-history' );
+ $title = __( 'New title', 'simple-history' );
Output:
Update 5.22.0 update details title
Input: Multiple related changes across files
# file1.php
+ public function new_feature() { ... }
# file2.php
+ add_filter( 'hook', [ $this, 'new_feature' ] );
Output:
Add new feature for X
Register hook and implement handler.
Multiple Repositories
When changes span core + premium:
- Commit core first, then premium
- Use related commit messages
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?