self-critic

self-critic is a skill for Claude Code from Rockielab/rockie-codex. It costs 40 tokens per session (304 once invoked), scanned A, a copy of self-critic, Apache-2.0.

An adversarial review loop that repeatedly asks a fresh critic to inspect a deliverable. It applies fixes when serious problems are found and requires two consecutive clean reviews before returning the result.

In plain words
What is it for?
Use it to harden a release-notes section made from merged pull requests, with changes grouped as Added, Changed, and Fixed.
Why use it?
It catches critical issues that the original writer may overlook and prevents a deliverable from being returned after only one superficial check.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

Good fit Use it to harden a release-notes section made from merged pull requests, with changes grouped as Added, Changed, and Fixed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rockielab/rockie-codex/self-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.

Any agent
npx skills add Rockielab/rockie-codex --skill self-critic
Clone the repo
git clone --depth 1 https://github.com/Rockielab/rockie-codex

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockielab/rockie-codex/self-critic/github.svg)](https://agentmods.dev/skills/rockielab/rockie-codex/self-critic)
Your own site
<a href="https://agentmods.dev/skills/rockielab/rockie-codex/self-critic"><img src="https://agentmods.dev/badge/skills/rockielab/rockie-codex/self-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 self-critic

Your own site · 80×15
<a href="https://agentmods.dev/skills/rockielab/rockie-codex/self-critic"><img src="https://agentmods.dev/badge/skills/rockielab/rockie-codex/self-critic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 304 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 100% copy Near-identical to another mod 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.00040 $0.00304
Opus 5 $0.00020 $0.00152
Sonnet 5 $0.00008 $0.00061
Haiku 4.5 $0.00004 $0.00030

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

Security

Grade A, and why

self-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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (critic_loop.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

This is a copy

100% identical to self-critic — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

project-extension/agents/skills/agent-builder/examples/release-notes-writer/.claude/skills/self-critic/SKILL.md · 31 lines

What it actually says

self-critic — the agent's internal adversarial flow

This skill is wired in by default (the agent-builder is biased to emit self-adversarial agents). Before this agent returns ANY deliverable for the goal below, harden it here.

Goal under guard

Turn a list of merged pull requests into a clear, user-facing release-notes section grouped by Added / Changed / Fixed, with one plain-language line per change.

How to run

  1. Produce a draft deliverable.
  2. Run critic_loop.py with the domain critic (domain-critic.md) as a fresh, no-memory reviewer of the draft.
  3. On any CRITICAL: apply the cited fixes, re-run. The clean-pass counter resets to zero on any failed round.
  4. Converge only on TWO consecutive zero-CRITICAL passes (cap: MAX_ROUNDS=6). Never return a deliverable that has not converged.

Prefer the subagent mode (a fresh subagent per round). When the agent cannot spawn subagents, use the single-process fallback with a hard context reset between rounds — weaker isolation, same termination rules.

Prove the loop logic any time with critic_loop.py --selftest.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 31 lines · 40 tokens per session scan A a8f0057feac8

Subscribe to this mod's changes

self-critic is a skill published in the GitHub repository Rockielab/rockie-codex (20 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 40 tokens to every session and 304 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to self-critic, differing in 0 lines, and is treated as a copy.