scope-creep-detector
Что он делает
Скилл сравнивает набор изменений в коде с одной строкой о цели, которую вы даёте. Он отмечает посторонние файлы, крупные правки и рискованные изменения, чтобы исправление оставалось исправлением. Он нужен разработчикам, которым важны сфокусированные и понятные для ревью изменения.
Когда использовать
- ✓Когда вы спрашиваете, не вышло ли изменение за рамки исправления, которое должно было быть сделано.
- ✓Когда pull request кажется слишком широким и вы хотите понять, что вынести отдельно.
- ✓Когда изменение затрагивает зависимости, публичные имена, конфигурацию или файлы сборки, которых вы не ожидали.
Ссылка на скилл
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/scope-creep-detector/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Моё изменение должно исправить падение парсера. Проверь, не затронул ли я того, что трогать не стоило, и скажи, что вынести отдельно.”
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
Частые вопросы
Меняет ли он мой код?
Нет. Он анализирует изменения и не делает правок, коммитов или изменений в ветках.
Что если я не укажу цель?
Скилл возьмёт название вашей ветки, но попросит однострочную цель, если название неясное.
Проверяет ли он, правильный ли мой код?
Нет. Он смотрит на масштаб изменения, а не на правильность, безопасность или качество тестов.
Подробности
Оригинальное описание автора
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
- Обновлён
- 22.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
advisor-orchestrator-worker
144kПомогает агенту разбить очень большую задачу между командой ИИ-моделей: сильная модель планирует и проверяет, а более дешёвые выполняют работу.
commit-archaeologist
144kПомогает агенту объяснить, зачем нужен фрагмент кода, читая локальную историю git: кто его добавил и что менялось потом.
dependency-doctor
144kПомогает агенту проверить файл requirements.txt, pyproject.toml или package.json на типичные проблемы с зависимостями и предложить небольшие исправления.
first-reader
144kПомогает агенту проверить черновик, имитируя, как его переживают настоящие читатели: где они могут потерять интерес и что запомнят.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.