Borrowing it
Nothing to install: this file belongs to stoa-platform/stoa. 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/stoa-platform/stoa/main/.claude/skills/pr-guardian/SKILL.mdgit clone --depth 1 https://github.com/stoa-platform/stoaWrote 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/stoa-platform/stoa/pr-guardian)<a href="https://agentmods.dev/skills/stoa-platform/stoa/pr-guardian"><img src="https://agentmods.dev/badge/skills/stoa-platform/stoa/pr-guardian.svg" alt="Measured on agentmods" 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.00041 | $0.02446 |
| Opus 5 | $0.00020 | $0.01223 |
| Sonnet 5 | $0.00008 | $0.00489 |
| Haiku 4.5 | $0.00004 | $0.00245 |
Grade A, and why
pr-guardian scanned grade A with 1 finding 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 7d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
allowed-tools: Read, Glob, Grep, Bash(gh:*), Bash(curl:*), Bash(jq:*), Bash(./\.claude/skills/pr-guardian/adr-loader\.sh:*), Bash(wc:*), Bash(head:*), Bash(sed:*) How it starts
The opening of the file, as written. The whole thing — 263 lines — stays where its author put it; the contents beside it link to each section on GitHub.
STOA PR Guardian — $ARGUMENTS
Advisory-only review. Three axes, binary verdict, idempotent comments. You are reviewing a pull request in the STOA ecosystem (open-source API and MCP governance gateway). Your job is to catch issues BEFORE human review, not to replace it.
ADR: ADR-065
Policy: docs/ai/pr-guardian-policy.md
Runbook: docs/ai/pr-guardian-runbook.md
Hard rules (enforced — do not deviate)
- Never approve. Never submit a GitHub review with state
APPROVEorREQUEST_CHANGES. Usegh pr comment(summary) andgh api(inline) only. - Never block merge. You are advisory. You signal risk; humans decide.
- Terse comments. Max 4 lines each. No preamble ("Great PR!"), no emoji, no trailing summary.
- No follow-ups injected. Do not write
TODO/FIXMEinto the reviewed code. Do not open issues. - English in GitHub comments. French is fine in Slack if it matches the team tone.
- Summary comment MUST begin with
<!-- stoa-pr-guardian -->on its own line.
Step 1 — Load context
PR number: $ARGUMENTS (also available as $PR_NUMBER env var in CI).
Pull the PR metadata, diff, and linked issue:
PR="${PR_NUMBER:-$ARGUMENTS}"
REPO="${REPO:-$(gh repo view --json nameWithOwner -q .nameWithOwner)}"
gh pr view "$PR" --json title,body,author,headRefName,baseRefName,files,labels \
> /tmp/guardian-pr-meta.json
gh pr diff "$PR" --patch > /tmp/guardian-pr-diff.patch
DIFF_LINES=$(wc -l < /tmp/guardian-pr-diff.patch | tr -d ' ')
echo "Diff lines: $DIFF_LINES (cap 1000)"
If the workflow already short-circuited on the 1000-line guard, this step will not run; when invoked locally on an oversize PR, stop and emit the same "diff too large" comment the workflow would have posted.
Step 2 — Detect stack
Map changed files to stacks. A PR can span multiple stacks.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 7d ago First seen · 263 lines · 41 tokens per session scan A 9df003aaca08
pr-guardian is a skill published in the GitHub repository stoa-platform/stoa (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 41 tokens to every session and 2,446 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
lyrik
Security assessment of a codebase — minimal mode for runner validation.
librarian
Read-only retrieval over the daily-digest kept set. Slash-invoke with /librarian ; returns items verbatim with citations.
notes
Create and manage text notes in the workspace.
tdx-assets
Look up staff devices, assets, and locations in TeamDynamix (TDX). Given a list of names, emails, or partial identifiers, resolve each person and return the assets assigned to them with location, model, ownership type, and status. Read-only.
aggregator
Daily fetch from a fixed public allowlist; score against the user's interests file; cluster into themes; push the digest to the configured channel.
github
GitHub operations via the gh CLI.