code-critic

code-critic is a skill for Claude Code, Codex from cunhaax/ai-workflow. It costs 88 tokens per session (4,709 once invoked), scanned A, original, MIT.

A code-review checklist and set of project-specific coding standards for examining changes critically.

In plain words
What is it for?
Use it for ad-hoc reviews or as the review stage of a feature workflow, covering the relevant code diff and project rules.
Why use it?
It gives the agent a consistent way to challenge an implementation and look for faults instead of only confirming that it appears correct.

Skill for Claude CodeCodex

Part of the ai-workflow plugin — 8 skills, 4 agents, 2 MCP servers shipped together

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.

agentmods
npx agentmods add skills/cunhaax/ai-workflow/code-critic
Any agent
npx skills add cunhaax/ai-workflow --skill code-critic
Clone the repo
git clone --depth 1 https://github.com/cunhaax/ai-workflow

Made for: Claude Code, Codex.

Or install ai-workflow, the plugin that ships this one along with the rest of its 8 skills, 4 agents, 2 MCP servers.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/cunhaax/ai-workflow/code-critic.svg)](https://agentmods.dev/skills/cunhaax/ai-workflow/code-critic)
Your own site
<a href="https://agentmods.dev/skills/cunhaax/ai-workflow/code-critic"><img src="https://agentmods.dev/badge/skills/cunhaax/ai-workflow/code-critic.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,709 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00088 $0.04709
Opus 5 $0.00044 $0.02354
Sonnet 5 $0.00018 $0.00942
Haiku 4.5 $0.00009 $0.00471

Measured 3d ago against content hash 42db6399d9d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-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 3d 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.

plugins/ai-workflow/skills/code-critic/SKILL.md · 426 lines

How it starts

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

/code-critic — Code Review

Apply this skill to review code changes against project standards.


Stance

Treat the implementation as a hypothesis under attack. Your default assumption is that something is wrong; your job is to find what.

Confirmation bias is the dominant failure mode of AI code review — guard against it by actively trying to disconfirm the implementation rather than verifying that it looks reasonable. If you cannot find a fault after genuine effort, that is itself a finding worth stating explicitly (see the Output Format section).


Before Reviewing

Selecting the diff

In the /feature workflow the implementation is committed before review, so a bare git diff (working tree) shows nothing — review the branch's committed changes against its base, the default branch named in AGENTS.mdCommands: git diff <default-branch>...HEAD (or git log -p <default-branch>..HEAD). Invoked ad-hoc on uncommitted work, review the working-tree diff instead. If unsure what changed, check git status and git log --oneline first.

Note for ad-hoc use: the push gate records a commit SHA (scripts/review-ok.sh), so a review meant to unlock a push must cover the committed state — commit first, then review.

Architecture Decision Records

Check if a docs/adr/ directory exists. If it does, list the ADRs you read by number in the review output. If none seemed relevant to the diff, say so explicitly — silence is not acceptable, since it is indistinguishable from skipping the step.

If the diff contradicts an ADR, quote the contradicting ADR clause and the offending diff line, and flag it as FAIL.

Implementation Plan

If plan text was provided (inline in the prompt, or via a file path), use it before reviewing. Use it as follows:

  • Approval Summary / Acceptance Criteria: the human-approved contract. Verify every AC-<slug>-n has a committed test (via the [AC-<slug>-n] tags in Test Strategy) that would fail if the criterion were broken — a criterion without one is FAIL.
  • Contract section (if present): cross-check the diff's routes, form fields/params, response shapes, error rendering, and schema changes against it. An undiscussed deviation from the approved Contract is FAIL.
  • Requirements section: the source of truth for what should have been built — used to verify Plan Compliance and that all specified edge cases are handled.
  • Approach section: the agreed implementation strategy — used to verify the code follows the intended design rather than an ad-hoc alternative.
  • Edge Cases section: the enumerated scenarios that must be handled. Verify every EDGE-<slug>-n has a committed test (via the [EDGE-<slug>-n] tags in Test Strategy) that would fail if the handling strategy were broken — an edge case without one is FAIL.
  • Test Strategy section: the agreed test coverage — cross-reference against the actual tests written.
  • Files section: the planned file manifest — cross-check against the diff. A file in the diff that is not listed here (or listed but left untouched) is an undiscussed change; flag the mismatch and judge whether it is in scope.
  • Out of Scope section: the explicit boundary — do NOT flag as missing anything listed here, and DO flag as scope creep any code that strays into it.

Read the full file on GitHub · 426 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. 3d ago First seen · 426 lines · 88 tokens per session scan A 42db6399d9d4

Subscribe to this mod's changes

code-critic is a skill published in the GitHub repository cunhaax/ai-workflow (5 stars, last pushed 6d ago), licensed MIT. It adds 88 tokens to every session and 4,709 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.