К основному содержанию
скилл Claude Code CX Codex Cursor GitHub Copilot

scope-creep-detector — скилл для Claude Code: анализ расширения scope

Сравнивает git diff с заявленным намерением и выявляет файлы, которые не относятся к задаче: лишние зависимости, переименования API, изменения конфигурации и конфликтующие правки. Работает локально, без сети.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add Shubhamsaboo/awesome-llm-apps --skill scope-creep-detector -a claude-code
Открыть на GitHub

Что делает scope-creep-detector

Скилл парсит unified diff и классифицирует каждый файл по признакам: пересечение ключевых слов пути с намерением, добавления зависимостей, публичные переименования, правки CI, YAML, TOML и build-файлов, непомерный размер ханка, форматирование без логики. На выходе — таблица с рекомендациями keep (оставить, если необходимо), split (вынести в отдельный PR) или justify (объяснить связь).

Запускается командой python3 scripts/scope_creep.py с флагами --repo, --intent, --staged или --base. Берёт diff из рабочего дерева, индекса, ветки или файла. Не меняет коммиты и не трогает репозиторий.

Полезен перед открытием PR с дифом, который может выйти за границы: когда баг-фикс трогает неожиданные подсистемы, когда в one-line fix случайно попали изменения зависимостей или конфига, или когда нужен конкретный план разделения смешанного комита.

Какие задачи решает

  • обнаружить, что PR слишком широкий или выходит за рамки intent
  • разделить смешанный коммит на отдельные PR по логике
  • найти лишние правки в зависимостях, API или конфигурации
  • оценить, где нужно оставить хаотичный ханк, а где переделать
  • проверить перед открытием PR, что scope совпадает с описанием

Примеры запросов агенту

  • Проверь, выходит ли мой diff за рамки фикса: `python3 scripts/scope_creep.py --repo . --staged --intent "fix null dereference in parser" --json`
  • Покажи, какие файлы мне нужно вынести в отдельный PR для ветки feature-retry: `python3 scripts/scope_creep.py --repo . --base main --intent "add retry limit to webhook delivery" --json`
  • Проанализируй этот сохранённый diff и скажи, связаны ли изменения с намерением: `python3 scripts/scope_creep.py --diff change.diff --intent "refactor database layer" --json`

Как установить scope-creep-detector

1Через Skills CLI (Vercel)

npx skills add Shubhamsaboo/awesome-llm-apps --skill scope-creep-detector -a claude-code

2Вручную: положить файлы

~/.claude/skills/scope-creep-detector/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/scope-creep-detector/

Из того же набора5

Весь набор →
project-graveyard Shubham Saboo Скилл сканирует локальные папки с пет-проектами, находит причины остановки по истории git и выбирает один репозиторий для завершения. Claude Code CX Codex Cursor +1 2 000установок advisor-orchestrator-worker Shubham Saboo Скилл для разделения большой задачи между несколькими моделями: советник планирует и проверяет, рабочие выполняют параллельно. Пригодится, когда одна модель не справится за один проход или нужно исследовать много вариантов сразу. Claude Code CX Codex Cursor +1 619установок commit-archaeologist Matt Van Horn Восстанавливает причины появления строк или файлов по локальной истории git. Пригодится перед рефакторингом, переписыванием функций или проверкой рисков. Claude Code CX Codex Cursor +1 520установок thinking-out-loud Shubham Saboo Скилл превращает длинный поток мыслей в проверяемый бриф до начала работы. Пригодится, когда идея приходит голосом, с повторами и сменой решений. Claude Code CX Codex Cursor +1 431установок

Похожие

memory-safety-patterns Seth Hobson Скилл помогает писать код на Rust, C++ и C с учётом владения памятью, RAII и управления ресурсами. Подойдёт для системного кода и поиска ошибок памяти. Claude Code CX Codex Cursor 11 746установок shellcheck-configuration Ryan Snodgrass Скилл помогает настраивать и использовать ShellCheck для анализа shell-скриптов. Пригодится для CI/CD, исправления предупреждений и проверки переносимости. Claude Code CX Codex Cursor 11 533установок dependency-upgrade Seth Hobson Скилл помогает планировать крупные обновления зависимостей, проверять совместимость и проводить апгрейд по этапам. Подойдёт для framework-обновлений и breaking changes. Claude Code CX Codex Cursor 11 079установок react-native-best-practices callstackincubator Скилл передаёт агенту правила оптимизации React Native на базе опыта Callstack: от профилирования FPS и TTI до чистки бандла. Помогает устранить лаги анимаций и утечки памяти. Claude Code CX Codex Cursor +1 30 100установок prisma-driver-adapter-implementation prisma Справочник по реализации SQL-адаптеров для Prisma ORM 7. Нужен при работе с транзакциями, savepoint-ами, маппингом значений и обработкой ошибок БД. Claude Code CX Codex Cursor +1 375 000установок stitch-loop nexu-io Скилл запускает итеративный цикл обратной связи между дизайном и кодом: критика макета → правка кода → проверка фidelity. Подойдёт, если нужно приближать вёрстку к макету по несколько раз. Claude Code CX Codex Cursor +1 2 700установок improve-codebase-architecture Matt Pocock Скилл ищет архитектурные узкие места в кодовой базе и показывает варианты углубления модулей в HTML-отчёте. Подойдёт для ревью перед рефакторингом. Claude Code 1 163 035установок tdd Matt Pocock Скилл управляет циклом красный-зелёный в TDD: проверяет, что тесты пишутся до кода, держит их на уровне публичных интерфейсов и не завязывает на внутреннюю структуру. Claude Code 1 141 062установок

Вопросы о scope-creep-detector

Как установить scope-creep-detector в Claude Code?

Выполни npx skills add Shubhamsaboo/awesome-llm-apps --skill scope-creep-detector -a claude-code, затем найди скилл в ~/.claude/skills/scope-creep-detector/SKILL.md.

Что делает scope-creep-detector?

Анализирует изменения в коде и сравнивает их с заявленным намерением задачи. Находит файлы, которые не относятся к задаче, лишние зависимости, переименования функций, изменения конфигурации и рекомендует, что оставить, вынести или объяснить.

Нужно ли скиллу интернет или специальное окружение?

Нет. Скилл работает локально, не делает сетевые запросы и требует только Python 3. Анализирует репозиторий на диске или прочитанный diff.

Исходный текст

SKILL.md · Apache-2.0
---
name: scope-creep-detector
description: >-
  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.
license: Apache-2.0
metadata:
  author: "Matt Van Horn"
  version: "1.0.0"
  source: "https://github.com/Shubhamsaboo/awesome-llm-apps"
---

# 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:

```bash
python3 scripts/scope_creep.py --repo /path/to/repo \
  --intent "fix null dereference in parser" --json
```

Staged diff:

```bash
python3 scripts/scope_creep.py --repo /path/to/repo --staged \
  --intent "fix null dereference in parser" --json
```

Branch diff against a merge base:

```bash
python3 scripts/scope_creep.py --repo /path/to/repo --base main \
  --intent "fix null dereference in parser" --json
```

Saved diff or stdin:

```bash
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](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 overlap
- `likely_creep`: paths without overlap, with the reason and detected signals
- `new_deps`: dependencies introduced in supported manifest formats
- `api_renames`: nearby removed and added public function or class declarations
- `config_edits`: CI, container, build, YAML, and TOML changes
- `stats`: 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:

1. **Keep** when the path is necessary for the stated intent and the connection
   is direct. Explain the connection in one sentence.
2. **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.
3. **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:

1. Intent and diff source
2. Files and subsystems touched, with total additions and deletions
3. In-scope changes
4. Likely creep with signal evidence
5. Keep, split, or justify table
6. 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 classifier
- `references/scope-signals.md`: signal definitions, thresholds, and limits

© Matt Van Horn · Apache-2.0 · Shubhamsaboo/awesome-llm-apps

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой