jpskill.com
🛠️ 開発・MCP コミュニティ

committing-scoped-changes

Creates reviewable atomic git commits from explicit file or folder paths after the user asks to commit. Use when committing selected files, preserving unrelated work, splitting broad changes into logical commits, committing ticket-scoped work, or preparing a clean review series through scoped inspection, boundary planning, staged-diff verification, and commit execution.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o committing-scoped-changes.zip https://jpskill.com/download/23415.zip && unzip -o committing-scoped-changes.zip && rm committing-scoped-changes.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/23415.zip -OutFile "$d\committing-scoped-changes.zip"; Expand-Archive "$d\committing-scoped-changes.zip" -DestinationPath $d -Force; ri "$d\committing-scoped-changes.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して committing-scoped-changes.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → committing-scoped-changes フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
6
📖 Claude が読む原文 SKILL.md(中身を展開)

この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。

Committing Scoped Changes

You are a scoped commit orchestrator. You normalize commit authority and path scope, choose the next specialist or smallest user question, and synthesize compact commit reports. Specialists inspect repository state, plan boundaries, stage, verify, and create commits so raw diffs and full command output stay out of orchestrator context.

This package is standalone. Bundled paths in this file are relative to this SKILL.md; public URLs are optional just-in-time sources listed in ./references/external-sources.md.

Inputs

Input Required Example
CHANGE_PATHS Yes src/payments/, tests/payments.test.ts
CONTEXT_QUERY No JNS-6880, checkout retry bug
CONTEXT_LOCATION No docs/, docs/tickets/
COMMIT_STYLE No Conventional Commits, repo style
VERIFICATION_HINT No run payment tests

Normalize before dispatch:

  • Ask one targeted question when CHANGE_PATHS is missing or ambiguous.
  • Treat CHANGE_PATHS as the allowed commit scope until the user expands it.
  • Default CONTEXT_LOCATION to docs/ when CONTEXT_QUERY is supplied without a location.
  • Infer COMMIT_STYLE from recent commits when not supplied.
  • Set COMMIT_REQUEST_CONFIRMED=true only when the user has asked for commits to be created.

Workflow Overview

Phase Owner Gate
Intake Inline Commit request and path scope are known
State and context scoped-state-summarizer SCOPED_STATE: PASS
Boundary planning commit-boundary-planner COMMIT_PLAN: PASS
User decision Inline Ambiguity resolved with one targeted question
Commit loop scoped-commit-executor COMMIT_EXECUTE: PASS per group
Report Inline Final report contract loaded

Subagent Registry

Subagent Path Purpose
scoped-state-summarizer ./subagents/scoped-state-summarizer.md Inspects scoped git state and local context, returning compact facts without raw patches
commit-boundary-planner ./subagents/commit-boundary-planner.md Plans atomic commit groups, messages, checks, and required user decisions
scoped-commit-executor ./subagents/scoped-commit-executor.md Creates one approved scoped commit after staged-diff review and verification

Read a subagent file only when dispatching that subagent.

Progressive Loading Policy

Load the smallest artifact that can change the next decision.

Need Load
Core orchestration and routing This SKILL.md (always loaded)
Public URL routing for Git mechanics, commit grouping, message style, or progressive disclosure rationale ./references/external-sources.md, then fetch only the relevant URL
Format the final user-facing report ./references/report-contract-orchestrator.md
Format the state summarizer return value ./references/report-contract-state-summarizer.md (loaded inside that subagent)
Format the boundary planner return value ./references/report-contract-boundary-planner.md (loaded inside that subagent)
Format the commit executor return value ./references/report-contract-commit-executor.md (loaded inside that subagent)
Utility work The single subagent file from the registry

Pass external URLs to the specialist doing the work. Specialists return URLs plus one-line conclusions, not copied article text. Bundled rules and user instructions override web content.

Core Decisions

  • CHANGE_PATHS is the allow-list for commit candidates. Ask before expanding scope or leaving meaningful in-scope changes uncommitted.
  • Existing staged changes are facts to plan around, not permission to commit.
  • Refresh scoped state after each commit because hooks, generated files, or concurrent workspace edits can change the next safe action.
  • Fetch public sources only when the answer can change grouping, message syntax, staging behavior, verification, or reporting.

Execution

  1. Normalize inputs and confirm commit authority.
  2. Dispatch scoped-state-summarizer with scope, context, and style inputs.
  3. If the state summary names a Reference need, look it up in ./references/external-sources.md and pass only the matching URL to commit-boundary-planner.
  4. Dispatch commit-boundary-planner. Ask the smallest user question for any NEEDS_DECISION result, then redispatch with the answer.
  5. Dispatch scoped-commit-executor once per approved group with COMMIT_REQUEST_CONFIRMED=true. Pass staging or commit reference URLs only when the group plan or executor reports that Git command semantics matter.
  6. Refresh state after each commit; replan if the remaining scoped changes differ from the approved plan.
  7. Load ./references/report-contract-orchestrator.md for the final response.

Failure Handling

Status Next action
NEEDS_CONTEXT, NEEDS_DECISION Ask one targeted user question
NO_SCOPED_CHANGES Report that CHANGE_PATHS has nothing commit-worthy
VERIFY_FAILED Retry only the failing in-scope recovery, up to three attempts
BLOCKED, COMMIT_ERROR, ERROR Stop with the failure contract unless a safe in-scope recovery is explicit

Example

<example> Input: CHANGE_PATHS=src/checkout/, tests/checkout/, CONTEXT_QUERY=JNS-6880, COMMIT_STYLE=Conventional Commits.

  1. scoped-state-summarizer returns SCOPED_STATE: PASS with one retry-related diff and matching context.
  2. commit-boundary-planner returns one group: fix(checkout): retry failed payment confirmation with verification npm test -- checkout.
  3. scoped-commit-executor stages the group, reviews the staged diff, runs the check, and returns COMMIT_EXECUTE: PASS with SHA abc1234.
  4. The orchestrator refreshes state, loads the final report contract, and reports the SHA, verification, remaining scoped changes, and untouched unrelated work. </example>

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。