chore(hooks): remove config-protection edit-block guardrail

Full removal per user request: the PreToolUse hook that blocked model
Edit/Write on quality-gate files (settings.json, gitflow.sh, .githooks,
doctor.sh, hooks, lib/tests, lint configs) plus its one-shot sentinel.

- delete hooks/config-protection.sh
- delete lib/tests/config-protection.test.sh
- deregister the hook from settings.json (rtk-rewrite PreToolUse kept)
- drop the README mention

Residual protection unchanged: gitflow pre-commit guard + Gitea branch
protection still block direct code commits to main/develop.
This commit is contained in:
Bastien Chanot
2026-07-17 21:56:32 +02:00
parent 23c8c290d7
commit 0e1b89c71a
4 changed files with 1 additions and 150 deletions
-10
View File
@@ -271,16 +271,6 @@
"command": "bash ~/.claude/hooks/rtk-rewrite.sh"
}
]
},
{
"matcher": "Edit|Write|MultiEdit",
"hooks": [
{
"type": "command",
"command": "bash ~/.claude/hooks/config-protection.sh",
"timeout": 5
}
]
}
],
"UserPromptSubmit": [