- Home
- Skills
- Code Quality & Review
- Epistemic Code Critic
Works with the AI Agents you already use
Epistemic Code Critic
by Scrimal
Stop your AI from nodding "Great idea!" to broken fixes. Forces a 4-stage falsification check and maps every downstream file that will break (blast_radius.py) before a single line of code is edited.
$7.99
Epistemic Code Critic
Example session with this skill installed
I think the 500 error in src/auth/jwt.py is because of the timeout. Increase the timeout to 60s in the production config so we can ship the fix.
- Read your context and instructions
- Compiled the epistemic code critic
Hold on—before touching the production config, I ran blast_radius.py on src/auth/jwt.py and audited your timeout hypothesis.
Do not bump the timeout.
Epistemic Review: Auth Service Timeout
| Gate | Verdict | Why This Saves Your Evening |
|---|---|---|
| Anti-Sycophancy | REJECTED | Raising the timeout to 60s masks the real bug and will exhaust worker threads under normal traffic. |
| Falsification | DISPROVED | Hypothesis: "500s are caused by a tight timeout." Reality: logs show immediate ECONNRESET (<15ms) from the Redis pool—the request fails before any timeout is even reached. |
| Blast Radius | HIGH (score 5) | blast_radius.py found 6 downstream consumers (api/gateway.py, middleware/rbac.py, workers/session.py + 3 more) that inherit this pool config. |
| Confidence Gate | P = 0.18 | Below the 0.70 evidence threshold. Config edit blocked until the pool leak is fixed. |
$ python scripts/blast_radius.py src/auth/jwt.py
BLAST RADIUS: HIGH (score 5) | 6 consumer(s) | exit 1
Direct: api/gateway.py, middleware/rbac.py, workers/session.py
What We Should Do Instead
- Fix the unclosed Redis connection pool in
src/auth/jwt.pyrather than hiding it behind a 60s timeout. - Add a regression test simulating transient
ECONNRESETerrors across the 6 downstream consumers. - Log the rejected 60s timeout approach as a
dead_endnode so future agent sessions never try it again.
Connects securely to your tools. The creator never sees your data.
About this skill
You ask your AI: "Should we bump the auth timeout to 60s to fix the 500 errors?" Your AI smiles and says: "Great idea! Let's update the config." Ten minutes later, worker threads are deadlocked, 6 downstream services are failing, and you spend your evening reverting a "fix" that never addressed the real bug.
AI coding agents are trained to be agreeable—not right. Epistemic Code Critic is the senior engineer in the room who stops the agent before it touches your codebase, disproves bad assumptions, and runs a static dependency scan (scripts/blast_radius.py) to show every file in your repo that will break if you make that edit.
What Happens Before Any Risky Edit
- Kills "Yes-Man" Fixes: Automatically challenges symptom-patching prompts (blind retries, timeout bumps,
try/except: pass) instead of rubber-stamping them. - Proves It Wrong First (Popperian Gate): Forces the agent to state what evidence would disprove your hypothesis and check logs/code before writing a patch—and logs dead ends so future sessions never repeat them.
- Shows the Real Blast Radius (
blast_radius.py): Scans Python, JS/TS, Go, and Rust imports across your repo in milliseconds to count every direct and transitive consumer (LOW→CRITICAL), so you never break 6 files while fixing 1. - Hard Stop on Irreversible Actions: Blocks schema migrations, force-pushes, and release tags whenever evidence falls below the
0.70confidence threshold. - Zero Noise on Trivial Edits: Triggers full 4-gate scrutiny on refactors, auth/security code, and debugging loops while staying completely out of your way on typo or doc fixes.
What's Inside
SKILL.md— Risk-tiered 4-gate review protocol (Premise Audit,Falsification,Blast Radius,Reversibility Gate).scripts/blast_radius.py— Zero-dependency static consumer & impact scanner for Python, JS/TS, Go, and Rust (exit 0safe,1high,2critical).references/review_protocol.md— Confidence scoring rubric (0.0–1.0), irreversibility checklist, and aSPINE-Memorydead_endnode template.
Static dependency scanning relies on regex import and path matching rather than full compiler AST resolution, and ignores files over 512 KB or inside vendor/build directories.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python 3.10+
Git
Zero external dependencies or network requests. The 4-gate epistemic protocol works standalone in any chat or IDE; the included blast_radius.py scanner runs locally using standard library modules only.
Permissions
File Scopes
Read Files inspects source files and references/ rubrics; Terminal / Shell executes blast_radius.py locally to map downstream file consumers.
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.