conventions-guard.mjs
- Event: PreToolUse Edit/Write
- Type: wall: blocks the action and says why (exits with code 2)
What it does
Section titled “What it does”BLOCKS code that breaks the executable rules in conventions.json (/adopt): the project’s convention wins. Cannot be turned off. The path is normalized (C:, C:/, Git Bash /c/, relative) before the rules apply.