File Protection
Hooks security 1,607
Protect critical files from accidental modification. Prevents editing of important system files, configuration files, and production code.
npx claude-code-templates@latest --hook security/file-protection claude-code — file-protection
Content
JSON
{
"description": "Protect critical files from accidental modification. Prevents editing of importa..."
"hooks": {
"PreToolUse": [1 item]
}
}