Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
fandhe-ai avatar

Create Commit

  • 211 installs
  • 1 repo stars
  • Updated August 2, 2026
  • fandhe-ai/agent-cli-skills

Helps with git & pull requests tasks.

About

create-commit is a Claude Code skill for git & pull requests. It helps solo builders move faster with AI-assisted development.

  • create-commit
  • Git & Pull Requests
  • AI-coding skill

Create Commit by the numbers

  • 211 all-time installs (skills.sh)
  • Ranked #174 of 733 Git & Pull Requests skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/fandhe-ai/agent-cli-skills --skill create-commit

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs211
repo stars1
Last updatedAugust 2, 2026
Repositoryfandhe-ai/agent-cli-skills

What it does

Helps with git & pull requests tasks.

Files

SKILL.mdMarkdownGitHub ↗

create-commit

変更内容を分析して Conventional Commits 形式でコミットを作成します。

フロー

Step 1: 変更内容を確認する

git status
git diff --staged

staged がない場合は git diff も確認してユーザーに staging を案内する。

Step 2: Conventional Commits type を決定する

type用途
feat新機能
fixバグ修正
docsドキュメントのみの変更
refactor機能変更なしのコードリファクタリング
testテストの追加・修正
choreビルドプロセス・補助ツール等の変更
styleコードスタイルのみの変更(空白、フォーマット等)
buildビルドシステムや外部依存関係の変更
ciCI 設定の変更
perfパフォーマンス改善

Step 3: scope を推定する

変更ファイルのパスから scope を推定する。 複数にまたがる場合は省略可。

Step 4: コミットメッセージを生成してユーザーに確認する

フォーマット: type(scope): subject

例:

feat(auth): ソーシャルログイン機能を追加
fix(api): レスポンスのエラーハンドリングを修正
refactor(ui): コンポーネント構造を整理

ユーザーに提案して確認を取る。

Step 5: コミットを実行する

git commit -m "$(cat <<'EOF'
type(scope): subject

Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"

重要: --no-verify は絶対に使用しない(pre-commit フックを迂回しない)。

検証

コミット完了後、以下で確認する。

git log --oneline -3
  • 最新コミットのメッセージが type(scope): subject 形式になっているか確認する
  • git show --stat HEAD で変更ファイルの一覧が意図通りかを確認する

よくある失敗

問題回避策
複数の関心事を 1 コミットに混ぜる関心事ごとに git add -p で staging を分けて別コミットにする
type を誤選定する(バグ修正に feat、機能追加に fixStep 2 の type 表を参照し、差分の意図を優先して選ぶ
--no-verify でフックを回避しようとするフック失敗の原因を調査・修正してから再コミットする(回避は禁止)
件名が 72 文字を超えるscope を省略するか subject を短縮する。詳細は body に書く

注意事項

  • Breaking change がある場合は ! を付ける: feat!: ... または body に BREAKING CHANGE: を記述
  • 件名は命令形・現在形で記述(日本語可)
  • 件名は 72 文字以内
  • .env や認証情報ファイルが含まれる場合は警告してコミットを中止する

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.