Back to Hooks

Backup Before Edit

Hooks pre-tool 449
Install Command
npx claude-code-templates@latest --hook pre-tool/backup-before-edit
View on GitHub

Content

JSON
{
"description": "Create automatic backup of files before any Edit operation for safety. This hook..."
"hooks": {
"PreToolUse": [1 item]
}
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.