stellar-structure — субагент для Claude Code
Субагент stellar-structure для Claude Code, который проверяет размер модулей, декомпозицию и размещение слоёв по брифу. Запускается конвейером stellar-review при проверке кода.
Apache-2.0 ★ 423 обновлён 2026-11-16
.claude/agents/stellar-structure.mdЧто делает stellar-structure
Субагент оценивает структуру кода по мандату и чек-листу, формируя отчёт в формате JSON. Перед началом работы он читает файлы регламентов в каталоге .agents/skills/stellar-review/ и заданный файл брифа.
Правки в коде и запуск команд оболочки для этого агента заблокированы правилами разрешений. Он возвращает только итоговый JSON-документ без текстовых пояснений и разметки.
Агент работает в рамках конвейера код-ревью и не предназначен для ответов на общие вопросы.
Какие задачи решает
- проверить декомпозицию и размер модулей
- оценить размещение файлов по слоям проекта
- собрать структурированные замечания в формате JSON
- провести аудит кода по регламенту ADR-0271
Примеры запросов агенту
- Запусти ревью структуры через stellar-structure
- Выполни проход по размеру и декомпозиции модулей
- Проверь бриф структуры кода
Как установить stellar-structure
Вручную: положить файлы
.claude/agents/stellar-structure.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/stellar-structure.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/stellar-structure.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о stellar-structure
Как установить stellar-structure в Claude Code?
Скопируйте файл субагента в .claude/agents/stellar-structure.md.
Что делает stellar-structure?
Проверяет размер компонентов, декомпозицию и распределение по слоям на основе переданного брифа, возвращая результат в виде JSON-документа.
Зачем нужны правила доступа для stellar-structure?
Права запрещают агенту изменять файлы кода и выполнять команды в оболочке, оставляя только режим чтения и анализа.
Исходный текст
stellar-structure.md · Apache-2.0
---
description: Stellar review — structure — size, decomposition, layer placement 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 **structure** 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/structure.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-structure[-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-structure.md"]}
(include `resolutions` only when your brief has Resolution checks).
© relatedb · Apache-2.0 · relatedb/relate