Agent skill
code-reviewer
Automated code review using official Claude Code plugin with parallel agents. Integrates ralph-security for OWASP validation and ralph-frontend for accessibility checks. Uses LSP for efficient code navigation.
Install this agent skill to your Project
npx add-skill https://github.com/alfredolopez80/multi-agent-ralph-loop/tree/main/.claude/skills/code-reviewer
SKILL.md
Code Reviewer (Official Plugin)
Integrates the official Claude Code code-review plugin.
v2.88 Key Changes (MODEL-AGNOSTIC)
- Model-agnostic: Uses model configured in
~/.claude/settings.jsonor CLI/env vars - No flags required: Works with the configured default model
- Flexible: Works with GLM-5, Claude, Minimax, or any configured model
- Settings-driven: Model selection via
ANTHROPIC_DEFAULT_*_MODELenv vars
Quick Start
/code-review # Review current changes
/code-review --comment # Post review as PR comment
Architecture
4 parallel agents with confidence scoring (≥80):
- Agent #1: CLAUDE.md compliance
- Agent #2: CLAUDE.md compliance (redundancy)
- Agent #3: Bug detection (changes only)
- Agent #4: Git blame/history analysis
Features
- Multi-agent parallel review
- Confidence-based filtering
- Auto-skip closed/draft/trivial PRs
- Direct GitHub code links
Integration
Official plugin: ~/.claude-sneakpeek/zai/config/plugins/cache/anthropics/code-review/
Author: Boris Cherny (boris@anthropic.com) Version: 1.0.0
Agent Teams Integration (v2.88)
Optimal Scenario: Pure Custom Subagents
This skill uses Pure Custom Subagents (no Agent Teams) for focused code review operations.
Why Scenario B for Code Review
- Native multi-agent: Already uses 4 parallel agents via official plugin
- Read-only operation: Review should not modify code (tool restrictions critical)
- No coordination needed: Analysis is independent per file/PR
- Faster execution: Direct spawn avoids team creation overhead
Configuration
- No TeamCreate: Official plugin already handles parallelism
- Direct Task: Spawn ralph-reviewer for additional analysis if needed
- Tool Restrictions: Review agents restricted to Read/Grep/Glob (no Write/Edit)
- Model Inheritance: Use model configured in settings.json
Workflow Pattern
# Official plugin runs 4 parallel agents natively
/code-review → Plugin spawns 4 agents with confidence scoring
# For extended analysis (optional):
Task(subagent_type="ralph-reviewer", prompt="Deep analysis of specific file...")
→ Agent executes with restricted tools
→ Returns detailed findings
→ Complete
Tool Restrictions for Safety
| Agent | Allowed Tools | Purpose |
|---|---|---|
ralph-reviewer |
Read, Grep, Glob | Analysis only (no modifications) |
ralph-researcher |
Read, Grep, Glob | Context lookup only |
When NOT to Use Agent Teams
- Official plugin already provides parallel review
- Read-only analysis doesn't need team coordination
- Tool restrictions prevent accidental changes more effectively than teams
- When review is a one-shot operation (not multi-phase workflow)
Action Reporting (v2.93.0)
Esta skill genera reportes automáticos completos para trazabilidad:
Reporte Automático
Cuando esta skill completa, se genera automáticamente:
- En la conversación de Claude: Resultados visibles
- En el repositorio:
docs/actions/code-reviewer/{timestamp}.md - Metadatos JSON:
.claude/metadata/actions/code-reviewer/{timestamp}.json
Contenido del Reporte
Cada reporte incluye:
- ✅ Summary: Descripción de la tarea ejecutada
- ✅ Execution Details: Duración, iteraciones, archivos modificados
- ✅ Results: Errores encontrados, recomendaciones
- ✅ Next Steps: Próximas acciones sugeridas
Ver Reportes Anteriores
# Listar todos los reportes de esta skill
ls -lt docs/actions/code-reviewer/
# Ver el reporte más reciente
cat $(ls -t docs/actions/code-reviewer/*.md | head -1)
# Buscar reportes fallidos
grep -l "Status: FAILED" docs/actions/code-reviewer/*.md
Generación Manual (Opcional)
source .claude/lib/action-report-lib.sh
start_action_report "code-reviewer" "Task description"
# ... ejecución ...
complete_action_report "success" "Summary" "Recommendations"
Referencias del Sistema
- Action Reports System - Documentación completa
- action-report-lib.sh - Librería helper
- action-report-generator.sh - Generador
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
browser-test
Browser testing using Chrome DevTools MCP and Playwright for visual verification. Start dev server, navigate, screenshot, Lighthouse audit, console errors, network check. Use when: (1) verifying frontend changes, (2) accessibility auditing, (3) performance testing, (4) visual regression. Triggers: /browser-test, 'test in browser', 'visual test', 'lighthouse audit'.
crafting-effective-readmes
Use when writing or improving README files. Not all READMEs are the same — provides templates and guidance matched to your audience and project type.
stop-slop
A skill for removing AI-generated writing patterns ('slop') from prose. Eliminates telltale signs of AI writing like filler phrases, excessive hedging, overly formal language, and mechanical sentence structures. Use when: writing content that should sound human and natural, editing AI-generated drafts, cleaning up prose for publication, or any content that needs to sound authentic rather than AI-generated. Triggers: 'stop-slop', 'remove AI tells', 'clean up prose', 'make it sound human', 'edit AI writing'.
bugs
Bug hunting with Codex CLI Use when: (1) /bugs is invoked, (2) task relates to bugs functionality.
adversarial
Multi-Agent Adversarial Analysis System for code security
senior-software-engineer
Global skill enforcing senior software engineering best practices
Didn't find tool you were looking for?