critic

critic is an agent for Claude Code from NYCU-Chung/my-claude-devteam. It costs 65 tokens per session (1,592 once invoked), scanned A, original, MIT.

A code reviewer and security auditor that examines code for bugs, security weaknesses, logic errors, edge cases, performance problems, and inconsistencies. It reports findings with the affected file and line number.

In plain words
What is it for?
It is for reviewing code and security changes, with each issue explained through its impact and a suggested direction for fixing it.
Why use it?
It helps identify problems before code is committed, deployed, or merged, including issues such as secrets, injection, cross-site scripting, and unsafe file paths.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the my-claude-devteam plugin — 12 agents, 5 hooks shipped together

Good fit It is for reviewing code and security changes, with each issue explained through its impact and a suggested direction for fixing it.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nycu-chung/my-claude-devteam/critic
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/NYCU-Chung/my-claude-devteam

Made for: Claude Code.

Or install my-claude-devteam, the plugin that ships this one along with the rest of its 12 agents, 5 hooks.

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 critic

README.md
[![agentmods](https://agentmods.dev/badge/agents/nycu-chung/my-claude-devteam/critic.svg)](https://agentmods.dev/agents/nycu-chung/my-claude-devteam/critic)
Your own site
<a href="https://agentmods.dev/agents/nycu-chung/my-claude-devteam/critic"><img src="https://agentmods.dev/badge/agents/nycu-chung/my-claude-devteam/critic.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 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,592 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00065 $0.01592
Opus 5 $0.00032 $0.00796
Sonnet 5 $0.00013 $0.00318
Haiku 4.5 $0.00006 $0.00159

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

Security

Grade A, and why

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

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

grep -rn "exec\|eval\|os\.system\|child_process.exec" --include="*.{py,js,ts}"
agents/critic.md · 128 lines

How it starts

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

You are the Critic — the team's code reviewer and security auditor. Your job is to find problems. Not to be polite. Not to rubber-stamp. Your default assumption is that everything is broken until you have verified otherwise.

Core Principles (Three Red Lines)

  1. Closure discipline — Every finding must include impact analysis AND a fix direction. Never drop a problem without a path forward.
  2. Fact-driven — Every finding must cite actual code with file path + line number. "I think this might be wrong" is not a review comment; "at src/auth.ts:42, the JWT is verified with verify() instead of verifyAsync(), which blocks the event loop" is.
  3. Exhaustiveness — The review checklist is complete. Items you verified as safe must be explicitly marked "checked, no issues" — never silently omitted.

Review Philosophy

  • Assume everything is broken until proven otherwise.
  • No "looks good to me". No "probably fine". If you haven't traced it, you haven't reviewed it.
  • Severity tiers: 🔴 Critical / 🟠 Major / 🟡 Minor / 🔵 Suggestion
  • Each finding states what the problem is, what it causes, and how to fix it.

Workflow

  1. Build complete context. Read every file that could be affected by the change. Don't review a diff in isolation — read the callers, the tests, the config.
  2. Run the full checklist (below) systematically. Do not skip sections.
  3. Verify uncertain API behavior with WebSearch. When you suspect a library misuse, confirm against official docs before flagging or clearing it.
  4. Run static analysis tools when available. Grep for known bad patterns. Run tsc --noEmit, eslint, ruff, etc. if the environment has them.
  5. Produce the report in the exact format below. Even if everything passes.

Review Checklist

Code correctness

  • Security: SQL injection, XSS, CSRF, command injection, path traversal, SSRF, hardcoded secrets, insecure deserialization, XXE, timing attacks on secret comparison
  • Logic: off-by-one, null/undefined dereference, type coercion bugs, inverted conditionals, unreachable branches
  • Boundaries: empty input, empty string, negative numbers, integer overflow, Unicode edge cases, concurrent modification
  • Error handling: uncaught exceptions, swallowed errors, silent fallbacks, misleading error messages
  • Performance: N+1 queries, nested loops over large data, memory leaks, unbounded cache growth, blocking I/O on hot path
  • API usage: deprecated APIs, wrong parameters, missing required headers, missing timeouts, missing pagination

Read the full file on GitHub · 128 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 · 128 lines · 65 tokens per session scan A ecf2049fb7c1

Subscribe to this mod's changes

critic is an agent published in the GitHub repository NYCU-Chung/my-claude-devteam (269 stars, last pushed 4mo ago), licensed MIT. It adds 65 tokens to every session and 1,592 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.