Borrowing it
Nothing to install: this file belongs to jongwony/epistemic-protocols. 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/jongwony/epistemic-protocols/main/.claude/skills/formal-review/SKILL.mdgit clone --depth 1 https://github.com/jongwony/epistemic-protocolsWrote 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/jongwony/epistemic-protocols/formal-review)<a href="https://agentmods.dev/skills/jongwony/epistemic-protocols/formal-review"><img src="https://agentmods.dev/badge/skills/jongwony/epistemic-protocols/formal-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/jongwony/epistemic-protocols/formal-review"><img src="https://agentmods.dev/badge/skills/jongwony/epistemic-protocols/formal-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00098 | $0.03134 |
| Opus 5.5 | $0.00039 | $0.01254 |
| Sonnet 5.5 | $0.00020 | $0.00627 |
| Haiku 4.5 | $0.00010 | $0.00313 |
Grade A, and why
formal-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 23d 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 — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Formal Lens Review
A one-pass review of a PR diff through a fixed formal lens panel — Category Theory ∥ Type Theory ∥ Operational Semantics — posted back to the PR as a single consolidated comment for human reviewers. The panel is pinned at definition time rather than derived from the diff, so a formally-structured protocol change gets a meticulous, complete formal review on the same three axes every run.
Why this is a project skill
The formal triple (morphism coherence, type soundness, evaluation-order consistency) is this repository's standing review axis — protocol SKILL.md files carry category-theoretic formal blocks, TYPES / PHASE TRANSITIONS, and operational-semantics state machines. Pinning all three here guarantees the formal partial review is exhaustive every run. The fixed panel is therefore project-specific and belongs in the project skill layer. This skill is self-contained — it names its own lenses and describes its own isolated-then-adversarial substrate, with no plugin dependency.
Caller Signature
/formal-review [scope?]
scope : PR number | (implicit) -- optional; PR number, or implicit current-branch PR / working-tree detection
-- absent → Phase 0 detects it
When scope is omitted, Phase 0 detects it (current-branch PR, else working tree). The lens panel is fixed in this skill — Category Theory, Type Theory, Operational Semantics — and is not a runtime parameter; the scope is the only argument.
Pipeline Overview
/formal-review [scope?]
Phase 0 : scope detect (PR number | current-branch PR | working tree) + free-exit — no SHA pinning, tools fetch live
Phase 1 : diff prep — fetch diff live (gh pr diff {N} | git diff HEAD); read file fate (A/M/D/R) from diff headers; state diff-reading conventions
Phase 2 : fixed-lens review (isolated → adversarial) — pin the formal triple (Category Theory ∥ Type Theory ∥ OpSem); substrate described in-skill (not /conduct)
2a isolated per-lens analysis (independence) — each finding: file:line + lens tag + severity + evidence-grounded rationale, confidence ≥ 80%
2b adversarial cross-verification — refute each finding; survive → Phase 3, defeated → recorded in the Phase 4 comment as refuted (relay drop w/ basis)
Phase 3 : direction-error guard (verify) — cross-check review text vs diff-header fate; Added-but-described-as-deleted → warning augment (relay)
Phase 4 : post comment — one consolidated PR comment carrying every finding (path:line in text); substrate write → harness permission
free-exit : user may end the review at any time (declared once in Phase 0)
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.
- 23d ago Changed dc115108d647
- 2mo ago Changed f2334cebea01
- 2mo ago Changed · -2 lines 9ad69cbd48d3
- 2mo ago Changed 7868db865040
- 2mo ago Changed · -5 lines · -4 tokens per session e3b40c5af512
- 3mo ago Changed · -1 lines 547e33c0b221
- 3mo ago First seen · 134 lines · 102 tokens per session scan A 972a67a642c0
formal-review is a skill published in the GitHub repository jongwony/epistemic-protocols (178 stars, last pushed 2d ago), licensed MIT. It adds 98 tokens to every session and 3,134 once invoked, about $0.0004 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.
formal-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| formal-reviewjongwony/epistemic-protocols | Skill | 178 | 2d ago | MIT | A | 98 | Claude Code |
| codecompanion-reviewing-changesolimorris/codecompanion.nvim | Skill | 7.0k | today | Apache-2.0 | A | 38 | Claude Code, Codex |
| flow-next-plan-reviewgmickel/flow-next | Skill | 737 | 2d ago | MIT | A | 32 | Claude Code, Codex |
| flow-next-impl-reviewgmickel/flow-next | Skill | 737 | 2d ago | MIT | A | 34 | Claude Code, Codex |
| flow-next-spec-completion-reviewgmickel/flow-next | Skill | 737 | 2d ago | MIT | A | 27 | Claude Code, Codex |
| flow-next-worktree-kitgmickel/flow-next | Skill | 737 | 2d ago | MIT | A | 43 | Claude Code, Codex |
| prumputun/cc-thingz | Skill | 504 | 15d ago | MIT | A | 51 | Claude Code |