Borrowing it
Nothing to install: this file belongs to kangig94/coral. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/kangig94/coral/main/.claude/skills/tier-review/SKILL.mdgit clone --depth 1 https://github.com/kangig94/coralWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kangig94/coral/tier-review)<a href="https://agentmods.dev/skills/kangig94/coral/tier-review"><img src="https://agentmods.dev/badge/skills/kangig94/coral/tier-review/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kangig94/coral/tier-review"><img src="https://agentmods.dev/badge/skills/kangig94/coral/tier-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00019 | $0.02124 |
| Opus 5.5 | $0.00008 | $0.00850 |
| Sonnet 5.5 | $0.00004 | $0.00425 |
| Haiku 4.5 | $0.00002 | $0.00212 |
Grade A, and why
tier-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Review Gate
Run project review agents by tier taxonomy, consolidate findings, issue a verdict.
<Review_Protocol> You are the review gate executor. Discover which project agents exist, match them to the review scope, spawn by tier, and consolidate into a single verdict.
Tiers 1–3 review code; the **doc tier** reviews documentation. By default every tier runs at
once. Under `--gated` the doc tier runs last, after the In scope code findings are fixed.
This lets documentation reviewers check the code that will ship.
## Phase 1 — Discover Agents
1. Read the project's `.claude/rules/agents.md` for the Quick Reference table (agent, tier, purpose)
and the Consultation Matrix (task category → agent mapping), and add coral:architect to the list of agents with tier 1 by default.
2. If agents.md not found, read `.claude/agents/*.md` — look for tier in description
or Situation table. If tier is unclear, treat safety-related agents as tier 1,
domain-specific as tier 2, quality reviewers as tier 3, documentation reviewers as the doc tier.
3. Any agent whose subject is documentation (e.g. doc-critic) belongs to the doc tier, whatever
number its table row carries.
4. If no agents found at all → report "no review agents configured" and exit.
## Phase 2 — Plan
1. Use the caller-supplied scope, or the diff (staged + unstaged) if none was supplied.
2. For each agent, check against the scope:
- Consultation Matrix: is this task category → agent mapping MANDATORY?
- Agent's Situation/Priority table: does the scope match?
3. Build an invocation table — for each agent: INVOKE (with scope + focus) or SKIP (with reason)
- If all agents are SKIP → report "no agents relevant to this scope" and exit.
4. Report the table before executing.
## Phase 3 — Execute
Spawn only agents marked INVOKE in the table.
Pass the same Phase 2 scope to every reviewer, with the focus from its invocation plan.
Include `Finding_Tier_Rules` from Phase 4 and request the three findings sections in
`Output_Format`.
**Every spawn prompt MUST end with this shared-worktree guard** — reviewers run in parallel in the same working tree, so one stray git command reverts every sibling's work:
> ⚠️ Review is read-only. NEVER run `git checkout`, `git switch`, `git stash`, `git reset`, `git restore`, or `git clean`, and never stage or commit — you share this working tree with parallel reviewers. To inspect another revision, use `git diff <ref>`, `git show <ref>:<path>`, or `git log <ref>` — never check it out.
**Default**: spawn ALL INVOKE agents — every tier, doc tier included — in parallel, wait for all.
**With `--gated`** (cost-saving short-circuit — use when API budget is tight):
1. Tier 1 (safety) — spawn in parallel, wait for all to complete
- Apply Phase 4 to the reports received so far. If any In scope finding is BLOCKING,
report the consolidated findings and REJECT verdict, mark the doc tier `DEFERRED`,
and stop here.
2. Tier 2 (domain) + tier 3 (quality) — spawn in parallel, wait for all to complete
3. Apply Phase 4 to the code findings from steps 1–2 and fix the In scope findings. Then
spawn the doc tier in parallel and wait for all, so it reviews the code as fixed.
Record how each In scope code finding was fixed.
## Phase 4 — Consolidate
Finding tiers are independent of agent tiers. Use the Phase 2 scope to classify unlayered
findings and check reported tiers.
<Finding_Tier_Rules>
| DO | DON'T |
|----|-------|
| Classify each real defect before assigning severity. Use the caller's review scope, or the diff if no scope was passed. | Let severity decide the tier. |
| Use In scope for a defect within the review scope that occurs under realistic conditions, including conditions produced by ordinary users or inputs. Include pre-existing defects the change makes newly reachable or worse, or that lie on a boundary the change redraws. | Treat untouched code or docs as automatically Out of scope. |
| Report real defects outside the review scope as Out of scope follow-up candidates. State why each is out of scope. | Expand the review scope to act on follow-up candidates. |
| Use Improbable if the defect requires a condition that cannot realistically occur in normal operation, including a condition only a deliberate attacker would create. Name the condition, explain why it is unrealistic, and mark attacker-creatable yes if an attacker could create it or no otherwise. | Use Improbable when you cannot name the required condition. Put that finding In scope. |
| Assign severity in every tier. Use only In scope findings to score the reviewed work and decide the verdict under the existing floor rules. | Let Out of scope or Improbable findings change a score or verdict. |
</Finding_Tier_Rules>
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 14d ago Changed · +37 lines 0910ec928566
- 2mo ago Changed · +8 lines 1e3a5bf869f0
- 2mo ago Changed · +9 lines 87d827de3cf0
- 3mo ago First seen · 93 lines · 19 tokens per session scan A 51ad6fda0f58
tier-review is a skill published in the GitHub repository kangig94/coral (11 stars, last pushed 13d ago), licensed MIT. It adds 19 tokens to every session and 2,124 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
tier-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tier-reviewkangig94/coral | Skill | 11 | 13d ago | MIT | A | 19 | Claude Code |
| codecompanion-reviewing-changesolimorris/codecompanion.nvim | Skill | 7.0k | today | Apache-2.0 | A | 38 | Claude Code, Codex |
| flow-next-impl-reviewgmickel/flow-next | Skill | 737 | yesterday | MIT | A | 34 | Claude Code, Codex |
| flow-next-plan-reviewgmickel/flow-next | Skill | 737 | yesterday | MIT | A | 32 | Claude Code, Codex |
| flow-next-spec-completion-reviewgmickel/flow-next | Skill | 737 | yesterday | MIT | A | 27 | Claude Code, Codex |
| github-review-prfeiskyer/claude-code-settings | Skill | 1.7k | 1mo ago | MIT | A | 90 | Claude Code |
| flow-next-worktree-kitgmickel/flow-next | Skill | 737 | yesterday | MIT | A | 43 | Claude Code, Codex |