/plugin marketplace add ThilinaTLM/claude-plugin/plugin install spec-driven-dev@tlmtechDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "if [ -d .specs/active ] && [ \"$(ls -A .specs/active 2>/dev/null)\" ]; then echo '[spec-driven-dev] Remember to update checkpoint.md if you made progress'; fi"
}
],
"matcher": ""
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "file_path=$(jq -r '.tool_input.file_path // empty'); if echo \"$file_path\" | grep -q 'tasks\\.yaml$'; then spec validate \"$(dirname \"$file_path\")\" -q 2>/dev/null || true; fi"
}
],
"matcher": "Edit|Write"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "if [ -d .specs/active ] && [ \"$(ls -A .specs/active 2>/dev/null)\" ]; then spec context $(ls .specs/active | head -1) --level min --plain 2>/dev/null || true; fi"
}
],
"matcher": ""
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 3
},
"eventStats": {
"Stop": 1,
"PostToolUse": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 3
}
}