opencode-review-stellar — промпт для Claude Code: обзор PR
Промпт opencode-review-stellar для Claude Code запускает строгую проверку сопровождаемости и качества кода в pull request Rust-проекта. Он собирает выводы субагентов, но не публикует комментарии и не выносит вердикт.
Apache-2.0 ★ 423 обновлён 2026-11-16
.claude/commands/opencode-review-stellar.mdЧто делает opencode-review-stellar
Промпт организует проверку pull request по готовым материалам конвейера Stellar. Сначала он вызывает скилл stellar-review, затем поручает отдельному субагенту каждый файл из .stellar/briefs/ и собирает результаты в .stellar/findings.json. Выводы каждого прохода сразу попадают и в .stellar/findings.partial.json.
В конце промпт печатает число находок по уровням серьёзности и останавливается. Публикацию комментариев и итоговый вердикт выполняет следующий этап конвейера. Промпт не читает diff через git или gh, не вызывает сетевые инструменты и может записывать только два файла с находками.
До запуска в рабочей области должны быть .stellar/facts.json, .stellar/scope.json, .stellar/briefs/ и .stellar/ledger.json; нужны также скилл stellar-review и агенты из .opencode/agents/. Если субагент ещё работает, завершать проход нельзя: незаписанные результаты потеряются.
Какие задачи решает
- проверить pull request Rust-проекта по кратким материалам
- распределить проверку между отдельными субагентами
- сохранить промежуточные выводы по мере их поступления
- подготовить файл находок для следующего этапа конвейера
Примеры запросов агенту
- Проведи строгую проверку сопровождаемости этого pull request по материалам Stellar.
- Запусти проверку качества кода и сохрани находки для этапа публикации.
Как установить opencode-review-stellar
Вручную: положить файлы
.claude/commands/opencode-review-stellar.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы об opencode-review-stellar
Как установить opencode-review-stellar в Claude Code?
Файл команды нужно поместить по пути .claude/commands/opencode-review-stellar.md.
Что делает opencode-review-stellar?
Он запускает проверку pull request Rust-проекта через скилл stellar-review и субагентов. Результаты записываются в файлы находок, а комментарии и вердикт оставлены следующему этапу.
Какие файлы нужны для работы opencode-review-stellar?
В рабочей области должны быть .stellar/facts.json, .stellar/scope.json, .stellar/briefs/ и .stellar/ledger.json. Также нужны скилл stellar-review и агенты из .opencode/agents/.
Исходный текст
opencode-review-stellar.md · Apache-2.0
You are performing an automated **Stellar review** (strict maintainability / code-quality review) of a pull request in this Rust repository, running under OpenCode. This is the scripted pipeline variant (ADR-0271): the workflow has already run the deterministic steps — `.stellar/facts.json`, `.stellar/scope.json`, `.stellar/briefs/`, and `.stellar/ledger.json` exist in the workspace. You are the pipeline's judgment step, not its scoping or posting step. You will receive context lines at the top of the prompt in this form: ``` REPO: <owner>/<repo> PR NUMBER: <n> HEAD SHA: <sha> ``` ## Step 1 — Invoke the `stellar-review` skill Your FIRST action is to invoke the `stellar-review` skill via the `skill` tool with skill ID `stellar-review`. The skill lives in this repository at `.agents/skills/stellar-review/SKILL.md` and owns the review entirely: mandates, doctrine, severities, and the dispatch pattern (Step 2 of the skill). Follow it exactly: - One sub-agent per brief file in `.stellar/briefs/`, dispatched in parallel — the `stellar-structure`, `stellar-branching`, `stellar-boundaries`, and `stellar-comparison` agents defined in this repository (`.opencode/agents/`). Never merge briefs into one dispatch; never review the raw diff. - Assemble the agents' JSON outputs into `.stellar/findings.json` exactly as the skill's Step 3 prescribes — schema-checked, sealed-unit violations dropped. - **Persist each pass's findings as it returns (the timeout salvage path, LABS-635):** the moment a sub-agent's JSON document comes back, merge it into `.stellar/findings.partial.json` — the same schema as `findings.json` (`version`, `findings`, `resolutions`, `coverage`, `notes`), accumulating one pass at a time. The run is capped at a wall-clock timeout; if it is killed mid-round, the poster collects whatever landed in the partial file (and the check fails — a partial review never passes). The final `findings.json` remains the only document trusted for a full verdict. ## Step 2 — Stop After writing `.stellar/findings.json`, print one line with the finding counts by severity and stop. The workflow runs the poster (`post.py`), which rolls the ledger, posts the inline comments and summary, and derives the verdict. You never post comments and never write a verdict. **Never stop while a pass is in flight.** This is a one-shot run: the process exits the moment you end your turn, and a round that "waits for notifications" loses every still-running pass — observed on PR #555, where the main agent ended its turn waiting and the round died with no findings document. Join your dispatched sub-agents (or run them synchronously) and only stop after `.stellar/findings.json` is written. ## Constraints - `.stellar/findings.json` and `.stellar/findings.partial.json` are the ONLY files you may write. Do not modify anything else in the repo. - Do not call `gh` or any network tool; posting is scripted. Do not fetch external URLs. - Do not read the PR diff via git or `gh`: the briefs are the review input. (The checkout is shallow; only the fetched base/head objects exist.) - If the skill or a sub-agent errors out and you cannot produce a valid findings document, do NOT write a findings.json you don't trust — exit explaining the failure. The workflow fails closed on a missing/invalid findings file.
© relatedb · Apache-2.0 · relatedb/relate