← Back to list

generating-commits
by martinffx
My Spec-Driven workflow for Claude Code
⭐ 0🍴 0📅 Jan 11, 2026
SKILL.md
name: generating-commits description: Writing clear, conventional commit messages. Use when creating git commits, staging changes, or helping with version control messages. Applies conventional commits format with scope and imperative mood.
Commit Message Conventions
Format
type(scope): brief description
[optional body]
[optional footer]
Types
| Type | When to use |
|---|---|
feat | New feature, component, endpoint, or capability |
fix | Bug fix, error correction |
refactor | Code restructuring without behavior change |
test | Adding or updating tests |
docs | Documentation changes |
chore | Build, config, dependencies, tooling |
style | Formatting, whitespace (no logic change) |
perf | Performance improvement |
Scope
Scope identifies the area of change:
- Component/module name:
feat(auth): Add OAuth flow - Feature area:
fix(payments): Handle refund edge case - File/layer:
refactor(api): Extract validation middleware
Omit scope for broad changes: chore: Update dependencies
Subject Line Rules
- 50 characters max - hard limit for readability
- Imperative mood - "Add" not "Added" or "Adds"
- No period at the end
- Lowercase after type/scope prefix
- What, not how - describe the change, not implementation
Examples
feat(users): Add email verification flow
fix: Resolve race condition in cache invalidation
refactor(api): Extract request validation to middleware
test(auth): Cover token refresh edge cases
docs: Update API authentication guide
chore: Bump TypeScript to 5.4
Multi-change Commits
When a commit touches multiple areas:
- Lead with the primary change type
- Mention secondary changes in body if significant
feat(orders): Add bulk order creation endpoint
Also updates order validation schema and adds
integration tests for the new endpoint.
Breaking Changes
Use ! after type/scope and explain in footer:
feat(api)!: Change authentication to JWT
BREAKING CHANGE: Bearer token format changed.
Clients must update to new token structure.
Atomic Commits
Each commit should be:
- Self-contained - builds and tests pass
- Single purpose - one logical change
- Reviewable - understandable in isolation
Split large changes into multiple commits when possible.
Before Committing
- Review staged changes:
git diff --cached - Verify nothing unintended is included
- Run tests if touching logic
- Check commit message follows format
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon