commit-work
変更内容をレビュー・ステージングし、論理的なcommitに分割、Conventional Commitsに沿って明確なメッセージを作成するなど、質の高いGit commitを作成するSkill。
📜 元の英語説明(参考)
Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.
🇯🇵 日本人クリエイター向け解説
変更内容をレビュー・ステージングし、論理的なcommitに分割、Conventional Commitsに沿って明確なメッセージを作成するなど、質の高いGit commitを作成するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o commit-work.zip https://jpskill.com/download/20844.zip && unzip -o commit-work.zip && rm commit-work.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/20844.zip -OutFile "$d\commit-work.zip"; Expand-Archive "$d\commit-work.zip" -DestinationPath $d -Force; ri "$d\commit-work.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
commit-work.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
commit-workフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 2
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] commit-work
コミット作業
目標
レビューしやすく、安全にデプロイできるコミットを作成します。
- 意図された変更のみが含まれていること
- コミットが論理的にスコープ化されていること(必要に応じて分割する)
- コミットメッセージが変更内容と理由を記述していること
尋ねるべきインプット(不足している場合)
- シングルコミットか複数コミットか?(不明な場合は、関連性のない変更がある場合、複数の小さなコミットをデフォルトとします。)
- コミットスタイル:Conventional Commits が必須です。
- ルール:件名の最大長、必須スコープなど。
ワークフロー(チェックリスト)
- ステージング前に作業ツリーを検査する
git statusgit diff(unstaged)- 多くの変更がある場合:
git diff --stat
- コミットの境界を決定する(必要に応じて分割する)
- 分割基準:機能 vs リファクタリング、バックエンド vs フロントエンド、フォーマット vs ロジック、テスト vs プロダクションコード、依存関係の更新 vs 動作変更。
- 1つのファイルに複数の変更が混在している場合は、パッチステージングの使用を計画します。
- 次のコミットに属するものだけをステージングする
- 混在する変更にはパッチステージングを推奨します:
git add -p - ハンク/ファイルをアンステージングするには:
git restore --staged -pまたはgit restore --staged <path>
- 混在する変更にはパッチステージングを推奨します:
- 実際にコミットされる内容を確認する
git diff --cached- 健全性チェック:
- シークレットやトークンがないこと
- 意図しないデバッグログがないこと
- 無関係なフォーマットの変更がないこと
- ステージングされた変更を1〜2文で記述する(メッセージを記述する前に)
- 「何が変わったか?」+「なぜか?」
- きれいに記述できない場合、コミットが大きすぎるか混在している可能性があります。ステップ2に戻ってください。
- コミットメッセージを記述する
- Conventional Commits を使用します(必須):
type(scope): short summary- 空行
- 本文(何/なぜ、実装日記ではない)
- 必要に応じてフッター(BREAKING CHANGE)
- 複数行のメッセージにはエディタを推奨します:
git commit -v - 必要に応じて
references/commit-message-template.mdを使用してください。
- Conventional Commits を使用します(必須):
- 最小限の関連する検証を実行する
- 次に進む前に、リポジトリの最も高速で意味のあるチェック(単体テスト、lint、またはビルド)を実行します。
- 作業ツリーがクリーンになるまで、次のコミットに対して繰り返す
成果物
以下を提供してください。
- 最終的なコミットメッセージ
- コミットごとの短い要約(何/なぜ)
- ステージング/レビューに使用したコマンド(最低限:
git diff --cached、および実行したテスト)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Commit work
Goal
Make commits that are easy to review and safe to ship:
- only intended changes are included
- commits are logically scoped (split when needed)
- commit messages describe what changed and why
Inputs to ask for (if missing)
- Single commit or multiple commits? (If unsure: default to multiple small commits when there are unrelated changes.)
- Commit style: Conventional Commits are required.
- Any rules: max subject length, required scopes.
Workflow (checklist)
- Inspect the working tree before staging
git statusgit diff(unstaged)- If many changes:
git diff --stat
- Decide commit boundaries (split if needed)
- Split by: feature vs refactor, backend vs frontend, formatting vs logic, tests vs prod code, dependency bumps vs behavior changes.
- If changes are mixed in one file, plan to use patch staging.
- Stage only what belongs in the next commit
- Prefer patch staging for mixed changes:
git add -p - To unstage a hunk/file:
git restore --staged -porgit restore --staged <path>
- Prefer patch staging for mixed changes:
- Review what will actually be committed
git diff --cached- Sanity checks:
- no secrets or tokens
- no accidental debug logging
- no unrelated formatting churn
- Describe the staged change in 1-2 sentences (before writing the message)
- "What changed?" + "Why?"
- If you cannot describe it cleanly, the commit is probably too big or mixed; go back to step 2.
- Write the commit message
- Use Conventional Commits (required):
type(scope): short summary- blank line
- body (what/why, not implementation diary)
- footer (BREAKING CHANGE) if needed
- Prefer an editor for multi-line messages:
git commit -v - Use
references/commit-message-template.mdif helpful.
- Use Conventional Commits (required):
- Run the smallest relevant verification
- Run the repo's fastest meaningful check (unit tests, lint, or build) before moving on.
- Repeat for the next commit until the working tree is clean
Deliverable
Provide:
- the final commit message(s)
- a short summary per commit (what/why)
- the commands used to stage/review (at minimum:
git diff --cached, plus any tests run)
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,484 bytes)
- 📎 README.md (4,921 bytes)