automatic-code-review
Automatic semantic code review triggered after file modifications. Hook-driven skill that logs file changes via PostToolUse and runs the automatic-code-reviewer agent on Stop. Not user-invocable — triggered automatically by lifecycle hooks.
Automatic Code Review
Hook-driven skill that performs semantic code review after Claude finishes modifying files.
How It Works
- PostToolUse hook — Logs every
Write,Edit, orMultiEditoperation to/tmp/event-log-{SESSION_ID}.jsonl - Stop hook — Checks for new file modifications since the last review, then triggers the
automatic-code-revieweragent - Agent — Reads project-specific rules from the configured
rulesFileand reviews only the changed files
Configuration
Settings in .claude/settings.json:
{
"automaticCodeReview": {
"enabled": true,
"fileExtensions": ["ts", "tsx"],
"rulesFile": ".claude/automatic-code-review/rules.md"
}
}
Set "enabled": false to disable for a project.
Components
../../agents/automatic-code-reviewer.md— Review agent (model: haiku, tools: Read, Grep, Glob) — lives at plugin rootagents/../../hooks/hooks.json— Hook manifest (PostToolUse + Stop) — merged into plugin roothooks/../../scripts/automatic-code-review-plugin.sh— Shell script for logging and review triggering — lives at plugin rootscripts/default-rules.md— Default semantic review rules (stays with skill)