Skip to content
Back to skills

Creating Git Commit

ASecurity

Git リポジトリのスタイルに合わせてコミットを作成します。ユーザーがコミットを求めたときや、エージェントがコミットするときに必ず使用してください。

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

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill creating-git-commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Creating Git Commit?

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

Security grade badge for Creating Git Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-creating-git-commit/badge)](https://www.skillsdirectory.com/skills/majiayu000-creating-git-commit)

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: personal-creating-git-commit
description: Git リポジトリのスタイルに合わせてコミットを作成します。ユーザーがコミットを求めたときや、エージェントがコミットするときに必ず使用してください。
allowed-tools: Bash(git diff:*), Bash(git log:*), Bash(sed:*), Bash(tr:*), Bash(sort:*), Bash(xargs:*)
---

# Git コミット作成

## ワークフロー

### 1. 情報収集

ステージングされた変更がある場合:

```bash
git diff --staged
git log --oneline -10
```

ステージングされた変更がない場合:

```bash
git diff
git log --oneline -10
```

### 2. 判定

過去のコミット履歴から以下を判定します。判定不可の場合はユーザーに確認してください。

#### 言語判定

| 言語   | パターン           |
| ------ | ------------------ |
| 日本語 | 日本語が含まれる   |
| 英語   | 英語のみが含まれる |
| その他 | 上記以外           |

#### スタイル判定

| スタイル             | パターン           |
| -------------------- | ------------------ |
| Conventional Commits | `feat:`, `fix:` 等 |
| gitmoji              | 絵文字で始まる     |
| シンプル形式         | 上記以外           |

gitmoji の場合、絵文字の形式(Unicode / Shortcode)も判定してください。

#### スコープ判定

過去 10 件にスコープ(例: `feat(auth):` や `✨ (auth):`)が含まれているかを判定します。

含まれている場合、以下のコマンドでスコープ一覧を取得します:

```bash
git log --oneline -100 | sed -n 's/^[a-f0-9]* [^(:]*(\([^)]*\)):.*/\1/p' | tr ',' '\n' | sed 's/^ *//' | sort -u | xargs | sed 's/ /, /g'
```

### 3. コミットメッセージ生成

判定結果に基づいてコミットメッセージを生成します。

- **タイトル(1行目)**: What(何をしたか)を簡潔に、50 文字以内
- **ボディ(本文)**: Why(なぜしたか)を必要に応じて補足
- **コード参照**: コードやパスを表す場合はバッククォートで囲む
- **言語**: 判定した言語に合わせる
- **スタイル**: 判定したスタイルに従う([Conventional Commits](references/conventional-commits.md) / [gitmoji](references/gitmoji.md))
- **スコープ**: スコープ一覧から適切なものを選択(該当する場合)

### 4. コミット作成

生成したメッセージを表示し、コミットを作成します。

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.