Template
Mechanically enforces ticket-governed work: blocks modifying operations
until an active ticket is set (echo '#NNN' > .crush/active-ticket).
Exempts read-only tools and management commands.
💘 Generated with Crush
Assisted-by: Crush:glm-5.2
12 lines
211 B
JSON
12 lines
211 B
JSON
{
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "^(bash|edit|write|multiedit|lsp_replace_symbol|lsp_rename)$",
|
|
"command": "./hooks/ticket-gate.sh",
|
|
"timeout": 5
|
|
}
|
|
]
|
|
}
|
|
}
|