← Back to list

write-commit-message
by eveld
Research, planning, and implementation workflows for Claude Code
⭐ 3🍴 1📅 Jan 6, 2026
SKILL.md
name: write-commit-message description: Use when creating git commits to ensure consistent, clear commit messages following conventional commits format.
Write Commit Message
Create git commit messages following the Conventional Commits format.
Format
<type>(<scope>): <subject>
[optional body]
[optional footer]
Types
feat- New featurefix- Bug fixdocs- Documentation changesstyle- Code style changes (formatting, no logic change)refactor- Code refactoringtest- Adding or updating testschore- Maintenance tasks
Rules
- Subject line < 72 characters
- Use imperative mood ("add feature" not "added feature")
- Don't capitalize first letter of subject
- No period at end of subject
- Separate subject from body with blank line
- Wrap body at 72 characters
- Use body to explain what and why, not how
Examples
Feature:
feat(auth): add JWT token refresh mechanism
Implements automatic token refresh to prevent user sessions from
expiring unexpectedly. Tokens are refreshed 5 minutes before expiry.
Closes #123
Bug fix:
fix(api): handle null values in user response
Previously crashed when user profile was incomplete. Now returns
default values for missing fields.
Refactoring:
refactor(auth): extract token validation into separate function
Improves testability and reduces duplication across middleware
and handlers.
Tests:
test(auth): add tests for token refresh flow
Covers successful refresh, expired token, and invalid token cases.
Scope
Scope is optional but recommended:
- Use component/module name:
(auth),(api),(ui) - Use file/package name for small changes:
(user-handler) - Omit if change spans multiple areas
Body
Include body when:
- Change is non-obvious
- Explains why, not what
- References issues or tickets
- Breaking changes need explanation
Footer
Use footer for:
Closes #123- Closes issueBREAKING CHANGE:- Breaking changesRefs #456- References related issue
Integration with Git Workflow
When user asks to commit or you're following git workflow:
- Run
git statusandgit diffto see changes - Analyze the nature of changes
- Draft commit message following format
- Use heredoc for proper formatting:
git commit -m "$(cat <<'EOF'
feat(auth): add JWT token refresh
Implements automatic token refresh mechanism.
EOF
)"
Benefits
- Clear, scannable git history
- Semantic versioning compatibility
- Automatic changelog generation
- Easy to search and filter commits
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
3ヶ月以内に更新
+5
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon
