pisan-labs

Code Review Gauntlet — Security skill for Claude Code

Security community

A timed code review game: click the lines with planted bugs, security holes and code smells in JavaScript, Python and SQL snippets, then see every defect explained with its fix.

How to install Code Review Gauntlet

This entry records only its repository, not the path inside it, so there is no exact command to give. Open pisan-labs/code-review-gauntlet and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Code Review Gauntlet does

A timed code review game: click the lines with planted bugs, security holes and code smells in JavaScript, Python and SQL snippets, then see every defect explained with its fix. Seeded puzzles, a shared daily challenge and a skill radar, all offline. Built with Claude Code.

Alternatives in Security

  • Marketplace — Security-audited skills for Claude, Codex & Claude Code 247 ★
  • Tier 3 Code Refinement Report — Date: 2026-03-20 Status: ALL 54 FINDINGS IMPLEMENTED Scope: Full codebase (18 plugins, 888 files, ~266K lines) 222 ★
  • Roast Repo — Deliver a brutally honest, technically sharp roast of the current repository 186 ★

README

Code Review Gauntlet

Race to spot planted bugs, security holes, and code smells in realistic code snippets before the timer runs out — then get an annotated explainer of everything you missed.

![A Novice round plants two defects in a JavaScript comment renderer; flagging the innerHTML line and submitting scores 100 points, marks the found XSS line green and the missed div line red, and explains each defect with its fix](demo.gif)

How a round works

  1. Pick a tier (novice / intermediate / expert) or play the shared daily challenge.
  2. A snippet appears with 1–3 planted defects and a tier-scaled countdown (90/120/150 seconds). Click every line you would flag in review.
  3. Submit (or run out of time). Every defect is revealed with its category, root cause, and fix; found lines are green, missed lines red, false flags amber.
  4. Scoring: 100 points per defect found, −25 per clean line flagged, and a time bonus only when you found everything — so spraying flags or racing past bugs both lose. Grades run D to S.

Your **reviewer profile** (localStorage) tracks rounds, best/average score, daily streak, and a radar chart of accuracy across the five defect categories: logic, null-safety, security, performance, style.

The deterministic puzzle engine

The original idea called for Claude API puzzle generation and a Supabase leaderboard. Both are replaced with deterministic client-side logic:

  • A library of 11 hand-written clean templates (JavaScript, Python, SQL) carries a catalogue of 51 single-line mutations, each tagged with a category, tier, title, root-cause explanation, and fix. Defects range from off-by-one lo