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.
npx agentmods add skills/cunhaax/ai-workflow/code-criticnpx skills add cunhaax/ai-workflow --skill code-criticgit clone --depth 1 https://github.com/cunhaax/ai-workflowWrote 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.
[](https://agentmods.dev/skills/cunhaax/ai-workflow/code-critic)<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>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.
| Model | Per session | Once 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 |
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.
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.md
→ Commands: 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>-nhas a committed test (via the[AC-<slug>-n]tags in Test Strategy) that would fail if the criterion were broken — a criterion without one isFAIL. - 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>-nhas 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 isFAIL. - 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.
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.
- 3d ago First seen · 426 lines · 88 tokens per session scan A 42db6399d9d4
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.
Other skills, from other repositories
golden-chat
Use when testing the goldenchat golden build.
golden-epub
Use when testing the epub golden build.
golden-html-multi
Use when testing the multi-file html build.
golden-pdf
Use when testing the pdf golden build.
golden-man
Use when testing the man golden build.
golden-man-single
Use when testing the man golden build.