npx claudepluginhub dio0550/d-market --plugin spec-pluginDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bash -c '[ -d .specs ] || exit 0; moved=0; for dir in .specs/[0-9][0-9][0-9]-*/; do [ -d \"$dir\" ] || continue; [ -f \"${dir}PLANNING\" ] && continue; mkdir -p .specs/archive && mv \"$dir\" .specs/archive/ && moved=$((moved+1)); done; [ $moved -gt 0 ] && echo \"Archived $moved completed spec(s) to .specs/archive/\" >&2; exit 0'"
}
]
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "bash -c 'files=$(find .specs -name PLANNING 2>/dev/null); if [ -n \"$files\" ]; then echo \"\\n=== SPEC-DRIVEN PLANNING IN PROGRESS ===\\n\" >&2; for f in $files; do dir=$(dirname \"$f\"); echo \"Planning: ${dir##*/}\" >&2; done; echo \"\\nDO NOT IMPLEMENT CODE.\\nContinue planning and spec creation only.\\nAsk user before transitioning to implementation.\\n\" >&2; fi; exit 0'"
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/enforce-diagrams.sh\""
}
],
"matcher": "Write"
}
]
}"{\"riskFlags\": {\"touchesBash\": false, \"matchAllTools\": false, \"touchesFileWrites\": true}, \"typeStats\": {\"command\": 3}, \"eventStats\": {\"Stop\": 1, \"PreCompact\": 1, \"PreToolUse\": 1}, \"originCounts\": {\"absolutePaths\": 0, \"pluginScripts\": 1, \"projectScripts\": 0}, \"timeoutStats\": {\"commandsWithoutTimeout\": 3}}"