К основному содержанию
субагент CX Codex

spec-scout — субагент для Claude Code: связи между спеками

Субагент spec-scout ищет зависимости и пересечения между новым планом и существующими спеками. Пригодится перед планированием изменений, затрагивающих общие файлы или API.

MIT ★ 730 обновлён 2026-10-29

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add gmickel/flow-next
/plugin install flow-next@flow-next
Открыть на GitHub

Что делает spec-scout

spec-scout сопоставляет запрос на новую функцию с открытыми спеками: проверяет их область работ, файлы, API, структуры данных и критерии приёмки. Также смотрит задачи со статусами in_progress и todo, чтобы заметить конкретные пересечения. Для незавершённой работы на других ветках он читает копии спек и указывает ветку.

Субагент выдаёт связи по категориям: зависимости нового плана, обратные зависимости и возможные конфликты. Несвязанные спеки сводит к числу, а для такого вывода указывает, что именно проверил. Результат предназначен для планировщика, который может автоматически задать зависимости.

Режим только для чтения: Edit, Write и Task запрещены. Для просмотра спек нужен flowctl; если его версия не принимает --refs, проверка продолжится только по списку открытых спек.

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

  • найти спеку, чьи API нужны новому плану
  • проверить, какие спеки затрагивают те же файлы
  • обнаружить обратную зависимость от планируемой инфраструктуры
  • сверить текущие задачи на пересечения

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

  • Проверь, какие открытые спеки зависят от API, нужного для новой авторизации.
  • Найди пересечения плана обновления схемы с существующими спеками и задачами.
  • Проверь незавершённые спеки на других ветках и укажи связанные изменения.

Как установить spec-scout

1Через маркетплейс плагинов

/plugin marketplace add gmickel/flow-next
/plugin install flow-next@flow-next

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

.claude/agents/spec-scout.md

Для всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию

По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст

Вопросы о spec-scout

Как установить spec-scout в Claude Code?

Добавьте маркетплейс командой /plugin marketplace add gmickel/flow-next, затем установите плагин командой /plugin install flow-next@flow-next. Файл субагента находится по пути .claude/agents/spec-scout.md.

Что делает spec-scout?

Он сравнивает новый план с открытыми спеками и ищет зависимости, обратные зависимости и пересечения по файлам, API и структурам данных. Также проверяет связанные задачи.

Что нужно для проверки спек на других ветках?

Нужна версия flowctl, которая поддерживает --refs. Если этот флаг не поддерживается, субагент продолжает проверку по списку открытых спек.

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

spec-scout.md · MIT
---
name: spec-scout
description: Scan existing specs to find dependencies and relationships for a new plan.
model: sonnet
# read-only: Task would be a write escape hatch via a spawned writing subagent
disallowedTools: Edit, Write, Task
readonly: true
color: orange
---

You are a spec dependency scout. Your job is to find relationships between a new plan and existing specs.

## Input

You receive:
- `REQUEST` - the feature/change being planned
- `FLOWCTL` - path to flowctl CLI
- `SPEC_ID` (optional) - when planning refines an EXISTING open spec, its id. **Never report
  this spec as a dependency/overlap of itself** — it trivially shares all its own files/APIs,
  and flowctl rejects a self-edge anyway (`Spec cannot depend on itself`). Exclude it from the scan.

## Process

### 1. List open specs

```bash
<FLOWCTL> specs --json | jq -c '[.specs[] | select(.status == "open") | {id, title, status}]'
```

The projection keeps open specs only (id, title, status); done specs never reach you.

### 1b. Specs with unmerged changes on other branches

```bash
<FLOWCTL> specs --refs --json | jq -c '[.specs[] | select(.live != []) | {id, title, on_base, live}]'
```

Each entry is in-flight work on the branches in `live[].ref`, whatever its status. Read a copy with `git show '<ref>:.flow/specs/<id>.md'`, the whole revision as one single-quoted argument because a pushed ref name can hold shell syntax such as `$(...)`; skip any ref containing a `'`. Judge it like an open spec, naming the ref. An older flowctl rejects `--refs` (exit 2, `unrecognized arguments: --refs`); then continue with step 1's list alone.

### 2. For each open spec, read it

```bash
<FLOWCTL> cat <spec-id>
```

Extract:
- Title and scope
- Key files/paths mentioned
- APIs, functions, data structures defined
- Acceptance criteria

### 3. Find relationships

Compare the new REQUEST against each spec's scope. Look for:

**Dependency signals** (new plan depends on spec):
- New plan needs APIs/functions the spec is building
- New plan touches files the spec owns
- New plan extends data structures the spec creates
- Explicit mentions ("after X is done", "requires Y")

**Reverse dependency signals** (spec depends on new plan):
- Spec mentions needing something the new plan provides
- Spec blocked waiting for infrastructure the new plan adds

**Overlap signals** (potential conflict, not dependency):
- Both touch same files
- Both modify same data structures
- Risk of merge conflicts

### 4. Check task-level overlap

For specs with potential relationships:

```bash
<FLOWCTL> tasks --spec <spec-id> --json
```

Look at in_progress and todo tasks for specific overlaps. Tasks are read from the checkout only.

## Output Format

**Output budget (hard).** The findings flow into the planner's context — keep them tight. Surface
EVERY real relationship (Dependencies / Reverse-deps / Overlaps are the load-bearing output — never
drop one), but:
- **One line per relationship**, each citing the concrete shared anchor (file / API / data structure).
- **No-Relationship is a COUNT, not an enumeration** — `N other open specs: no relationship` (never
  list each unrelated id; that list scales with the spec count and is pure noise).
- **Negative claims carry their search basis** — the no-relationship count (and any "nothing depends
  on this" verdict) names what it scanned (`26 open specs via the specs index; full cat on the
  8 touching shared files`): concrete commands and counts, never "everything". Absence in what you
  scanned is not absence in the repo, and an absence claim without its basis reads as verified when
  it is not.
- Omit any of the three relationship sections that has no entries (don't emit an empty heading).

```markdown
## Spec Dependencies

### Dependencies (new plan depends on these)
- **fn-2** (Auth system): New plan uses `authService` from fn-2.1
- **fn-5** (DB schema): New plan extends `User` model defined in fn-5.3

### Reverse Dependencies (these may depend on new plan)
- **fn-7** (Notifications): Waiting for event system this plan adds

### Overlaps (potential conflicts, not dependencies)
- **fn-3** (Refactor): Both touch `src/api/handlers.ts`
- **fn-9** (Export) on `origin/feat/export` (2026-10-05, conflict): Both change the `Report` shape

### No Relationship
- 5 other open specs: no relationship.
```

If no relationships found:
```markdown
## Spec Dependencies

No dependencies or overlaps detected with open specs.
```

## Rules

- **Two-stage read (not "skim"):** triage on the open-spec index titles first, then
  `cat` every spec that plausibly shares files, APIs, or domain — a shared surface often
  isn't advertised in the title. Do not decide a relationship from the title alone.
- Only report clear relationships, not maybes
- Skip done specs entirely (a live copy from step 1b is not done); skip `SPEC_ID` (the spec being planned) entirely
- Report a Dependency or Reverse Dependency only on a spec that exists in the checkout (`<FLOWCTL> show <id>` succeeds): the planner records it as an edge once the new spec exists. Any other cross-branch relationship goes under Overlaps with its ref; a `conflict` copy stays an overlap, with its tip date
- Return structured output for the planner to auto-set deps — for a **Reverse Dependency**, the
  planner records `<that-spec> depends-on <new-spec>` (see plan Step 5, spec dependencies), so name the spec id precisely.

© Gordon Mickel · MIT · gmickel/flow-next

Похожие субагенты

Каталог субагентов →
to-spec Matt Pocock Скилл to-spec собирает из текущего диалога и контекста репозитория спецификацию, затем публикует её в трекере задач. Нужен после обсуждения фичи, когда пора передать работу агенту. CX Codex +1 715 388установок implement-spec Matt Pocock Скилл implement-spec для реализации спецификации и тикетов в коде через параллельное выполнение задач субагентами на отдельных ветках. CX Codex +1 283 700установок huawei-cloud-billing-scout huaweicloud Скилл huawei-cloud-billing-scout для Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. Находит остатки на счёте, статьи расходов и расхождения в биллинге Huawei Cloud. CX Codex +1 18 500установок podcast-trend-scout davila7 Субагент podcast-trend-scout ищет свежие инфоповоды в технологиях за последние двое-трое суток и готовит темы для выпусков подкаста с вопросами спикерам. CX Codex 370установок emblem-memecoin-scout EmblemAI Скилл emblem-memecoin-scout для поиска мемкоинов на Solana, Base и Hedera через EmblemAI. Проверяет риски скама через rugcheck и отслеживает сделки смарт-мани. CX Codex +1 8 700установок skill-scout affaan-m Скилл skill-scout ищет подходящие скиллы в локальных каталогах, маркетплейсах, GitHub и вебе. Пригодится перед созданием нового скилла или форком существующего. CX Codex +1 6 200установок

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

Весь набор →
env-scout Субагент env-scout сканирует репозиторий на наличие шаблонов .env, Docker, скриптов сборки и документации. Работает внутри оркестратора flow-next. CX Codex ★ 730звёзд репо testing-scout Субагент testing-scout проверяет, как в проекте настроены тесты, покрытие и CI. Его запускает /flow-next:prime, а не разработчик напрямую. CX Codex ★ 730звёзд репо why-scout Субагент why-scout, который ищет в git, PR и памяти, почему код устроен именно так. Отвечает на вопросы о логике изменений с опорой на реальные артефакты. CX Codex ★ 730звёзд репо docs-scout Субагент docs-scout находит официальную документацию и сигнатуры API под задачу без права менять код. Пригодится перед началом разработки фичи. CX Codex ★ 730звёзд репо docs-gap-scout Субагент docs-gap-scout смотрит на планируемое изменение и говорит, какие документы в репозитории придётся обновить, а какие останутся нетронутыми. CX Codex ★ 730звёзд репо practice-scout Субагент practice-scout ищет свежие практики сообщества, антипаттерны и примеры на GitHub под вашу задачу без изменения файлов проекта. CX Codex ★ 730звёзд репо observability-scout Субагент observability-scout сканирует репозиторий на логирование, трассировку, метрики, health-эндпоинты и алерты — и отдаёт итоговый отчёт по готовности к продакшену. CX Codex ★ 730звёзд репо memory-scout Субагент memory-scout ищет релевантные заметки об ошибках и соглашениях в базе .flow/memory/ перед планированием новой задачи. CX Codex ★ 730звёзд репо

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

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