Skip to content
Back to skills

Commit Message Rules

ASecurity

Gitコミットメッセージの作成ガイドライン。コミット作成時、`git commit`実行時、またはユーザーがコミットメッセージの書き方について質問した際に使用する。日本語でのコミットメッセージ作成ルールを提供。

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 8, 2026
developmentgitapi

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill commit-message-rules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit Message Rules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commit Message Rules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-commit-message-rules/badge)](https://www.skillsdirectory.com/skills/majiayu000-commit-message-rules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: commit-message-rules
description: Gitコミットメッセージの作成ガイドライン。コミット作成時、`git commit`実行時、またはユーザーがコミットメッセージの書き方について質問した際に使用する。日本語でのコミットメッセージ作成ルールを提供。
---

# コミットメッセージルール

## 基本ルール

1. **コミットメッセージは日本語で記述する**
2. 1行目は変更内容の要約(50文字以内を推奨)
3. 必要に応じて空行を挟んで詳細を記述

## フォーマット

```
<種別>: <変更内容の要約>

<詳細な説明(任意)>
```

## 種別(プレフィックス)

| プレフィックス | 用途 |
|---------------|------|
| `feat` | 新機能の追加 |
| `fix` | バグ修正 |
| `docs` | ドキュメントのみの変更 |
| `style` | コードの意味に影響しない変更(空白、フォーマット等) |
| `refactor` | バグ修正や機能追加を伴わないコード変更 |
| `perf` | パフォーマンス改善 |
| `test` | テストの追加・修正 |
| `chore` | ビルドプロセスやツールの変更 |

## 良い例

```
feat: ユーザー認証機能を追加

JWTトークンを使用した認証を実装。
ログイン/ログアウトAPIエンドポイントを追加。
```

```
fix: パスワードリセット時のエラーを修正
```

```
refactor: データベース接続処理を共通化
```

## 悪い例

- `update` - 何を更新したか不明
- `fix bug` - どのバグか不明
- `WIP` - 作業中のコミットは避ける
- 英語のメッセージ - 日本語で記述すること

## 注意事項

- コミット前に `git diff` で変更内容を確認
- 1つのコミットには1つの論理的な変更のみ含める
- 「なぜ」変更したかを重視して記述

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.