Skip to content

conventions-guard.mjs

  • Event: PreToolUse Edit/Write
  • Type: wall: blocks the action and says why (exits with code 2)

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.

See the code of conventions-guard.mjs on GitHub