Agent skill
commit-guidelines
Provides commit message formatting standards for this project. Claude should use this skill when creating git commits to ensure messages follow project conventions, including proper co-authorship attribution and concise formatting.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/commit-guidelines
SKILL.md
Commit Message Guidelines
IMPORTANT: Always invoke this skill (idea-to-code:commit-guidelines) before creating any git commit in projects that use it. This ensures commit messages follow project conventions.
When writing commit messages for this project, follow these guidelines:
Message Structure
- The commit message should be concise and descriptive of the changes made
- The first line of the commit message should describe the high-level goal of the change
- If the work is associated with an issue, include the issue number in the commit message
Git Add and Commit Separately
Run git add and git commit as separate tool calls rather than chaining with &&. This provides:
- Visibility into what was staged
- Opportunity for user to intervene before commit
- Clearer error attribution if something fails
Co-authorship Attribution
Use "Co-authored by Claude Code" in the commit message instead of the standard Claude Code attribution format.
Specifically, use:
Co-authored by Claude Code
Instead of:
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Special Cases
Converting Classes to Records
When converting classes to records, use a concise commit message that simply says which classes were converted. No need to explain method renames or justification.
Example:
Convert UserProfile and AccountSettings classes to records
Co-authored by Claude Code
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?