について
このClaudeスキルは、Goプロジェクト向けにConventional Commits形式に準拠した構造化されたgitコミットメッセージを生成します。変更のコミット時、PR準備時、コミット履歴の確認時に、適切にスコープが設定されたアトミックなコミットと明確な説明を作成します。コミット関連タスクにご利用ください。ただし、変更履歴の生成やコードレビューには、専用のスキルが用意されていますので、そちらをご利用ください。
クイックインストール
Claude Code
推奨npx skills add eduardo-sl/go-agent-skills -a claude-code/plugin add https://github.com/eduardo-sl/go-agent-skillsgit clone https://github.com/eduardo-sl/go-agent-skills.git ~/.claude/skills/git-commitこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
Git Commit Standards
Commits tell the story of your codebase. A good commit history is worth more than any amount of documentation — because it's always up to date.
1. Conventional Commits Format
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
Types:
| Type | When |
|---|---|
feat | New feature (correlates with MINOR in semver) |
fix | Bug fix (correlates with PATCH in semver) |
refactor | Code change that neither fixes a bug nor adds a feature |
perf | Performance improvement |
test | Adding or correcting tests |
docs | Documentation changes only |
chore | Build process, tooling, dependencies |
ci | CI/CD configuration changes |
style | Formatting, whitespace (not CSS — code formatting) |
Scope:
Use the package name or module area:
feat(auth): add JWT refresh token rotation
fix(store/postgres): handle connection pool exhaustion
refactor(service): extract validation into dedicated package
test(handler): add table-driven tests for user endpoints
chore(deps): bump go.uber.org/zap to v1.27.0
Breaking changes:
feat(api)!: change pagination from offset to cursor-based
BREAKING CHANGE: The `offset` and `limit` query parameters are replaced
by `cursor` and `page_size`. All existing clients must migrate.
2. Commit Message Rules
Subject line:
- Imperative mood: "add feature", NOT "added feature" or "adds feature"
- Lowercase after type prefix
- No period at the end
- Max 72 characters
- Must describe WHAT changed, not HOW
Body (when needed):
- Blank line between subject and body
- Explain WHY the change was necessary
- Explain WHAT is different at a high level
- Wrap at 72 characters
Footer:
- Reference issues:
Fixes #123,Closes #456,Refs #789 - Co-authors:
Co-authored-by: Name <email> - Breaking changes:
BREAKING CHANGE: description
3. Examples
Simple change:
fix(handler): return 404 instead of 500 for missing user
With body:
refactor(service): replace manual SQL with sqlx named queries
The raw SQL string concatenation for dynamic WHERE clauses was
error-prone and difficult to maintain. sqlx named queries provide
the same flexibility with automatic parameter binding.
No behavior change — all existing tests pass.
Breaking change:
feat(config)!: migrate from YAML to environment variables
BREAKING CHANGE: Configuration is now loaded from environment
variables instead of config.yaml. See README.md for the full
list of supported variables.
Closes #234
Dependency update:
chore(deps): upgrade pgx to v5.5.0
Picks up connection pool improvements and fixes for
COPY protocol handling. See release notes:
https://github.com/jackc/pgx/releases/tag/v5.5.0
4. Atomic Commits
Each commit should be ONE logical change that:
- Compiles on its own (
go build ./...passes) - Tests pass (
go test ./...passes) - Can be reverted independently without breaking other changes
Split large changes:
# ❌ Bad — one commit doing everything
feat(user): add user management with CRUD, validation, auth, and tests
# ✅ Good — atomic, reviewable commits
feat(domain): add User entity and validation rules
feat(store): implement PostgreSQL user repository
feat(service): add user service with create and get operations
feat(handler): add REST endpoints for user management
test(service): add table-driven tests for user creation
docs(api): document user endpoints in OpenAPI spec
5. Pre-Commit Verification
Before committing, run:
# Format and lint
goimports -w .
golangci-lint run
# Build
go build ./...
# Test
go test -race ./...
# Tidy modules
go mod tidy
If any step fails, fix before committing. Never commit broken code with "will fix later" — you won't.
6. Commit Workflow
# Stage specific files (not git add .)
git add internal/service/user.go
git add internal/service/user_test.go
# Review staged changes
git diff --staged
# Commit with message
git commit -m "feat(service): add user creation with email validation"
# Or use editor for longer messages
git commit # opens $EDITOR
Interactive rebase before PR:
# Clean up commit history before opening PR
git rebase -i main
# Squash fixup commits
# Reword unclear messages
# Reorder for logical flow
7. What NOT to Commit
- Generated files (
*.pb.gounless required,mocks/) - IDE configuration (
.idea/,.vscode/— use global gitignore) - OS files (
.DS_Store,Thumbs.db) - Binaries and build artifacts
.envfiles with secretsvendor/(unless explicitly required by project policy)
GitHub リポジトリ
よくある質問
git-commit Skillとは何ですか?
git-commit はeduardo-sl が作成した Claude Skillです。Skillは、Claudeが必要に応じて読み込む指示とリソースをまとめ、追加の指示なしで git-commit に関連するタスクを実行できるようにします。
git-commit をインストールするには?
このページのインストールコマンドを使用してください。git-commit をプラグインとして Claude Code に追加するか、リポジトリを skills ディレクトリにクローンし、Claudeを再起動してSkillを読み込みます。
git-commit はどのカテゴリに属しますか?
git-commit は メタ カテゴリに属します。
git-commit は無料で利用できますか?
はい。git-commit は AIMCP に掲載されており、無料でインストールできます。
関連スキル
このスキルは、Content Collections(Markdown/MDXファイルを型安全なデータコレクションに変換するTypeScriptファーストのツール)の本番環境でテストされた設定を提供します。Zodバリデーションによる型安全性を実現し、ブログ、ドキュメントサイト、コンテンツ重視のVite + Reactアプリケーション構築時にご利用ください。Viteプラグインの設定、MDXコンパイルから、デプロイ最適化、スキーマバリデーションまで、すべてを網羅しています。
このスキルは、開発者がPolymarket予測市場プラットフォームを活用したアプリケーション構築を可能にします。API統合による取引や市場データの取得に加え、WebSocketを介したリアルタイムデータストリーミングにより、ライブ取引や市場活動を監視できます。取引戦略の実装や、ライブ市場更新を処理するツールの作成にご利用ください。
このスキルは、開発者がコマンド、ファイル、LSP操作など25種類以上のイベントタイプにフックするOpenCodeプラグインを作成することを支援します。JavaScript/TypeScriptモジュール向けに、プラグイン構造、イベントAPI仕様、および実装パターンを提供します。カスタムイベント駆動ロジックでOpenCode AIアシスタントのライフサイクルをインターセプト、監視、または拡張する必要がある場合にご利用ください。
SGLangは、高性能なLLMサービングフレームワークであり、RadixAttentionプレフィックスキャッシュを活用したJSON、正規表現、エージェントワークフロー向けの高速で構造化された生成を特長とします。特にプレフィックスが繰り返されるタスクにおいて、大幅に高速な推論を実現し、複雑な構造化出力やマルチターン対話に最適です。制約付きデコードが必要な場合や、広範なプレフィックス共有を伴うアプリケーションを構築する場合は、vLLMなどの代替案ではなくSGLangを選択してください。
