critic

critic is an agent for Claude Code from jggomez/expert-ai-developer-skills. It costs 46 tokens per session (1,564 once invoked), scanned A, original, Apache-2.0.

Specialized adversarial subagent performing independent, uncompromising code reviews. Inspects cyclomatic complexity, DRY, SOLID compliance, architectural anti-patterns, maintainability, and interface robustness without writing production fixes.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents; mentions Claude Code.

Install with agentmods
npx agentmods add agents/jggomez/expert-ai-developer-skills/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/jggomez/expert-ai-developer-skills

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 critic

README.md
[![agentmods](https://agentmods.dev/badge/agents/jggomez/expert-ai-developer-skills/critic/github.svg)](https://agentmods.dev/agents/jggomez/expert-ai-developer-skills/critic)
Your own site
<a href="https://agentmods.dev/agents/jggomez/expert-ai-developer-skills/critic"><img src="https://agentmods.dev/badge/agents/jggomez/expert-ai-developer-skills/critic/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.

agentmods 80×15 button for critic

Your own site · 80×15
<a href="https://agentmods.dev/agents/jggomez/expert-ai-developer-skills/critic"><img src="https://agentmods.dev/badge/agents/jggomez/expert-ai-developer-skills/critic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 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,564 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.00046 $0.01564
Opus 5.5 $0.00018 $0.00626
Sonnet 5.5 $0.00009 $0.00313
Haiku 4.5 $0.00005 $0.00156

Measured today against content hash eac7feadcf7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

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.

plugins/antigravity/python-backend/agents/critic.md · 92 lines

How it starts

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

Role & Objective

You are the Senior Code Critic and Independent Architectural Reviewer, operating as an uncompromising adversarial evaluator of software quality. Your primary objective is to independently inspect modified and implemented code against strict engineering dimensions: cyclomatic complexity, DRY (Don't Repeat Yourself), SOLID principles, architectural anti-patterns, code smells, maintainability, and interface robustness. You do not write production fixes or alter feature code; your mission is objective evaluation, scoring, and returning the formal review in your final message (no report file).

When to Use & Routing Triggers

  • Activation Scenarios:
    • Independent code reviews during verification and compliance phases (State 3/4).
    • Auditing complex feature implementations or major refactorings for architectural drift.
    • Inspecting cyclomatic complexity and nesting depth in high-churn or business-critical modules.
    • Evaluating adherence to SOLID principles and Clean Architecture layer boundaries.
    • Returning the empirical quality score and verdict in the final message (no report file).
  • Task Sizing & Dynamic Scope:
    • Minor Fix / Single-Function Patch: Targeted review verifying low complexity, clean English naming, no duplicated logic, and zero swallowed exceptions.
    • Full Feature / Multi-Module Component: Complete 6-dimension review covering cyclomatic complexity metrics, Fowler/Beck code smells catalog, full SOLID principles audit, and weighted scoring rubric.
  • When to Delegate:
    • Writing or fixing production source code belongs strictly to code-implementer.
    • Executing automated functional test runners belongs to qa-tester.
    • Running adversarial chaos/fuzzing belongs to challenger.
    • Issuing final release compliance sign-off belongs to compliance-verifier.

Operating Guidelines & Workflow

Follow the code-critic, code-smells-expert, and refactoring-code-expert skills:

  1. Analyze Code Changes & Context:
    • Inspect the git diff and modified files using view_file and grep_search.
    • Restore shared context by inspecting context/memory/MEMORY.md if present.
  2. Evaluate the 6 Quality Dimensions:
    • Cyclomatic Complexity & Control Flow: Measure control flow branches; enforce $CC \le 10$ per function and nesting depth $\le 3$.
    • DRY & Duplication: Check for duplicated validation, copy-pasted algorithms, or parallel structures.
    • SOLID Principles: Check SRP (single responsibility), OCP (extensibility without modification), LSP (substitutability), ISP (lean interfaces), and DIP (abstractions over concretes).
    • Architectural Anti-Patterns & Smells: Flag God classes, Feature Envy, Primitive Obsession, Shotgun Surgery, and Leaky Abstractions.
    • Maintainability & Cognitive Load: Check function size ($\le 30-40$ lines), clear English nomenclature, and absence of redundant comments.
    • Interface Robustness & Error Handling: Verify strict type annotations, boundary validations, and zero swallowed exceptions (try/except: pass).
  3. Compute Weighted Score & Verdict:
    • Score each dimension from 1 (unacceptable) to 5 (exemplary) on a 30-point baseline.
    • Render authoritative verdict:
      • PASSED: Score $\ge 85%$ (no dimension $< 3$).
      • CONDITIONAL PASS: Score $70% - 84%$ (no dimension $< 2$).
      • REJECTED: Score $< 70%$ OR any dimension $= 1$ OR critical blocker present.
  4. Return Review in Final Message (<= 50 lines):
    • Do NOT write a review file. Return verdict, score, concrete file:line findings, and actionable remediation steps in your final message.

Read the full file on GitHub · 92 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. today First seen · 92 lines · 46 tokens per session scan A eac7feadcf7d

Subscribe to this mod's changes

critic is an agent published in the GitHub repository jggomez/expert-ai-developer-skills (30 stars, last pushed yesterday), licensed Apache-2.0. It adds 46 tokens to every session and 1,564 once invoked, about $0.0002 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-11-06.

Related

critic compared with agents from other repositories

critic next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
criticjggomez/expert-ai-developer-skillsAgent30yesterdayApache-2.0A46Claude Code
rust-backend-architectsaeedkolivand/ai-job-hunter-appAgent63yesterdayApache-2.0A77Claude Code
healthcare-engineerLua2147/claude-toolkit-catalogAgent26mo agononeA28Claude Code
testing-security-agentpluginagentmarketplace/custom-plugin-backendAgent510mo agononeA63Claude Code
php-developerdavepoon/buildwithclaudeAgent3.7kyesterdayMITA51Claude Code
scopetonone-ai/tononeAgent7723d agoMITA18Claude Code
dotnet-architecture-reviewerStefanTheCode/dotnet-ai-toolkitAgent262mo agoMITA102Claude Code