npx claudepluginhub thlandgraf/cc-marketplace --plugin speclanDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash $CLAUDE_PLUGIN_ROOT/hooks/scripts/guard-locked-specs.sh",
"timeout": 5
}
],
"matcher": "Write|Edit"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash $CLAUDE_PLUGIN_ROOT/hooks/scripts/detect-context.sh",
"timeout": 10
}
],
"matcher": "*"
}
]
}"Intercepts PreToolUse on Edit tools with message to use edit_file or edit_symbol instead, avoiding prior file reads. Runs Node.js script on SessionStart for startup/clear/compact. Involves file writes."