What does this skill do?

The Skill Editor Guardian installs a PreToolUse hook that intercepts the Edit, Write, and Bash tools. Upon detecting the first edit to a file or a destructive command, it blocks the action and requires the assistant to gather specific details: affected importers, data schemas, and the user’s exact command. Only after this information is provided is the user allowed to retry the action.

Protection of Critical Files
Block editing of modules with multiple importers until you verify which files depend on them.
Research on Data Schemas
It requires you to check field names, structure, and date formats before modifying files that read or write data.
Safe Destructive Commands
Require a rollback plan and a list of affected files before executing commands such as `git reset --hard`.
Respect for Team Leaders
Require the assistant to cite the user's instructions and verify the existing architecture before proposing changes.

Usage examples

🛡️ Edit a file with dependencies
Modify src/utils/dateFormatter.js so that it uses the ISO 8601 format.
⚠️ Execute destructive command
Run `git reset --hard origin/main` to discard all my local changes.
🔍 Check before you write
Create a new configuration file for the payments module in src/config/payments.js.
🏗️ Architectural Change
Refactor the authentication service to use dependency injection.

Features

Hook PreToolUse Intercepts Edit, Write, and Bash before they are executed, blocking the initial action.
Required List of Facts Automatically generates points to investigate based on the type of action: importers, schemes, user instructions.
Unlock per session Once the facts have been presented, the same file or command is not blocked again during the session.
Reversion Plans Requires documentation on how to reverse destructive commands before allowing them to be executed.
Compatible with Grep and Glob It includes search tools that allow the assistant to investigate project dependencies and patterns.

Frequently asked questions

Intercepts Edit, Write, and Bash. Any attempt to edit a file or execute a destructive command is blocked until the required information is provided.
No. Once the assistant has researched and presented the facts, the system allows for a retry and does not block the same file or command again during the session.
No. The skill uses Claude's native tools (Grep, Glob, Edit, Write, Bash) and a PreToolUse hook. It does not require any external MCP.
Yes. You can disable or remove the PreToolUse hook in Claude's settings if you need to make edits without prior verification.
Edition Guardian — Assumption-Free Code with Claude AI

¿Prefieres escuchar el contenido? Genera la narración de audio con un clic.