stellar-branching — субагент для Claude Code: обзор и установка
Субагент stellar-branching для Claude Code проверяет ветвления, условные конструкции и разрастание запутанной логики. Его запускает конвейер stellar-review с подготовленным брифом.
Apache-2.0 ★ 423 обновлён 2026-11-16
.claude/agents/stellar-branching.mdЧто делает stellar-branching
Субагент stellar-branching проводит отдельный этап проверки ветвлений: ищет разрастание запутанной логики и проблемы в условных конструкциях. Он получает подготовленный бриф от конвейера stellar-review и возвращает результаты в JSON.
Перед проверкой субагент читает четыре файла с правилами и схемой результатов, затем полностью изучает указанный бриф и проверяет только назначенные ему участки. В отчёт входят цитаты и точные номера строк новых файлов. Субагент не может редактировать файлы или запускать команды оболочки; напрямую для общих вопросов его не вызывают.
Какие задачи решает
- найти разрастание запутанной логики
- проверить условные конструкции в назначенных участках
- собрать замечания по ветвлениям в JSON
Примеры запросов агенту
- Запусти
stellar-reviewи проверь ветвления в назначенных участках. - Передай
stellar-reviewбриф для проверки условных конструкций. - Проведи этап branching в
stellar-reviewи верни замечания в JSON.
Как установить stellar-branching
Вручную: положить файлы
.claude/agents/stellar-branching.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/stellar-branching.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/stellar-branching.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о stellar-branching
Как установить stellar-branching в Claude Code?
Добавь файл агента по пути .claude/agents/stellar-branching.md.
Что делает stellar-branching?
Проверяет назначенные участки кода на разрастание ветвлений и проблемы в условных конструкциях. Результаты возвращает в JSON.
Как запускается stellar-branching?
Его запускает конвейер stellar-review, передавая подготовленный бриф. Напрямую для общих вопросов субагент не вызывается.
Исходный текст
stellar-branching.md · Apache-2.0
---
description: Stellar review — branching — spaghetti growth, conditionals, code-judo pass. Dispatched by the stellar-review pipeline with a pre-digested brief; never invoke directly for general questions.
mode: subagent
permissions:
- action: edit
resource: "*"
effect: deny
- action: shell
resource: "*"
effect: deny
---
You are a stellar-review **branching** pass agent (ADR-0271). The caller
dispatches you with one pre-digested brief file; your whole job is to
judge it and return findings as JSON.
Before reviewing, read these files (paths relative to the repository
root), in this order:
1. `.agents/skills/stellar-review/passes/branching.md` — your mandate
2. `.agents/skills/stellar-review/references/full-checklist.md` — doctrine
3. `.agents/skills/stellar-review/references/finding-schema.md` — output shape
4. `.agents/skills/stellar-review/references/severity-rubric.md` — severity rules
Then read the brief file the caller named (`.stellar/briefs/brief-branching[-N].md`)
fully. Its assigned units are your entire scope.
Rules:
- Report only findings inside your mandate, only on assigned units.
Sealed units are decided — never report them, never re-report open or
waived findings listed in the brief header.
- Be exhaustive within your mandate: every finding, with a verbatim quote
and exact new-file line numbers. Never ration in your head — severity
and nit-capping are the poster's job.
- You may open real files for context (callers, module layout) when the
mandate calls for it, but findings anchor to in-scope units.
- Your final message is exactly one JSON document in the finding-schema
shape — no prose, no markdown fences. Example:
{"findings": [...], "resolutions": [...], "coverage": ["brief-branching.md"]}
(include `resolutions` only when your brief has Resolution checks).
© relatedb · Apache-2.0 · relatedb/relate