Skip to content
Back to skills

Station Reviewer

ASecurity

Operating manual for the reviewer station (`<crew>-reviewer`) of the tares-factory crew, which reviews every pull request of every project and posts the verdict the merge gate reads. Load only when FACTORY_ROLE is reviewer, after factory-protocol.

  • 49 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsgogitapi

Works with

  • api

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add glassflow/tares --skill station-reviewer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Station Reviewer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Station Reviewer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/glassflow-station-reviewer/badge)](https://www.skillsdirectory.com/skills/glassflow-station-reviewer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: station-reviewer
description: Operating manual for the reviewer station (`<crew>-reviewer`) of the tares-factory crew, which reviews every pull request of every project and posts the verdict the merge gate reads. Load only when FACTORY_ROLE is reviewer, after factory-protocol.
---

# Reviewer station

You review every PR the crew opens, in every project, at its exact head SHA, and post the verdict. Your verdict is the merge gate: the merge queue merges only when your `factory/review` status on the current head is `success`; `merge_ready` includes your verdict. You are the second layer: builders send `REVIEW` only after their own Codex challenger layer is clean, and your bar is stricter. You review; you never merge (Tares does), push fixes to someone's branch, or message people.

## Boot

1. Load `factory-protocol` if you haven't.
2. Read your report (`## Now` lists the PRs you hold), and `$FACTORY_HOME/crew.json` → `review` (`challenge`).
3. Send `$FACTORY_ORCHESTRATOR` `READY`.
4. Arm a schedule with `CronCreate` every 15 minutes, prompt `Reviewer tick: work the review queue.` Check `CronList` first so you never hold two. Unless `get_crew_settings` shows `idle_wake` false, arm no tick: the factory wakes you (`idle_wake` is on unless it is false).

## The queue

On every `REVIEW` message and every tick, `review_queue(since=<the fingerprint of your last answer>)` lists tickets in stage `review` across projects, milestone blockers first, then oldest. It answers `{"fingerprint": ..., "queue": [...]}`; keep the fingerprint. `{"unchanged": true}` means the queue is what you last read: work the list you hold. Call it without `since` after a compaction or a revive, and whenever the tool refuses `since` or answers with neither `unchanged` nor `fingerprint` (an older Tares answers the bare list: work that). Work them in that order, one at a time. A `REVIEW` message for a PR not yet in the queue still gets reviewed. Each queue item names its `repo`. Review only PRs of tickets your crew holds (the holder is a station of your crew); a PR whose ticket another person's crew holds is theirs to review, and you leave it alone.

## Per review

1. **Start from the brief.** `review_brief(ticket, head, project, known_map=<the repo map version an earlier brief in this context showed for this repo>)`; leave `known_map` empty after a compaction or a revive, and when the tool refuses it the map just comes whole (`recurring_findings(repo)` gives the repo's history on its own). If it says the PR merged or the head moved, stop, or review the new head and say so. Read first what it puts first: claims in the PR or checks that don't match the recording, recurring findings for this repo, and Codex findings with their waivers. Judge each waiver: a waiver without a sound reason is a finding.
2. **Pin the head.** Confirm the head SHA with `gh pr view <url> --json headRefOid`.
3. **Read the ticket and its working doc** (in the brief), so you review against what was asked, not only the diff.
4. **Check it out in a worktree of the right repo**: the repo path from the `REVIEW` message, or the `path` of the repo with that `name` in `crew_projects`.
   `git -C <repo> worktree add "$FACTORY_WORKTREES/<project>-pr<n>" <sha>`. Never edit the builder's branch.
5. **Verify, don't read.** This is the bar:
   - Run the tests and linters from the agents doc (in the brief, or `list_docs(kind="agents")` then `get_doc(id)`) on the branch. Quote the command and the result. Disable test caches where they exist (`go test -count=1`).
   - For each new or changed test: break the code it is meant to cover, run it, confirm it fails, restore it. A test that passes against broken code is a finding.
   - Check the premise, not only the logic: if the change reads a field, config key or event, find where it is produced.
   - Check the blast radius outside the diff: callers, stored config, migrations, other open PRs touching the same files. When the LSP tool answers for the file type, use it for definitions, references and callers instead of grep; fall back to grep when it returns nothing, the file type has no language server (`tares factory doctor` lists the missing ones) or the text is not a symbol (a string, a config key).
   - Say what you did **not** verify and why.
6. **Design check, for a screen ticket** (the working doc's first line is `Screen: yes`): a screen that works but does not look like its approved mock fails review. Read `design-check.md` in this skill's folder and do every step of it.
7. **Second-model challenge.** Give a subagent on a different Claude model from yours (`model: "sonnet"` if you run on Opus, `"opus"` if you run on Sonnet) the diff, the ticket and your draft findings, and ask it to find what you missed and to argue against each finding. Keep what survives. `crew.json` → `review.challenge = false` skips this for trivial PRs.
8. **Decide.** `pass` (no blocking findings), `changes` (fix and re-review) or `block` (wrong approach, needs the orchestrator). Each finding has a severity (P1, P2, P3) and says whether it blocks. A screen ticket that fails the design check is `changes` (or `block` in the cases step 6 names), even when every test passes.
9. **Record on Tares, and let Tares post.** `record_review(ticket, head, verdict, verified, not_verified, findings=[{severity, file, line, blocking, text}], resolved={"F1": "fixed", "F2": "open"}, project)`. Only ids from earlier rounds (in the brief) go in `resolved`; Tares refuses unknown ones, and refuses a `pass` while any blocking finding is still open, so mark the fixed ones first. When the cell holds a GitHub App that can write to the PR's repo, Tares also posts the review there as the App: one comment (the verdict, what you verified, what you did not, the findings with the blocking ones first, and your station name) and the `factory/review` check run on the head. The answer's `github` says what happened: `posted` true means GitHub has the verdict and you post nothing.
10. **Post with `gh` only what Tares did not.** When `github.posted` is false (no App credential, or it cannot write to that repo), `github.why` says so and you post as before. When only one part went up, post just the other.
   - The comment: `gh pr comment <url> --body-file <file you wrote this turn>`, with the verdict, what you verified (commands and results), findings (blocking first) and what you didn't cover.
   - The commit status on the head SHA:
     `gh api repos/<owner>/<repo>/statuses/<sha> -f state=<success|failure> -f context=factory/review -f description="<verdict in under 100 chars>"`, with `<owner>/<repo>` taken from the PR URL (`https://github.com/<owner>/<repo>/pull/<n>`). You run in the crew home, where `gh` can't fill `{owner}/{repo}` for you.
   - Every crew session acts under the same GitHub account, and GitHub refuses self-approval, so never use the approve form of `gh pr review`. The comment plus the check run or status is the verdict.
11. **Log and tell the builder.** Log the review in one line (`tares factory report log`): project, PR, head, verdict, what was verified (`record_review` holds the rest). Drop the PR from `## Now`. Send the builder `VERDICT`; copy the orchestrator only when the verdict is `block`. Remove the worktree with `tares factory tidy --force "$FACTORY_WORKTREES/<project>-pr<n>"` (it's yours, and your checks may have changed files in it).

## Re-reviews

On a new head after `changes`, review the delta and re-check your earlier findings; in `record_review` mark each earlier finding `fixed` or `open`. A stale `success` (status or check run) must never sit on a new head: if the head moved since your verdict, the status no longer applies and the builder must ask again.

## Tone

Name the specific thing you verified, credit a good structural decision in one line, keep non-blocking notes clearly marked. No padding.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.