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.zip

Installs 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 形式でコミットメッセージを作成してコミットする。
66 charsno explicit “when” trigger
Beginner

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

You give it
Staged changes in a Git repository
You get back
A Git commit with a Japanese Conventional Commits message

When to use commit

  • Analyze staged changes
  • Generate commit message
  • Commit changes

About this skill

コミットスキル

ステージ済みの変更を分析し、日本語でコミットメッセージを作成してコミットする。

手順

Step 1: 変更内容の把握

以下の git コマンドを並列で実行して、コミット対象の変更を把握する。

  1. git status で未追跡ファイル・ステージ済みファイルを確認する
  2. git diff --cached --stat でステージ済みの変更サマリーを確認する
  3. git diff --cached でステージ済みの差分詳細を確認する
  4. 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: コミットの実行

  1. HEREDOC 形式でコミットメッセージを渡してコミットする
git commit -m "$(cat <<'EOF'
<コミットメッセージ>

Co-Authored-By: Claude Opus 4.6 <[email protected]>
EOF
)"
  1. コミット後に git status で成功を確認する
  2. 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.

SkillInstallsUpdatedSafetyDifficulty
commit (this skill)06moReviewBeginner
run-nx-generator53moReviewIntermediate
git-commit117moReviewBeginner
morph-search97moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry