スキル一覧に戻る
martinffx

generating-commits

by martinffx

My Spec-Driven workflow for Claude Code

0🍴 0📅 2026年1月11日
GitHubで見るManusで実行

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

TypeWhen to use
featNew feature, component, endpoint, or capability
fixBug fix, error correction
refactorCode restructuring without behavior change
testAdding or updating tests
docsDocumentation changes
choreBuild, config, dependencies, tooling
styleFormatting, whitespace (no logic change)
perfPerformance 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

  1. 50 characters max - hard limit for readability
  2. Imperative mood - "Add" not "Added" or "Adds"
  3. No period at the end
  4. Lowercase after type/scope prefix
  5. 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

  1. Review staged changes: git diff --cached
  2. Verify nothing unintended is included
  3. Run tests if touching logic
  4. Check commit message follows format

スコア

総合スコア

55/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です