commit
変更をコミット。差分を分析し、リポジトリのスタイルに合わせたコミットメッセージを自動生成する。
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Commit
変更をコミットします。
手順
1. 状態確認
以下を並列実行:
git status
git diff
git diff --cached
git log -10 --oneline --no-decorate
2. ステージング
変更がある場合、関連ファイルをステージング:
git add <files>
除外対象:
- シークレット(.env, credentials.json 等)
- 一時ファイル(*.log, *.tmp 等)
3. 変更内容の理解
-
git diff --cached --name-onlyで変更ファイルを確認 - 主要ファイルを Read で読み取り
- 変更の目的・影響範囲を把握
4. コミット実行
メッセージ要件:
- 変更の「why」に焦点(1〜2文)
- 適切なプレフィックス: feat, fix, refactor, docs, chore 等
- リポジトリの既存スタイルに準拠
git commit -m "$(cat <<'EOF'
<prefix>: <簡潔な説明>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
EOF
)"
5. 確認
git status
git log -1 --stat
完了報告
- コミットメッセージ
- 変更ファイル数
- 推奨する次のアクション(push / PR作成)
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!