code-roast

code-roast is a skill for Claude Code from MadAppGang/magus. It costs 38 tokens per session (3,008 once invoked), scanned C, original, MIT.

A humorous but detailed code review that finds named anti-patterns, rates their severity, points to file and line locations, and suggests fixes.

In plain words
What is it for?
Use it when you want a structured review or a playful roast of code in supported languages, including Python, TypeScript, JavaScript, Go, C#, SQL, React, and HTML/CSS.
Why use it?
It makes code-quality problems easier to spot and ensures criticism is tied to a specific issue and a practical correction.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dev plugin — 19 skills, 15 commands, 12 agents shipped together

Good fit Use it when you want a structured review or a playful roast of code in supported languages, including Python, TypeScript, JavaScript, Go, C#, SQL, React, and HTML/CSS.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MadAppGang/magus
Claude Code
/plugin install dev

Made for: Claude Code.

Or install dev, the plugin that ships this one along with the rest of its 19 skills, 15 commands, 12 agents.

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-roast

README.md
[![agentmods](https://agentmods.dev/badge/skills/madappgang/magus/code-roast/github.svg)](https://agentmods.dev/skills/madappgang/magus/code-roast)
Your own site
<a href="https://agentmods.dev/skills/madappgang/magus/code-roast"><img src="https://agentmods.dev/badge/skills/madappgang/magus/code-roast/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 code-roast

Your own site · 80×15
<a href="https://agentmods.dev/skills/madappgang/magus/code-roast"><img src="https://agentmods.dev/badge/skills/madappgang/magus/code-roast.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,008 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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.00038 $0.03008
Opus 5.5 $0.00015 $0.01203
Sonnet 5.5 $0.00008 $0.00602
Haiku 4.5 $0.00004 $0.00301

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

Security

Grade C, and why

code-roast scanned grade C 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 22d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| **NUCLEAR** | User explicitly says "nuclear" | Scorched earth | Full creative mode, absurdist escalation | "The only fix is `git rm -rf` and starting over. I'm kidding. Mostly." |
plugins/dev/skills/code-roast/SKILL.md · 374 lines

How it starts

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

Code Roast Skill

Overview

The Code Roast skill performs a humorous but technically rigorous code quality analysis using a registry of 192 anti-patterns across 8 languages plus universal categories.

Core Rules:

  1. Cite file:line — every sin gets a precise location
  2. Punch the code, not the coder — humor targets the artifact, never the author
  3. Every roast has a fix — no ridicule without redemption
  4. Severity-sorted — CAPITAL offenses first, parking tickets last
  5. Three-tier detection — built-in grep always works; CLI tools and cloud APIs are optional bonuses

What it covers: Go, Java, C#, TypeScript/JavaScript, Python, React, HTML/CSS, SQL, universal patterns (SOLID, microservices, testing, CI/CD, dependencies, concurrency), and AI-generated code ("slop") detection.


Phase 0: Load References

Before starting, read the companion files for this skill:

  1. Read sin-registry.md — but ONLY the sections relevant to the detected languages in the target code. Do NOT read all 192 patterns if the project is Go-only.
  2. Read detection-patterns.md — focus on Tier 1 patterns for detected languages, then check Tier 2 tool availability.

Language detection: Look at file extensions in the target scope to determine which language sections to load.


Phase 1: Acquire Target

Determine what code to roast. In priority order:

  1. User specified files/dirs — if the user said "roast src/auth/", use that
  2. Changes — if the user said "roast my changes", "roast this PR" or "roast my recent work", capture the review surfaces with the plugin's script. Never hand-roll a git diff range here — three sites once did, and all three were wrong in different ways:
    bun "${CLAUDE_PLUGIN_ROOT}/scripts/capture-review-surfaces.ts" \
      --repo "$(git rev-parse --show-toplevel)"
    
    It prints one ##### SURFACE: <label> ##### block per surface — branch commits vs base, staged, unstaged, untracked. The target is the set of files those patches touch (--stat gives the list without the bodies). If it warns that no base branch resolved, say the roast does not cover committed branch work. If it prints nothing, there is nothing to roast — say so; do not widen to a range of your own.
  3. Full project scan — if the user said "roast everything" or "roast the codebase"

Read the full file on GitHub · 374 lines

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. 22d ago Changed b9716854c914
  2. 1mo ago First seen · 374 lines · 38 tokens per session scan C d0266d29f4a5

Subscribe to this mod's changes

code-roast is a skill published in the GitHub repository MadAppGang/magus (13 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 3,008 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

openclaw/clawhub · 17 tokens

omh-code-review

This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 48 tokens

revdiff-plan

Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…

umputun/revdiff · 84 tokens

asplos-writing-style

Use when drafting or revising ASPLOS prose — engineering the first two pages that rapid review actually reads, stating the cross-layer insight as one quotable sentence, structuring per-layer mechanism sections, writing bounded claims, and fitting everything into 11 self-contained pages that include figures and…

brycewang-stanford/Awesome-Journal-Skills · 65 tokens

explore-unknowns

Guide the user through a quadrant walk that maps the unknowns of a task — open by listing the known knowns, then work through known unknowns, unknown knowns, and unknown unknowns one stage at a time, ending with a complete four-quadrant map in the user's hands. Use when a request is ambiguous or underspecified, the…

dzhng/skills · 162 tokens

re0-merge

Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…

LilMGenius/paperthin · 70 tokens