
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-commitAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 211 |
|---|---|
| repo stars | ★ 1 |
| Last updated | August 2, 2026 |
| Repository | fandhe-ai/agent-cli-skills ↗ |
What it does
Helps with git & pull requests tasks.
Files
create-commit
変更内容を分析して Conventional Commits 形式でコミットを作成します。
フロー
Step 1: 変更内容を確認する
git status
git diff --stagedstaged がない場合は git diff も確認してユーザーに staging を案内する。
Step 2: Conventional Commits type を決定する
| type | 用途 |
|---|---|
feat | 新機能 |
fix | バグ修正 |
docs | ドキュメントのみの変更 |
refactor | 機能変更なしのコードリファクタリング |
test | テストの追加・修正 |
chore | ビルドプロセス・補助ツール等の変更 |
style | コードスタイルのみの変更(空白、フォーマット等) |
build | ビルドシステムや外部依存関係の変更 |
ci | CI 設定の変更 |
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、機能追加に fix) | Step 2 の type 表を参照し、差分の意図を優先して選ぶ |
--no-verify でフックを回避しようとする | フック失敗の原因を調査・修正してから再コミットする(回避は禁止) |
| 件名が 72 文字を超える | scope を省略するか subject を短縮する。詳細は body に書く |
注意事項
- Breaking change がある場合は
!を付ける:feat!: ...または body にBREAKING CHANGE:を記述 - 件名は命令形・現在形で記述(日本語可)
- 件名は 72 文字以内
.envや認証情報ファイルが含まれる場合は警告してコミットを中止する