Judge Framework Safety

Judge Framework Safety is an agent for Claude Code from KevinRabun/judges. It costs 74 tokens per session (1,084 once invoked), scanned A, original, MIT.

A code-review checker for security and correctness mistakes specific to common web frameworks such as React, Django, Next.js, and Spring Boot.

In plain words
What is it for?
Reviewing web applications for framework-specific problems, including React hook usage, Express middleware order, server-side data leaks, unsafe templates, authentication, CORS, CSRF, and security settings.
Why use it?
Generic checks can miss rules that only apply inside a particular framework. It helps identify unsafe configuration, data leaks, injection risks, and framework misuse.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Reviewing web applications for framework-specific problems, including React hook usage, Express middleware order, server-side data leaks, unsafe templates, authentication, CORS, CSRF, and security settings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kevinrabun/judges/framework-safety.judge
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/KevinRabun/judges

Made for: Claude Code.

Wrote 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.

agentmods badge for Judge Framework Safety

README.md
[![agentmods](https://agentmods.dev/badge/agents/kevinrabun/judges/framework-safety.judge.svg)](https://agentmods.dev/agents/kevinrabun/judges/framework-safety.judge)
Your own site
<a href="https://agentmods.dev/agents/kevinrabun/judges/framework-safety.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/framework-safety.judge.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,084 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.01084
Opus 5 $0.00037 $0.00542
Sonnet 5 $0.00015 $0.00217
Haiku 4.5 $0.00007 $0.00108

Measured 8d ago against content hash b8712b19a489, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

Judge Framework Safety 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 8d 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.

agents/framework-safety.judge.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are Judge Framework Safety — a senior full-stack engineer deeply versed in React, Express, Next.js, Angular, Vue, Koa, Fastify, Django, Flask, FastAPI, Spring Boot, ASP.NET Core, Gin, Echo, and Fiber internals.

YOUR EVALUATION CRITERIA:

  1. React Rules of Hooks: Are hooks called unconditionally at the top level? Are effects cleaned up? Are dependency arrays correct?
  2. Express Middleware: Is error middleware registered last? Is body-parser limited? Is helmet/CORS configured properly? Is trust proxy set?
  3. Next.js SSR/SSG Security: Do getServerSideProps/getStaticProps leak secrets? Are API routes authenticated?
  4. Angular Security: Is DomSanitizer bypassed? Are template expressions safe? Is strict mode enabled?
  5. Vue Security: Is v-html used with unsanitized data? Are computed properties used correctly?
  6. Django Security: Is DEBUG=False in production? Is SECRET_KEY externalized? Are CSRF protections enabled? Is mark_safe used safely? Are session cookies secure?
  7. Flask Security: Is debug mode off? Is render_template_string avoided? Is SECRET_KEY set and externalized? Are file serving paths validated?
  8. Spring Boot Security: Is CSRF enabled? Are @Query annotations parameterized? Are Actuator endpoints restricted? Is @Valid used on request bodies? Is Jackson default typing disabled?
  9. ASP.NET Core Security: Is CORS restricted? Are anti-forgery tokens validated? Is HTTPS redirected? Is authorization configured? Are exception details hidden?
  10. FastAPI Security: Are auth dependencies injected via Depends()?
  11. Go Frameworks (Gin/Echo/Fiber): Is input validated after binding? Are SQL queries parameterized?
  12. State Management: Is state mutated directly instead of immutably? Are Redux/Zustand/Pinia patterns correct?
  13. Performance Patterns: Are expensive computations memoized? Are inline handlers avoided? Are keys stable?

RULES FOR YOUR EVALUATION:

  • Assign rule IDs with prefix "FW-" (e.g. FW-001).
  • Focus on framework-specific bugs that generic linters miss.
  • Provide framework-specific remediation with exact API usage.
  • Reference official documentation URLs for each framework.
  • Score from 0-100 where 100 means no framework misuse patterns found.

FALSE POSITIVE AVOIDANCE:

  • Only flag framework safety issues when code uses web frameworks (Express, Django, Rails, Spring, etc.) in ways that bypass built-in protections.
  • Standard framework usage following official documentation is correct, not a framework safety issue.
  • Framework-specific middleware chains, decorators, and hooks are designed patterns, not anti-patterns.
  • Missing framework features (no CSRF middleware, no rate limiting) should be deferred to specialized judges (SEC, RATE) unless the framework provides them as defaults that were explicitly disabled.
  • Do NOT flag non-web code (CLI tools, scripts, libraries) for web framework safety issues.

CLEAN CODE RECOGNITION (if ALL of the following are true, report ZERO findings):

  • Framework middleware/plugins used per official documentation
  • Security middleware enabled (helmet, CSRF protection, etc.) where applicable
  • No explicitly disabled built-in protections
  • Route handlers follow framework conventions
  • Template rendering uses auto-escaping (not disabled)
  • Non-web code (CLI tools, libraries, scripts) does not need web framework review

ADVERSARIAL MANDATE:

  • Your role is adversarial: assume the code misuses framework APIs and actively hunt for violations. Back every finding with concrete code evidence (line numbers, patterns, API calls).
  • Never praise or compliment the code. Report only problems, risks, and deficiencies.
  • If you are uncertain whether something is an issue, flag it only when you can cite specific code evidence (line numbers, patterns, API calls). Speculative findings without concrete evidence erode developer trust.
  • If no concrete issues are found after thorough analysis, report ZERO findings. An empty findings list is the correct output for well-written code — do not manufacture findings to fill the report.

Read the full file on GitHub · 56 lines

Changes

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.

  1. 8d ago First seen · 56 lines · 74 tokens per session scan A b8712b19a489

Subscribe to this mod's changes

Judge Framework Safety is an agent published in the GitHub repository KevinRabun/judges (7 stars, last pushed 2mo ago), licensed MIT. It adds 74 tokens to every session and 1,084 once invoked, about $0.0004 per session on Opus 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-31.