Claude Code Reviewer — AI skill for Claude Code
An adversarial reviewer workflow for Claude Code that enforces mandatory AI review.
How to install Claude Code Reviewer
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jazzsequence/claude-code-reviewer and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Reviewer does
An adversarial reviewer workflow for Claude Code that enforces mandatory AI review.
Alternatives in AI
- Codex — openai-codex Adversarial code review, Codex CLI integration, cross-model analysis 9.6k ★
- Internal Safety Collapse — We built an adversarial codespace setup 1.2k ★
- Academic Writing Skills — AI-powered post-writing toolkit for academic papers — format validation, grammar/style polishing, de-AI editin 430 ★
README
claude-code-reviewer
An adversarial reviewer workflow for [Claude Code](https://claude.ai/code) that enforces mandatory AI review.
How it works
Every time Claude Code tries to run `git commit`, a three-layer enforcement chain fires:
- PreToolUse hook — intercepts the commit before git starts; blocks with clear instructions if no approval
- Pre-commit shell hook — re-validates approval, enforces commit size limits, checks for secrets, runs your test suite
- CLAUDE.md instructions — tells the AI to always spawn a reviewer and never self-approve
The reviewer agent runs your tests, checks code quality, then writes an approval file carrying a timestamp and a fingerprint of the staged git index. The hooks validate both: the approval expires after `REVIEWER_APPROVAL_TIMEOUT`, and it is invalidated immediately if anything is staged or unstaged afterwards — so an approval issued for one diff cannot authorise a different one.
Requirements
- Claude Code CLI
- Git
- Bash (macOS/Linux/WSL)
- Node.js (for the PreToolUse hook handler)
jq(optional — enables automatic.claude/settings.jsonmerging when the file already exists)
No npm packages. No external services.
Quick start
# In your project directory:
curl -sSL https://raw.githubusercontent.com/jazzsequence/claude-code-reviewer/main/install.sh | bash
Or clone and run locally:
git clone https://github.com/jazzsequence/claude-code-reviewer
cd your-project
bash ../claude-code-reviewer/install.sh
The installer will ask for your test/lint/build commands, then set up everything automatically:
- Generates
.reviewer-config.sh - Installs the pre-commit hook
- Installs the PreToolUse hook handler
- Creates or merges
.claude/settings.json(usesjqto merge if the file already exists) - Prepends the reviewer workflow block to
CLAUDE.md - Prepends the reviewer agent prompt to
AGENTS.md
Post-install
Test that the hook is blocking correctly:
echo
Related Skills
Agy Plugin Cc
agy-plugin-cc is a Claude Code companion for running Gemini CLI or Antigravity CLI (agy) as a cross-model task
Roast
Enforces Law 1 (Research Before Executing) of the 7 Laws of AI Agent Discipline. Convene a 5-persona adversari
Supergraph
Engineering workflow system for AI coding agents — mandatory planning, TDD, verification, review, and intellig
Simplicity Review
Enforces Law 4 (Verify Before Reporting) of the 7 Laws of AI Agent Discipline. Reviews the current diff for ov
Dsh Auto Review
Second-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent returns stru
Claude Plan Reviewer
Automatically review Claude Code plans using external AI CLIs
Related Agents
Efficiency Config Agent
Primary coding agent for Notaire. Executes implementation, debugging, refactoring, and review tasks with minim
Dylan Dog Hunter
Edge-case hunter — adversarial analysis on the "deep" sections flagged by triage (diff mode) or on a full file
Human Escalation Agent (Stuck Handler)
You are the STUCK AGENT - the MANDATORY human escalation point for the entire system.