Analyzes staged git changes and generates structured Japanese Conventional Commits messages.
Install
mkdir -p .claude/skills/commit-imamachi-n && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16760" && unzip -o skill.zip -d .claude/skills/commit-imamachi-n && rm skill.zipInstalls to .claude/skills/commit-imamachi-n
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
ステージ済みの変更内容を分析し、日本語の Conventional Commits 形式でコミットメッセージを作成してコミットする。Key capabilities
- →Analyze staged changes using `git status`, `git diff --cached --stat`, and `git diff --cached`
- →Confirm with the user about including unstaged changes
- →Create a commit message following Conventional Commits format in Japanese
- →Select appropriate emoji and type for the commit message
- →Execute the commit with the generated message
How it works
The skill analyzes staged changes, optionally confirms unstaged files with the user, then generates a Japanese commit message following Conventional Commits standards, and executes the `git commit` command.
Inputs & outputs
When to use commit
- →Analyze staged changes
- →Generate commit message
- →Commit changes
About this skill
コミットスキル
ステージ済みの変更を分析し、日本語でコミットメッセージを作成してコミットする。
手順
Step 1: 変更内容の把握
以下の git コマンドを並列で実行して、コミット対象の変更を把握する。
git statusで未追跡ファイル・ステージ済みファイルを確認するgit diff --cached --statでステージ済みの変更サマリーを確認するgit diff --cachedでステージ済みの差分詳細を確認するgit log --oneline -5で直近のコミットメッセージのスタイルを確認する
Step 2: ステージされていない変更の確認
ステージされていない変更がある場合は、ユーザーに以下を確認する:
- そのファイルもコミットに含めるか
- 含める場合は
git add <ファイル名>で個別にステージする(git add .は使わない)
Step 3: コミットメッセージの作成
以下のルールに従ってコミットメッセージを作成する。
フォーマット
<emoji><type>: <日本語の要約(1行目)>
<本文(任意): 変更の背景・理由を日本語で2〜3行>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
type の選び方
| type | 絵文字 | 使い分け |
|---|---|---|
| feat | ✨ | 新機能の追加・既存機能の拡張 |
| fix | 🐛 | バグ修正 |
| docs | 📝 | ドキュメントのみの変更 |
| refactor | ♻️ | リファクタリング(機能変更なし) |
| chore | 🔧 | ビルド設定・依存関係・CI など |
| style | 💄 | フォーマット修正(コードの意味に影響なし) |
| test | ✅ | テストの追加・修正 |
メッセージの書き方ルール
- 1行目(要約)は日本語で簡潔に書く
- 1行目は「何をしたか」を書く(例: 「✨feat: Bedrock AgentCore の CDK サンプルを追加」)
- 本文は「なぜその変更をしたか」を書く
- 本文では箇条書き(
-)を使って変更点を列挙する .env、認証情報、シークレットを含むファイルはコミットしない- ユーザーから
$ARGUMENTSで補足説明があればメッセージに反映する
Step 4: コミットの実行
- HEREDOC 形式でコミットメッセージを渡してコミットする
git commit -m "$(cat <<'EOF'
<コミットメッセージ>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
EOF
)"
- コミット後に
git statusで成功を確認する - pre-commit フックで失敗した場合は、問題を修正して新しいコミットを作成する(
--amendは使わない)
コミットしない場合
- ステージ済みの変更がない場合はコミットせず、ユーザーに報告する
.envや認証情報ファイルがステージされている場合は警告してコミットしない
禁止事項
git pushは実行しない(ユーザーが明示的に指示した場合のみ)--amendは使わない--no-verifyは使わないgit add .やgit add -Aは使わない- git config の変更は行わない
When not to use it
- →When there are no staged changes to commit
- →When the user wants to push changes directly without committing
Limitations
- →The skill does not perform `git push`.
- →The skill does not allow `--amend` or `--no-verify` options for `git commit`.
How it compares
This skill automates the creation of structured, Japanese-language Conventional Commits messages based on staged changes, ensuring consistency and adherence to standards, unlike manual commit message writing.
Compared to similar skills
commit side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| commit (this skill) | 0 | 6mo | Review | Beginner |
| run-nx-generator | 5 | 3mo | Review | Intermediate |
| git-commit | 11 | 7mo | Review | Beginner |
| morph-search | 9 | 7mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by Imamachi-n
View all by Imamachi-n →You might also like
run-nx-generator
nrwl
Run Nx generators with prioritization for workspace-plugin generators. Use this when generating code, scaffolding new features, or automating repetitive tasks in the monorepo.
git-commit
github
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
morph-search
parcadei
Fast codebase search via WarpGrep (20x faster than grep)
upgrading-expo
sickn33
Upgrade Expo SDK versions
continue-implementation
LibPDF-js
Continue implementing a spec from a previous session
fix-dependabot-prs
bannzai
dependabotから上がってきた複数のPRを一括で解決し、まとめPRを作成する。dependabotのPR対応を依頼された時に使用。