{ "hooks": { "SessionStart": [ { "hooks": [ { "type": "command", "command": "rm -rf \"$CLAUDE_PROJECT_DIR/.claude/.spec-injected\"" } ] } ], "PostCompact": [ { "hooks": [ { "type": "command", "command": "rm -rf \"$CLAUDE_PROJECT_DIR/.claude/.spec-injected\"" } ] } ], "PreToolUse": [ { "matcher": "Edit|Write|MultiEdit", "hooks": [ { "type": "command", "command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/check-redlines.js\"", "timeout": 10, "statusMessage": "校验机械红线…" }, { "type": "command", "command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/remind-docs.js\"", "timeout": 15, "statusMessage": "注入/校验开发规范…" } ] } ] } }