code-review

Intercept file changes and require per-file, per-hunk approval before writing.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/T0MMMMM/code-review-skill --skill code-review-t0mmmmm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review
Source: https://github.com/T0MMMMM/code-review-skill/tree/main/code-review
Command: npx skills add https://github.com/T0MMMMM/code-review-skill --skill code-review-t0mmmmm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Intercepts all file changes Claude is about to make and presents a structured review before any write, preventing silent or unintended edits.

Core Features & Use Cases

  • Per-file and per-hunk review: Decide for each changed file and each patch whether to accept, reject, or edit.
  • Environment-specific UIs: On Claude.ai, an interactive React diff viewer; on Claude Code (terminal), a formatted diff list with numbered options.
  • Enforced pre-write checks: Always consult this skill before calling file-write tools like str_replace or create_file.
  • Safe defaults: Even trivial changes go through review to avoid silent writes.

Quick Start

Ask Claude to intercept proposed file changes and present a structured review before saving to disk.

Frequently Asked Questions about code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I intercept file changes and require approval before Claude writes to disk?

To intercept file changes before they are written, you need a pre-write check mechanism that halts operations like create, modify, rename, or delete actions. This skill enforces that review process, presenting a structured diff for every patch before any file is saved.

Can I review file diffs per hunk instead of accepting entire file changes at once?

Yes, per-hunk review allows you to decide for each specific patch whether to accept, reject, or edit it. This granular approach ensures you apply file changes selectively rather than approving an entire modified file blindly.

Does the diff viewer work with both Claude.ai and Claude Code?

The diff viewer supports both Claude.ai and Claude Code environments. It provides an interactive React diff viewer for Claude.ai and a formatted structured text diff list with numbered options for the Claude Code terminal interface.

What is a pre-write check and how does it prevent unintended edits?

A pre-write check is an enforced step that intercepts all file changes before they are applied to disk. It prevents unintended edits by requiring a structured review of every trivial or significant change, ensuring silent writes never occur without explicit approval.

How do I stop Claude from automatically modifying code, configs, and docs?

You can stop automatic modifications by enforcing a pre-write check that intercepts file changes across code, configs, docs, and data. This requires an interactive review of the proposed diff before any write tool executes the operation.

Are there limitations to enforcing file write approvals for every single change?

The main limitation of enforcing file write approvals is that even trivial changes go through the review process. While this ensures safe defaults and prevents silent edits, it requires manual interaction for every file and hunk before applying changes to disk.