scope-creep-detector
できること
このスキルは、コードの変更の集合を、あなたが示した1行の目的と比べます。無関係なファイル、大きな編集、危険な変更に印を付けるので、修正は修正のままになります。焦点の定まった、レビューしやすい変更を求める開発者向けです。
使う場面
- ✓変更が、意図した修正を超えて広がっていないかを尋ねるとき。
- ✓プルリクエストが広すぎて、どこを切り出すべきか知りたいとき。
- ✓依存関係、公開の名前、設定、ビルドファイルなど、予期していない変更に触れていると思うとき。
スキルのリンク
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/scope-creep-detector/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私の変更は、パーサーのクラッシュを直すためのものです。触るべきでないものに触れていないかを確認し、切り出すべきものを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、あなたのコードの変更を、あなたが述べた目的と比べ、無関係なファイルや依存関係の編集などの兆候を探します。そして、各部分を残すか、切り出すか、正当化するかを提案します。あなたのファイルは変更しません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Scope Creep Detector
A one-line fix should not require a reviewer to reverse-engineer fourteen files across three subsystems. This skill compares a git diff with its stated intent, surfaces scope signals, and turns them into keep, split, or justify decisions.
Everything runs locally. The script makes no network calls and does not change the working tree, index, commits, or branches.
When to use
- Before opening a pull request whose diff may have grown beyond its intent
- When a bug fix touches unexpected files or subsystems
- When the user asks whether staged changes are too broad
- When a diff includes dependency, public API, config, CI, or build changes
- When the user wants a concrete split plan for a mixed change
When not to use
- Formatting code, running a linter, or writing a commit message
- Reviewing correctness, security, or test quality inside an agreed scope
- Measuring historical project growth across many commits
- Editing or reverting files without the user's approval
Establish the intent
Use the user's one-line intent when available. Keep it concrete, such as
fix null dereference in parser or add retry limit to webhook delivery.
If no intent was given, the script falls back to the current branch name. If that name is generic, detached, or unrelated to the work, ask for one line of intent before treating relatedness as meaningful.
Run the classifier
Run from this skill directory and point --repo at the target repository.
Working tree diff:
python3 scripts/scope_creep.py --repo /path/to/repo \
--intent "fix null dereference in parser" --json
Staged diff:
python3 scripts/scope_creep.py --repo /path/to/repo --staged \
--intent "fix null dereference in parser" --json
Branch diff against a merge base:
python3 scripts/scope_creep.py --repo /path/to/repo --base main \
--intent "fix null dereference in parser" --json
Saved diff or stdin:
python3 scripts/scope_creep.py --diff change.diff --intent "parser fix" --json
git diff --staged | python3 scripts/scope_creep.py --diff - \
--intent "parser fix" --json
Use --hunk-threshold only when the repository has a documented reason to
change the default churn threshold. Do not tune the threshold merely to make a
warning disappear.
Interpret the JSON
Read references/scope-signals.md before making a recommendation. Treat the classifier as triage evidence, not proof of authorial intent.
in_scope: file paths with at least one intent/path keyword overlaplikely_creep: paths without overlap, with the reason and detected signalsnew_deps: dependencies introduced in supported manifest formatsapi_renames: nearby removed and added public function or class declarationsconfig_edits: CI, container, build, YAML, and TOML changesstats: churn, subsystem counts, oversized hunks, and formatting-only files
Empty arrays are evidence too. Say that no signal was detected, not that the diff is guaranteed to be in scope.
Recommend keep, split, or justify
Give every item in likely_creep one disposition:
- Keep when the path is necessary for the stated intent and the connection is direct. Explain the connection in one sentence.
- Split when it can land independently, belongs to another subsystem, or introduces a dependency, API rename, config edit, or large hunk that is not required for the intent. Name the files or hunks for the follow-up change.
- Justify when a cross-cutting edit cannot be separated safely. State the invariant or build constraint that requires it and call out reviewer risk.
Prefer split when evidence is ambiguous. Never claim that a zero overlap score proves a file is unrelated. Path vocabulary is a cheap, deterministic proxy.
Write the scope report
Use this compact structure:
- Intent and diff source
- Files and subsystems touched, with total additions and deletions
- In-scope changes
- Likely creep with signal evidence
- Keep, split, or justify table
- Proposed follow-up grouping, if any
Name file paths and hunk headers. For an oversized mixed hunk, explain that the script cannot split it automatically and describe the smallest coherent edit. Ask before applying any split, revert, staging, or commit operation.
Files
scripts/scope_creep.py: deterministic unified-diff parser and classifierreferences/scope-signals.md: signal definitions, thresholds, and l
よくある質問
私のコードを変えますか?
いいえ。変更を分析するだけで、編集、コミット、ブランチの変更は行いません。
目的を入力しないとどうなりますか?
スキルはブランチ名を使いますが、名前が分かりにくい場合は、1行の目的を尋ねます。
コードが正しいかも確認しますか?
いいえ。見るのは変更の範囲であり、正しさ、セキュリティ、テストの品質は見ません。
詳細
作者による元の説明
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad pull requests, changes that grew beyond a fix, dependency additions, public API renames, config or CI edits, oversized hunks, and formatting-only files. Use when the user asks whether a change grew beyond the fix, a PR is too broad, or what unrelated stuff they touched, and wants keep, split, or justify guidance. Operates locally and offline.
人気
- GitHubのスター
- 144k
- ランキング
- #678
- ライセンス
- Apache-2.0
- 更新日
- 2026/10/22
コメント
- …
このリポジトリの他のスキル
advisor-orchestrator-worker
144k大きな作業を、AIモデルのチームに分担させるのをエージェントが支援します。より強いモデルが計画と確認を行い、より安いモデルが作業をします。
commit-archaeologist
144kローカルのgitの履歴を読み、誰がそのコードを追加したか、後に何が変わったかを示して、コードが存在する理由をエージェントが説明するのを支援します。
dependency-doctor
144krequirements.txt、pyproject.toml、package.jsonの依存関係を、よくある問題について確認し、小さく確認しやすい修正を提案するのをエージェントが支援します。
first-reader
144k実際の読者が体験するように下書きを読み、どこで興味を失うか、何を覚えているかを示して、下書きをテストするのをエージェントが支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。