Skip to content
Back to skills

Tier Review

ASecurity

Use after implementation to run tier-classified review agents and produce a consolidated verdict.

  • 11 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsgogitapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned October 1, 2026

npx -y skills add kangig94/coral --skill tier-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tier Review?

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

Security grade badge for Tier Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kangig94-tier-review/badge)](https://www.skillsdirectory.com/skills/kangig94-tier-review)

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: tier-review
description: "Use after implementation to run tier-classified review agents and produce a consolidated verdict."
argument-hint: "[--gated] [scope description]"
---

# Review Gate

Run project review agents by tier taxonomy, consolidate findings, issue a verdict.

<Review_Protocol>
  <Role>
    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 code findings are fixed — docs describe
    the code, and a doc reviewed against code that is about to change is reviewed against the wrong
    thing.
  </Role>
  <Protocol>
    All paths below are relative to the **user's project root** (working directory), not the plugin.

    ## 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. Determine review scope from conversation context:
       - Explicit argument → use it
       - Recent implementation in conversation → those files
       - Neither → fall back to git diff (staged + unstaged)
    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.
    For each agent, pass: "Review [scope files] focusing on [focus from plan]."

    **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
       - If ANY returns BLOCKING findings → output REJECT verdict, mark the doc tier `DEFERRED`, STOP here
    2. Tier 2 (domain) + tier 3 (quality) — spawn in parallel, wait for all to complete
    3. Fix the code findings from steps 1–2, then spawn the doc tier in parallel and wait for all,
       so it reviews the code as fixed. Consolidate the code findings with how each was fixed.

    ## Phase 4 — Consolidate

    Apply merge rules to all agent results:
    1. **A verdict never lowers a finding.** A finding keeps the severity its agent labelled it with, and
       only that label can make it BLOCKING — the agent is where the fact is known. A verdict floors only
       that agent's *unlabelled* findings: `PASS` → MINOR; `FAIL`, `NEEDS WORK`, and the `NO VERDICT`
       recorded for an INVOKED agent whose report carries none → STRONG. A finding labelled in a scale
       this table cannot order is labelled, not unlabelled: carry its label verbatim, never floor it and
       never drop it, and say that rule 3 could not order it. A `PASS` beside a labelled BLOCKING
       contradicts itself — carry the BLOCKING and name the contradiction in that agent's `Key Findings`
       cell. An agent reaching `NEEDS WORK` from its own score floor with nothing above MINOR is not
       contradicting itself, and does not move the run verdict on its own.
    2. **Dedup**: same file:line from multiple agents → single entry, list all agents
    3. **Severity**: agents disagree → use higher severity
    4. **Convergent signals**: same file flagged by multiple agents → elevate priority
    5. **Root cause**: tier 1 finding that explains tier 3 symptom → connect and elevate priority

    Issue final verdict:
    | Condition | Verdict |
    |-----------|---------|
    | Any BLOCKING finding | REJECT |
    | Multiple unresolved STRONG findings | NEEDS WORK |
    | No BLOCKING, 1-2 STRONG items remaining | APPROVED WITH CONDITIONS |
    | No BLOCKING, no unresolved STRONG | APPROVED |
    | No BLOCKING, no STRONG, all agents report high quality | EXCEPTIONAL |
  </Protocol>
  <Output_Format>
    ## Review: [scope]

    | Tier | Agent | Status | Verdict | Key Findings |
    |------|-------|--------|---------|--------------|
    | {1/2/3/doc} | {agent} | INVOKED/SKIPPED/DEFERRED | PASS/NEEDS WORK/FAIL/NO VERDICT/- | {summary, skip reason, or deferral reason} |

    ### Strengths
    - {Positive observations from agents with file:line evidence}

    ### Consolidated Findings
    | # | Severity | Agent(s) | Location | Finding | Suggestion |
    |---|----------|----------|----------|---------|------------|
    | 1 | BLOCKING/STRONG/MINOR | {sources} | file:line | {issue} | {fix} |

    ### Verdict: [EXCEPTIONAL / APPROVED / APPROVED WITH CONDITIONS / NEEDS WORK / REJECT]
    {justification}
  </Output_Format>
</Review_Protocol>

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.

Comments

Loading comments…

Newsletter

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