[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-anthropic-hook-development":3,"mdc-gywywh-key":34,"related-org-anthropic-hook-development":7384,"related-repo-anthropic-hook-development":7572},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":20,"repoUrl":21,"updatedAt":22,"license":23,"forks":24,"topics":25,"repo":29,"sourceUrl":32,"mdContent":33},"hook-development","create and implement plugin hooks","This skill should be used when the user asks to \"create a hook\", \"add a PreToolUse\u002FPostToolUse\u002FStop hook\", \"validate tool use\", \"implement prompt-based hooks\", \"use ${CLAUDE_PLUGIN_ROOT}\", \"set up event-driven automation\", \"block dangerous commands\", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"anthropic","Anthropic","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fanthropic.png","anthropics",[13,17],{"name":14,"slug":15,"type":16},"Validation","validation","tag",{"name":18,"slug":19,"type":16},"Plugin Development","plugin-development",32228,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official","2026-04-10T04:55:48.186899",null,3591,[26,27,28],"claude-code","mcp","skills",{"repoUrl":21,"stars":20,"forks":24,"topics":30,"description":31},[26,27,28],"Official, Anthropic-managed directory of high quality Claude Code Plugins.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-plugins-official\u002Ftree\u002FHEAD\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fhook-development","---\nname: hook-development\ndescription: This skill should be used when the user asks to \"create a hook\", \"add a PreToolUse\u002FPostToolUse\u002FStop hook\", \"validate tool use\", \"implement prompt-based hooks\", \"use ${CLAUDE_PLUGIN_ROOT}\", \"set up event-driven automation\", \"block dangerous commands\", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.\nversion: 0.1.0\n---\n\n# Hook Development for Claude Code Plugins\n\n## Overview\n\nHooks are event-driven automation scripts that execute in response to Claude Code events. Use hooks to validate operations, enforce policies, add context, and integrate external tools into workflows.\n\n**Key capabilities:**\n- Validate tool calls before execution (PreToolUse)\n- React to tool results (PostToolUse)\n- Enforce completion standards (Stop, SubagentStop)\n- Load project context (SessionStart)\n- Automate workflows across the development lifecycle\n\n## Hook Types\n\n### Prompt-Based Hooks (Recommended)\n\nUse LLM-driven decision making for context-aware validation:\n\n```json\n{\n  \"type\": \"prompt\",\n  \"prompt\": \"Evaluate if this tool use is appropriate: $TOOL_INPUT\",\n  \"timeout\": 30\n}\n```\n\n**Supported events:** Stop, SubagentStop, UserPromptSubmit, PreToolUse\n\n**Benefits:**\n- Context-aware decisions based on natural language reasoning\n- Flexible evaluation logic without bash scripting\n- Better edge case handling\n- Easier to maintain and extend\n\n### Command Hooks\n\nExecute bash commands for deterministic checks:\n\n```json\n{\n  \"type\": \"command\",\n  \"command\": \"bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate.sh\",\n  \"timeout\": 60\n}\n```\n\n**Use for:**\n- Fast deterministic validations\n- File system operations\n- External tool integrations\n- Performance-critical checks\n\n## Hook Configuration Formats\n\n### Plugin hooks.json Format\n\n**For plugin hooks** in `hooks\u002Fhooks.json`, use wrapper format:\n\n```json\n{\n  \"description\": \"Brief explanation of hooks (optional)\",\n  \"hooks\": {\n    \"PreToolUse\": [...],\n    \"Stop\": [...],\n    \"SessionStart\": [...]\n  }\n}\n```\n\n**Key points:**\n- `description` field is optional\n- `hooks` field is required wrapper containing actual hook events\n- This is the **plugin-specific format**\n\n**Example:**\n```json\n{\n  \"description\": \"Validation hooks for code quality\",\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Write\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fvalidate.sh\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n### Settings Format (Direct)\n\n**For user settings** in `.claude\u002Fsettings.json`, use direct format:\n\n```json\n{\n  \"PreToolUse\": [...],\n  \"Stop\": [...],\n  \"SessionStart\": [...]\n}\n```\n\n**Key points:**\n- No wrapper - events directly at top level\n- No description field\n- This is the **settings format**\n\n**Important:** The examples below show the hook event structure that goes inside either format. For plugin hooks.json, wrap these in `{\"hooks\": {...}}`.\n\n## Hook Events\n\n### PreToolUse\n\nExecute before any tool runs. Use to approve, deny, or modify tool calls.\n\n**Example (prompt-based):**\n```json\n{\n  \"PreToolUse\": [\n    {\n      \"matcher\": \"Write|Edit\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Validate file write safety. Check: system paths, credentials, path traversal, sensitive content. Return 'approve' or 'deny'.\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Output for PreToolUse:**\n```json\n{\n  \"hookSpecificOutput\": {\n    \"permissionDecision\": \"allow|deny|ask\",\n    \"updatedInput\": {\"field\": \"modified_value\"}\n  },\n  \"systemMessage\": \"Explanation for Claude\"\n}\n```\n\n### PostToolUse\n\nExecute after tool completes. Use to react to results, provide feedback, or log.\n\n**Example:**\n```json\n{\n  \"PostToolUse\": [\n    {\n      \"matcher\": \"Edit\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Analyze edit result for potential issues: syntax errors, security vulnerabilities, breaking changes. Provide feedback.\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Output behavior:**\n- Exit 0: stdout shown in transcript\n- Exit 2: stderr fed back to Claude\n- systemMessage included in context\n\n### Stop\n\nExecute when main agent considers stopping. Use to validate completeness.\n\n**Example:**\n```json\n{\n  \"Stop\": [\n    {\n      \"matcher\": \"*\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Verify task completion: tests run, build succeeded, questions answered. Return 'approve' to stop or 'block' with reason to continue.\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Decision output:**\n```json\n{\n  \"decision\": \"approve|block\",\n  \"reason\": \"Explanation\",\n  \"systemMessage\": \"Additional context\"\n}\n```\n\n### SubagentStop\n\nExecute when subagent considers stopping. Use to ensure subagent completed its task.\n\nSimilar to Stop hook, but for subagents.\n\n### UserPromptSubmit\n\nExecute when user submits a prompt. Use to add context, validate, or block prompts.\n\n**Example:**\n```json\n{\n  \"UserPromptSubmit\": [\n    {\n      \"matcher\": \"*\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Check if prompt requires security guidance. If discussing auth, permissions, or API security, return relevant warnings.\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n### SessionStart\n\nExecute when Claude Code session begins. Use to load context and set environment.\n\n**Example:**\n```json\n{\n  \"SessionStart\": [\n    {\n      \"matcher\": \"*\",\n      \"hooks\": [\n        {\n          \"type\": \"command\",\n          \"command\": \"bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fload-context.sh\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Special capability:** Persist environment variables using `$CLAUDE_ENV_FILE`:\n```bash\necho \"export PROJECT_TYPE=nodejs\" >> \"$CLAUDE_ENV_FILE\"\n```\n\nSee `examples\u002Fload-context.sh` for complete example.\n\n### SessionEnd\n\nExecute when session ends. Use for cleanup, logging, and state preservation.\n\n### PreCompact\n\nExecute before context compaction. Use to add critical information to preserve.\n\n### Notification\n\nExecute when Claude sends notifications. Use to react to user notifications.\n\n## Hook Output Format\n\n### Standard Output (All Hooks)\n\n```json\n{\n  \"continue\": true,\n  \"suppressOutput\": false,\n  \"systemMessage\": \"Message for Claude\"\n}\n```\n\n- `continue`: If false, halt processing (default true)\n- `suppressOutput`: Hide output from transcript (default false)\n- `systemMessage`: Message shown to Claude\n\n### Exit Codes\n\n- `0` - Success (stdout shown in transcript)\n- `2` - Blocking error (stderr fed back to Claude)\n- Other - Non-blocking error\n\n## Hook Input Format\n\nAll hooks receive JSON via stdin with common fields:\n\n```json\n{\n  \"session_id\": \"abc123\",\n  \"transcript_path\": \"\u002Fpath\u002Fto\u002Ftranscript.txt\",\n  \"cwd\": \"\u002Fcurrent\u002Fworking\u002Fdir\",\n  \"permission_mode\": \"ask|allow\",\n  \"hook_event_name\": \"PreToolUse\"\n}\n```\n\n**Event-specific fields:**\n\n- **PreToolUse\u002FPostToolUse:** `tool_name`, `tool_input`, `tool_result`\n- **UserPromptSubmit:** `user_prompt`\n- **Stop\u002FSubagentStop:** `reason`\n\nAccess fields in prompts using `$TOOL_INPUT`, `$TOOL_RESULT`, `$USER_PROMPT`, etc.\n\n## Environment Variables\n\nAvailable in all command hooks:\n\n- `$CLAUDE_PROJECT_DIR` - Project root path\n- `$CLAUDE_PLUGIN_ROOT` - Plugin directory (use for portable paths)\n- `$CLAUDE_ENV_FILE` - SessionStart only: persist env vars here\n- `$CLAUDE_CODE_REMOTE` - Set if running in remote context\n\n**Always use ${CLAUDE_PLUGIN_ROOT} in hook commands for portability:**\n\n```json\n{\n  \"type\": \"command\",\n  \"command\": \"bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate.sh\"\n}\n```\n\n## Plugin Hook Configuration\n\nIn plugins, define hooks in `hooks\u002Fhooks.json`:\n\n```json\n{\n  \"PreToolUse\": [\n    {\n      \"matcher\": \"Write|Edit\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Validate file write safety\"\n        }\n      ]\n    }\n  ],\n  \"Stop\": [\n    {\n      \"matcher\": \"*\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Verify task completion\"\n        }\n      ]\n    }\n  ],\n  \"SessionStart\": [\n    {\n      \"matcher\": \"*\",\n      \"hooks\": [\n        {\n          \"type\": \"command\",\n          \"command\": \"bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fload-context.sh\",\n          \"timeout\": 10\n        }\n      ]\n    }\n  ]\n}\n```\n\nPlugin hooks merge with user's hooks and run in parallel.\n\n## Matchers\n\n### Tool Name Matching\n\n**Exact match:**\n```json\n\"matcher\": \"Write\"\n```\n\n**Multiple tools:**\n```json\n\"matcher\": \"Read|Write|Edit\"\n```\n\n**Wildcard (all tools):**\n```json\n\"matcher\": \"*\"\n```\n\n**Regex patterns:**\n```json\n\"matcher\": \"mcp__.*__delete.*\"  \u002F\u002F All MCP delete tools\n```\n\n**Note:** Matchers are case-sensitive.\n\n### Common Patterns\n\n```json\n\u002F\u002F All MCP tools\n\"matcher\": \"mcp__.*\"\n\n\u002F\u002F Specific plugin's MCP tools\n\"matcher\": \"mcp__plugin_asana_.*\"\n\n\u002F\u002F All file operations\n\"matcher\": \"Read|Write|Edit\"\n\n\u002F\u002F Bash commands only\n\"matcher\": \"Bash\"\n```\n\n## Security Best Practices\n\n### Input Validation\n\nAlways validate inputs in command hooks:\n\n```bash\n#!\u002Fbin\u002Fbash\nset -euo pipefail\n\ninput=$(cat)\ntool_name=$(echo \"$input\" | jq -r '.tool_name')\n\n# Validate tool name format\nif [[ ! \"$tool_name\" =~ ^[a-zA-Z0-9_]+$ ]]; then\n  echo '{\"decision\": \"deny\", \"reason\": \"Invalid tool name\"}' >&2\n  exit 2\nfi\n```\n\n### Path Safety\n\nCheck for path traversal and sensitive files:\n\n```bash\nfile_path=$(echo \"$input\" | jq -r '.tool_input.file_path')\n\n# Deny path traversal\nif [[ \"$file_path\" == *\"..\"* ]]; then\n  echo '{\"decision\": \"deny\", \"reason\": \"Path traversal detected\"}' >&2\n  exit 2\nfi\n\n# Deny sensitive files\nif [[ \"$file_path\" == *\".env\"* ]]; then\n  echo '{\"decision\": \"deny\", \"reason\": \"Sensitive file\"}' >&2\n  exit 2\nfi\n```\n\nSee `examples\u002Fvalidate-write.sh` and `examples\u002Fvalidate-bash.sh` for complete examples.\n\n### Quote All Variables\n\n```bash\n# GOOD: Quoted\necho \"$file_path\"\ncd \"$CLAUDE_PROJECT_DIR\"\n\n# BAD: Unquoted (injection risk)\necho $file_path\ncd $CLAUDE_PROJECT_DIR\n```\n\n### Set Appropriate Timeouts\n\n```json\n{\n  \"type\": \"command\",\n  \"command\": \"bash script.sh\",\n  \"timeout\": 10\n}\n```\n\n**Defaults:** Command hooks (60s), Prompt hooks (30s)\n\n## Performance Considerations\n\n### Parallel Execution\n\nAll matching hooks run **in parallel**:\n\n```json\n{\n  \"PreToolUse\": [\n    {\n      \"matcher\": \"Write\",\n      \"hooks\": [\n        {\"type\": \"command\", \"command\": \"check1.sh\"},  \u002F\u002F Parallel\n        {\"type\": \"command\", \"command\": \"check2.sh\"},  \u002F\u002F Parallel\n        {\"type\": \"prompt\", \"prompt\": \"Validate...\"}   \u002F\u002F Parallel\n      ]\n    }\n  ]\n}\n```\n\n**Design implications:**\n- Hooks don't see each other's output\n- Non-deterministic ordering\n- Design for independence\n\n### Optimization\n\n1. Use command hooks for quick deterministic checks\n2. Use prompt hooks for complex reasoning\n3. Cache validation results in temp files\n4. Minimize I\u002FO in hot paths\n\n## Temporarily Active Hooks\n\nCreate hooks that activate conditionally by checking for a flag file or configuration:\n\n**Pattern: Flag file activation**\n```bash\n#!\u002Fbin\u002Fbash\n# Only active when flag file exists\nFLAG_FILE=\"$CLAUDE_PROJECT_DIR\u002F.enable-strict-validation\"\n\nif [ ! -f \"$FLAG_FILE\" ]; then\n  # Flag not present, skip validation\n  exit 0\nfi\n\n# Flag present, run validation\ninput=$(cat)\n# ... validation logic ...\n```\n\n**Pattern: Configuration-based activation**\n```bash\n#!\u002Fbin\u002Fbash\n# Check configuration for activation\nCONFIG_FILE=\"$CLAUDE_PROJECT_DIR\u002F.claude\u002Fplugin-config.json\"\n\nif [ -f \"$CONFIG_FILE\" ]; then\n  enabled=$(jq -r '.strictMode \u002F\u002F false' \"$CONFIG_FILE\")\n  if [ \"$enabled\" != \"true\" ]; then\n    exit 0  # Not enabled, skip\n  fi\nfi\n\n# Enabled, run hook logic\ninput=$(cat)\n# ... hook logic ...\n```\n\n**Use cases:**\n- Enable strict validation only when needed\n- Temporary debugging hooks\n- Project-specific hook behavior\n- Feature flags for hooks\n\n**Best practice:** Document activation mechanism in plugin README so users know how to enable\u002Fdisable temporary hooks.\n\n## Hook Lifecycle and Limitations\n\n### Hooks Load at Session Start\n\n**Important:** Hooks are loaded when Claude Code session starts. Changes to hook configuration require restarting Claude Code.\n\n**Cannot hot-swap hooks:**\n- Editing `hooks\u002Fhooks.json` won't affect current session\n- Adding new hook scripts won't be recognized\n- Changing hook commands\u002Fprompts won't update\n- Must restart Claude Code: exit and run `claude` again\n\n**To test hook changes:**\n1. Edit hook configuration or scripts\n2. Exit Claude Code session\n3. Restart: `claude` or `cc`\n4. New hook configuration loads\n5. Test hooks with `claude --debug`\n\n### Hook Validation at Startup\n\nHooks are validated when Claude Code starts:\n- Invalid JSON in hooks.json causes loading failure\n- Missing scripts cause warnings\n- Syntax errors reported in debug mode\n\nUse `\u002Fhooks` command to review loaded hooks in current session.\n\n## Debugging Hooks\n\n### Enable Debug Mode\n\n```bash\nclaude --debug\n```\n\nLook for hook registration, execution logs, input\u002Foutput JSON, and timing information.\n\n### Test Hook Scripts\n\nTest command hooks directly:\n\n```bash\necho '{\"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"\u002Ftest\"}}' | \\\n  bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate.sh\n\necho \"Exit code: $?\"\n```\n\n### Validate JSON Output\n\nEnsure hooks output valid JSON:\n\n```bash\noutput=$(.\u002Fyour-hook.sh \u003C test-input.json)\necho \"$output\" | jq .\n```\n\n## Quick Reference\n\n### Hook Events Summary\n\n| Event | When | Use For |\n|-------|------|---------|\n| PreToolUse | Before tool | Validation, modification |\n| PostToolUse | After tool | Feedback, logging |\n| UserPromptSubmit | User input | Context, validation |\n| Stop | Agent stopping | Completeness check |\n| SubagentStop | Subagent done | Task validation |\n| SessionStart | Session begins | Context loading |\n| SessionEnd | Session ends | Cleanup, logging |\n| PreCompact | Before compact | Preserve context |\n| Notification | User notified | Logging, reactions |\n\n### Best Practices\n\n**DO:**\n- ✅ Use prompt-based hooks for complex logic\n- ✅ Use ${CLAUDE_PLUGIN_ROOT} for portability\n- ✅ Validate all inputs in command hooks\n- ✅ Quote all bash variables\n- ✅ Set appropriate timeouts\n- ✅ Return structured JSON output\n- ✅ Test hooks thoroughly\n\n**DON'T:**\n- ❌ Use hardcoded paths\n- ❌ Trust user input without validation\n- ❌ Create long-running hooks\n- ❌ Rely on hook execution order\n- ❌ Modify global state unpredictably\n- ❌ Log sensitive information\n\n## Additional Resources\n\n### Reference Files\n\nFor detailed patterns and advanced techniques, consult:\n\n- **`references\u002Fpatterns.md`** - Common hook patterns (8+ proven patterns)\n- **`references\u002Fmigration.md`** - Migrating from basic to advanced hooks\n- **`references\u002Fadvanced.md`** - Advanced use cases and techniques\n\n### Example Hook Scripts\n\nWorking examples in `examples\u002F`:\n\n- **`validate-write.sh`** - File write validation example\n- **`validate-bash.sh`** - Bash command validation example\n- **`load-context.sh`** - SessionStart context loading example\n\n### Utility Scripts\n\nDevelopment tools in `scripts\u002F`:\n\n- **`validate-hook-schema.sh`** - Validate hooks.json structure and syntax\n- **`test-hook.sh`** - Test hooks with sample input before deployment\n- **`hook-linter.sh`** - Check hook scripts for common issues and best practices\n\n### External Resources\n\n- **Official Docs**: https:\u002F\u002Fdocs.claude.com\u002Fen\u002Fdocs\u002Fclaude-code\u002Fhooks\n- **Examples**: See security-guidance plugin in marketplace\n- **Testing**: Use `claude --debug` for detailed logs\n- **Validation**: Use `jq` to validate hook JSON output\n\n## Implementation Workflow\n\nTo implement hooks in a plugin:\n\n1. Identify events to hook into (PreToolUse, Stop, SessionStart, etc.)\n2. Decide between prompt-based (flexible) or command (deterministic) hooks\n3. Write hook configuration in `hooks\u002Fhooks.json`\n4. For command hooks, create hook scripts\n5. Use ${CLAUDE_PLUGIN_ROOT} for all file references\n6. Validate configuration with `scripts\u002Fvalidate-hook-schema.sh hooks\u002Fhooks.json`\n7. Test hooks with `scripts\u002Ftest-hook.sh` before deployment\n8. Test in Claude Code with `claude --debug`\n9. Document hooks in plugin README\n\nFocus on prompt-based hooks for most use cases. Reserve command hooks for performance-critical or deterministic checks.\n",{"data":35,"body":37},{"name":4,"description":6,"version":36},"0.1.0",{"type":38,"children":39},"root",[40,49,56,62,71,101,107,114,119,261,271,279,302,308,313,430,438,461,467,473,491,688,696,729,737,1035,1041,1058,1172,1179,1201,1219,1225,1230,1235,1243,1463,1471,1653,1659,1664,1671,1883,1891,1909,1914,1919,1926,2138,2146,2273,2279,2284,2289,2295,2300,2307,2518,2523,2528,2535,2746,2763,2811,2824,2830,2835,2841,2846,2852,2857,2863,2869,2972,3005,3011,3041,3047,3052,3253,3261,3324,3351,3357,3362,3408,3416,3503,3509,3520,4159,4164,4170,4176,4184,4223,4231,4270,4278,4316,4324,4369,4379,4385,4574,4580,4586,4591,4850,4856,4861,5155,5175,5181,5274,5280,5395,5405,5411,5417,5428,5792,5800,5818,5824,5848,5854,5859,5867,6037,6045,6315,6323,6346,6356,6362,6368,6377,6385,6423,6431,6478,6484,6489,6507,6520,6526,6532,6551,6556,6562,6567,6662,6668,6673,6744,6750,6756,6942,6948,6956,6994,7002,7035,7041,7047,7052,7097,7103,7115,7160,7166,7178,7223,7229,7291,7297,7302,7373,7378],{"type":41,"tag":42,"props":43,"children":45},"element","h1",{"id":44},"hook-development-for-claude-code-plugins",[46],{"type":47,"value":48},"text","Hook Development for Claude Code Plugins",{"type":41,"tag":50,"props":51,"children":53},"h2",{"id":52},"overview",[54],{"type":47,"value":55},"Overview",{"type":41,"tag":57,"props":58,"children":59},"p",{},[60],{"type":47,"value":61},"Hooks are event-driven automation scripts that execute in response to Claude Code events. Use hooks to validate operations, enforce policies, add context, and integrate external tools into workflows.",{"type":41,"tag":57,"props":63,"children":64},{},[65],{"type":41,"tag":66,"props":67,"children":68},"strong",{},[69],{"type":47,"value":70},"Key capabilities:",{"type":41,"tag":72,"props":73,"children":74},"ul",{},[75,81,86,91,96],{"type":41,"tag":76,"props":77,"children":78},"li",{},[79],{"type":47,"value":80},"Validate tool calls before execution (PreToolUse)",{"type":41,"tag":76,"props":82,"children":83},{},[84],{"type":47,"value":85},"React to tool results (PostToolUse)",{"type":41,"tag":76,"props":87,"children":88},{},[89],{"type":47,"value":90},"Enforce completion standards (Stop, SubagentStop)",{"type":41,"tag":76,"props":92,"children":93},{},[94],{"type":47,"value":95},"Load project context (SessionStart)",{"type":41,"tag":76,"props":97,"children":98},{},[99],{"type":47,"value":100},"Automate workflows across the development lifecycle",{"type":41,"tag":50,"props":102,"children":104},{"id":103},"hook-types",[105],{"type":47,"value":106},"Hook Types",{"type":41,"tag":108,"props":109,"children":111},"h3",{"id":110},"prompt-based-hooks-recommended",[112],{"type":47,"value":113},"Prompt-Based Hooks (Recommended)",{"type":41,"tag":57,"props":115,"children":116},{},[117],{"type":47,"value":118},"Use LLM-driven decision making for context-aware validation:",{"type":41,"tag":120,"props":121,"children":126},"pre",{"className":122,"code":123,"language":124,"meta":125,"style":125},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"type\": \"prompt\",\n  \"prompt\": \"Evaluate if this tool use is appropriate: $TOOL_INPUT\",\n  \"timeout\": 30\n}\n","json","",[127],{"type":41,"tag":128,"props":129,"children":130},"code",{"__ignoreMap":125},[131,143,188,225,252],{"type":41,"tag":132,"props":133,"children":136},"span",{"class":134,"line":135},"line",1,[137],{"type":41,"tag":132,"props":138,"children":140},{"style":139},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[141],{"type":47,"value":142},"{\n",{"type":41,"tag":132,"props":144,"children":146},{"class":134,"line":145},2,[147,152,158,163,168,173,179,183],{"type":41,"tag":132,"props":148,"children":149},{"style":139},[150],{"type":47,"value":151},"  \"",{"type":41,"tag":132,"props":153,"children":155},{"style":154},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[156],{"type":47,"value":157},"type",{"type":41,"tag":132,"props":159,"children":160},{"style":139},[161],{"type":47,"value":162},"\"",{"type":41,"tag":132,"props":164,"children":165},{"style":139},[166],{"type":47,"value":167},":",{"type":41,"tag":132,"props":169,"children":170},{"style":139},[171],{"type":47,"value":172}," \"",{"type":41,"tag":132,"props":174,"children":176},{"style":175},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[177],{"type":47,"value":178},"prompt",{"type":41,"tag":132,"props":180,"children":181},{"style":139},[182],{"type":47,"value":162},{"type":41,"tag":132,"props":184,"children":185},{"style":139},[186],{"type":47,"value":187},",\n",{"type":41,"tag":132,"props":189,"children":191},{"class":134,"line":190},3,[192,196,200,204,208,212,217,221],{"type":41,"tag":132,"props":193,"children":194},{"style":139},[195],{"type":47,"value":151},{"type":41,"tag":132,"props":197,"children":198},{"style":154},[199],{"type":47,"value":178},{"type":41,"tag":132,"props":201,"children":202},{"style":139},[203],{"type":47,"value":162},{"type":41,"tag":132,"props":205,"children":206},{"style":139},[207],{"type":47,"value":167},{"type":41,"tag":132,"props":209,"children":210},{"style":139},[211],{"type":47,"value":172},{"type":41,"tag":132,"props":213,"children":214},{"style":175},[215],{"type":47,"value":216},"Evaluate if this tool use is appropriate: $TOOL_INPUT",{"type":41,"tag":132,"props":218,"children":219},{"style":139},[220],{"type":47,"value":162},{"type":41,"tag":132,"props":222,"children":223},{"style":139},[224],{"type":47,"value":187},{"type":41,"tag":132,"props":226,"children":228},{"class":134,"line":227},4,[229,233,238,242,246],{"type":41,"tag":132,"props":230,"children":231},{"style":139},[232],{"type":47,"value":151},{"type":41,"tag":132,"props":234,"children":235},{"style":154},[236],{"type":47,"value":237},"timeout",{"type":41,"tag":132,"props":239,"children":240},{"style":139},[241],{"type":47,"value":162},{"type":41,"tag":132,"props":243,"children":244},{"style":139},[245],{"type":47,"value":167},{"type":41,"tag":132,"props":247,"children":249},{"style":248},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[250],{"type":47,"value":251}," 30\n",{"type":41,"tag":132,"props":253,"children":255},{"class":134,"line":254},5,[256],{"type":41,"tag":132,"props":257,"children":258},{"style":139},[259],{"type":47,"value":260},"}\n",{"type":41,"tag":57,"props":262,"children":263},{},[264,269],{"type":41,"tag":66,"props":265,"children":266},{},[267],{"type":47,"value":268},"Supported events:",{"type":47,"value":270}," Stop, SubagentStop, UserPromptSubmit, PreToolUse",{"type":41,"tag":57,"props":272,"children":273},{},[274],{"type":41,"tag":66,"props":275,"children":276},{},[277],{"type":47,"value":278},"Benefits:",{"type":41,"tag":72,"props":280,"children":281},{},[282,287,292,297],{"type":41,"tag":76,"props":283,"children":284},{},[285],{"type":47,"value":286},"Context-aware decisions based on natural language reasoning",{"type":41,"tag":76,"props":288,"children":289},{},[290],{"type":47,"value":291},"Flexible evaluation logic without bash scripting",{"type":41,"tag":76,"props":293,"children":294},{},[295],{"type":47,"value":296},"Better edge case handling",{"type":41,"tag":76,"props":298,"children":299},{},[300],{"type":47,"value":301},"Easier to maintain and extend",{"type":41,"tag":108,"props":303,"children":305},{"id":304},"command-hooks",[306],{"type":47,"value":307},"Command Hooks",{"type":41,"tag":57,"props":309,"children":310},{},[311],{"type":47,"value":312},"Execute bash commands for deterministic checks:",{"type":41,"tag":120,"props":314,"children":316},{"className":122,"code":315,"language":124,"meta":125,"style":125},"{\n  \"type\": \"command\",\n  \"command\": \"bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate.sh\",\n  \"timeout\": 60\n}\n",[317],{"type":41,"tag":128,"props":318,"children":319},{"__ignoreMap":125},[320,327,363,399,423],{"type":41,"tag":132,"props":321,"children":322},{"class":134,"line":135},[323],{"type":41,"tag":132,"props":324,"children":325},{"style":139},[326],{"type":47,"value":142},{"type":41,"tag":132,"props":328,"children":329},{"class":134,"line":145},[330,334,338,342,346,350,355,359],{"type":41,"tag":132,"props":331,"children":332},{"style":139},[333],{"type":47,"value":151},{"type":41,"tag":132,"props":335,"children":336},{"style":154},[337],{"type":47,"value":157},{"type":41,"tag":132,"props":339,"children":340},{"style":139},[341],{"type":47,"value":162},{"type":41,"tag":132,"props":343,"children":344},{"style":139},[345],{"type":47,"value":167},{"type":41,"tag":132,"props":347,"children":348},{"style":139},[349],{"type":47,"value":172},{"type":41,"tag":132,"props":351,"children":352},{"style":175},[353],{"type":47,"value":354},"command",{"type":41,"tag":132,"props":356,"children":357},{"style":139},[358],{"type":47,"value":162},{"type":41,"tag":132,"props":360,"children":361},{"style":139},[362],{"type":47,"value":187},{"type":41,"tag":132,"props":364,"children":365},{"class":134,"line":190},[366,370,374,378,382,386,391,395],{"type":41,"tag":132,"props":367,"children":368},{"style":139},[369],{"type":47,"value":151},{"type":41,"tag":132,"props":371,"children":372},{"style":154},[373],{"type":47,"value":354},{"type":41,"tag":132,"props":375,"children":376},{"style":139},[377],{"type":47,"value":162},{"type":41,"tag":132,"props":379,"children":380},{"style":139},[381],{"type":47,"value":167},{"type":41,"tag":132,"props":383,"children":384},{"style":139},[385],{"type":47,"value":172},{"type":41,"tag":132,"props":387,"children":388},{"style":175},[389],{"type":47,"value":390},"bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate.sh",{"type":41,"tag":132,"props":392,"children":393},{"style":139},[394],{"type":47,"value":162},{"type":41,"tag":132,"props":396,"children":397},{"style":139},[398],{"type":47,"value":187},{"type":41,"tag":132,"props":400,"children":401},{"class":134,"line":227},[402,406,410,414,418],{"type":41,"tag":132,"props":403,"children":404},{"style":139},[405],{"type":47,"value":151},{"type":41,"tag":132,"props":407,"children":408},{"style":154},[409],{"type":47,"value":237},{"type":41,"tag":132,"props":411,"children":412},{"style":139},[413],{"type":47,"value":162},{"type":41,"tag":132,"props":415,"children":416},{"style":139},[417],{"type":47,"value":167},{"type":41,"tag":132,"props":419,"children":420},{"style":248},[421],{"type":47,"value":422}," 60\n",{"type":41,"tag":132,"props":424,"children":425},{"class":134,"line":254},[426],{"type":41,"tag":132,"props":427,"children":428},{"style":139},[429],{"type":47,"value":260},{"type":41,"tag":57,"props":431,"children":432},{},[433],{"type":41,"tag":66,"props":434,"children":435},{},[436],{"type":47,"value":437},"Use for:",{"type":41,"tag":72,"props":439,"children":440},{},[441,446,451,456],{"type":41,"tag":76,"props":442,"children":443},{},[444],{"type":47,"value":445},"Fast deterministic validations",{"type":41,"tag":76,"props":447,"children":448},{},[449],{"type":47,"value":450},"File system operations",{"type":41,"tag":76,"props":452,"children":453},{},[454],{"type":47,"value":455},"External tool integrations",{"type":41,"tag":76,"props":457,"children":458},{},[459],{"type":47,"value":460},"Performance-critical checks",{"type":41,"tag":50,"props":462,"children":464},{"id":463},"hook-configuration-formats",[465],{"type":47,"value":466},"Hook Configuration Formats",{"type":41,"tag":108,"props":468,"children":470},{"id":469},"plugin-hooksjson-format",[471],{"type":47,"value":472},"Plugin hooks.json Format",{"type":41,"tag":57,"props":474,"children":475},{},[476,481,483,489],{"type":41,"tag":66,"props":477,"children":478},{},[479],{"type":47,"value":480},"For plugin hooks",{"type":47,"value":482}," in ",{"type":41,"tag":128,"props":484,"children":486},{"className":485},[],[487],{"type":47,"value":488},"hooks\u002Fhooks.json",{"type":47,"value":490},", use wrapper format:",{"type":41,"tag":120,"props":492,"children":494},{"className":122,"code":493,"language":124,"meta":125,"style":125},"{\n  \"description\": \"Brief explanation of hooks (optional)\",\n  \"hooks\": {\n    \"PreToolUse\": [...],\n    \"Stop\": [...],\n    \"SessionStart\": [...]\n  }\n}\n",[495],{"type":41,"tag":128,"props":496,"children":497},{"__ignoreMap":125},[498,505,542,567,605,637,671,680],{"type":41,"tag":132,"props":499,"children":500},{"class":134,"line":135},[501],{"type":41,"tag":132,"props":502,"children":503},{"style":139},[504],{"type":47,"value":142},{"type":41,"tag":132,"props":506,"children":507},{"class":134,"line":145},[508,512,517,521,525,529,534,538],{"type":41,"tag":132,"props":509,"children":510},{"style":139},[511],{"type":47,"value":151},{"type":41,"tag":132,"props":513,"children":514},{"style":154},[515],{"type":47,"value":516},"description",{"type":41,"tag":132,"props":518,"children":519},{"style":139},[520],{"type":47,"value":162},{"type":41,"tag":132,"props":522,"children":523},{"style":139},[524],{"type":47,"value":167},{"type":41,"tag":132,"props":526,"children":527},{"style":139},[528],{"type":47,"value":172},{"type":41,"tag":132,"props":530,"children":531},{"style":175},[532],{"type":47,"value":533},"Brief explanation of hooks (optional)",{"type":41,"tag":132,"props":535,"children":536},{"style":139},[537],{"type":47,"value":162},{"type":41,"tag":132,"props":539,"children":540},{"style":139},[541],{"type":47,"value":187},{"type":41,"tag":132,"props":543,"children":544},{"class":134,"line":190},[545,549,554,558,562],{"type":41,"tag":132,"props":546,"children":547},{"style":139},[548],{"type":47,"value":151},{"type":41,"tag":132,"props":550,"children":551},{"style":154},[552],{"type":47,"value":553},"hooks",{"type":41,"tag":132,"props":555,"children":556},{"style":139},[557],{"type":47,"value":162},{"type":41,"tag":132,"props":559,"children":560},{"style":139},[561],{"type":47,"value":167},{"type":41,"tag":132,"props":563,"children":564},{"style":139},[565],{"type":47,"value":566}," {\n",{"type":41,"tag":132,"props":568,"children":569},{"class":134,"line":227},[570,575,581,585,589,594,600],{"type":41,"tag":132,"props":571,"children":572},{"style":139},[573],{"type":47,"value":574},"    \"",{"type":41,"tag":132,"props":576,"children":578},{"style":577},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[579],{"type":47,"value":580},"PreToolUse",{"type":41,"tag":132,"props":582,"children":583},{"style":139},[584],{"type":47,"value":162},{"type":41,"tag":132,"props":586,"children":587},{"style":139},[588],{"type":47,"value":167},{"type":41,"tag":132,"props":590,"children":591},{"style":139},[592],{"type":47,"value":593}," [",{"type":41,"tag":132,"props":595,"children":597},{"style":596},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[598],{"type":47,"value":599},"...",{"type":41,"tag":132,"props":601,"children":602},{"style":139},[603],{"type":47,"value":604},"],\n",{"type":41,"tag":132,"props":606,"children":607},{"class":134,"line":254},[608,612,617,621,625,629,633],{"type":41,"tag":132,"props":609,"children":610},{"style":139},[611],{"type":47,"value":574},{"type":41,"tag":132,"props":613,"children":614},{"style":577},[615],{"type":47,"value":616},"Stop",{"type":41,"tag":132,"props":618,"children":619},{"style":139},[620],{"type":47,"value":162},{"type":41,"tag":132,"props":622,"children":623},{"style":139},[624],{"type":47,"value":167},{"type":41,"tag":132,"props":626,"children":627},{"style":139},[628],{"type":47,"value":593},{"type":41,"tag":132,"props":630,"children":631},{"style":596},[632],{"type":47,"value":599},{"type":41,"tag":132,"props":634,"children":635},{"style":139},[636],{"type":47,"value":604},{"type":41,"tag":132,"props":638,"children":640},{"class":134,"line":639},6,[641,645,650,654,658,662,666],{"type":41,"tag":132,"props":642,"children":643},{"style":139},[644],{"type":47,"value":574},{"type":41,"tag":132,"props":646,"children":647},{"style":577},[648],{"type":47,"value":649},"SessionStart",{"type":41,"tag":132,"props":651,"children":652},{"style":139},[653],{"type":47,"value":162},{"type":41,"tag":132,"props":655,"children":656},{"style":139},[657],{"type":47,"value":167},{"type":41,"tag":132,"props":659,"children":660},{"style":139},[661],{"type":47,"value":593},{"type":41,"tag":132,"props":663,"children":664},{"style":596},[665],{"type":47,"value":599},{"type":41,"tag":132,"props":667,"children":668},{"style":139},[669],{"type":47,"value":670},"]\n",{"type":41,"tag":132,"props":672,"children":674},{"class":134,"line":673},7,[675],{"type":41,"tag":132,"props":676,"children":677},{"style":139},[678],{"type":47,"value":679},"  }\n",{"type":41,"tag":132,"props":681,"children":683},{"class":134,"line":682},8,[684],{"type":41,"tag":132,"props":685,"children":686},{"style":139},[687],{"type":47,"value":260},{"type":41,"tag":57,"props":689,"children":690},{},[691],{"type":41,"tag":66,"props":692,"children":693},{},[694],{"type":47,"value":695},"Key points:",{"type":41,"tag":72,"props":697,"children":698},{},[699,709,719],{"type":41,"tag":76,"props":700,"children":701},{},[702,707],{"type":41,"tag":128,"props":703,"children":705},{"className":704},[],[706],{"type":47,"value":516},{"type":47,"value":708}," field is optional",{"type":41,"tag":76,"props":710,"children":711},{},[712,717],{"type":41,"tag":128,"props":713,"children":715},{"className":714},[],[716],{"type":47,"value":553},{"type":47,"value":718}," field is required wrapper containing actual hook events",{"type":41,"tag":76,"props":720,"children":721},{},[722,724],{"type":47,"value":723},"This is the ",{"type":41,"tag":66,"props":725,"children":726},{},[727],{"type":47,"value":728},"plugin-specific format",{"type":41,"tag":57,"props":730,"children":731},{},[732],{"type":41,"tag":66,"props":733,"children":734},{},[735],{"type":47,"value":736},"Example:",{"type":41,"tag":120,"props":738,"children":740},{"className":122,"code":739,"language":124,"meta":125,"style":125},"{\n  \"description\": \"Validation hooks for code quality\",\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Write\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fvalidate.sh\"\n          }\n        ]\n      }\n    ]\n  }\n}\n",[741],{"type":41,"tag":128,"props":742,"children":743},{"__ignoreMap":125},[744,751,787,810,834,842,880,903,911,949,983,992,1001,1010,1019,1027],{"type":41,"tag":132,"props":745,"children":746},{"class":134,"line":135},[747],{"type":41,"tag":132,"props":748,"children":749},{"style":139},[750],{"type":47,"value":142},{"type":41,"tag":132,"props":752,"children":753},{"class":134,"line":145},[754,758,762,766,770,774,779,783],{"type":41,"tag":132,"props":755,"children":756},{"style":139},[757],{"type":47,"value":151},{"type":41,"tag":132,"props":759,"children":760},{"style":154},[761],{"type":47,"value":516},{"type":41,"tag":132,"props":763,"children":764},{"style":139},[765],{"type":47,"value":162},{"type":41,"tag":132,"props":767,"children":768},{"style":139},[769],{"type":47,"value":167},{"type":41,"tag":132,"props":771,"children":772},{"style":139},[773],{"type":47,"value":172},{"type":41,"tag":132,"props":775,"children":776},{"style":175},[777],{"type":47,"value":778},"Validation hooks for code quality",{"type":41,"tag":132,"props":780,"children":781},{"style":139},[782],{"type":47,"value":162},{"type":41,"tag":132,"props":784,"children":785},{"style":139},[786],{"type":47,"value":187},{"type":41,"tag":132,"props":788,"children":789},{"class":134,"line":190},[790,794,798,802,806],{"type":41,"tag":132,"props":791,"children":792},{"style":139},[793],{"type":47,"value":151},{"type":41,"tag":132,"props":795,"children":796},{"style":154},[797],{"type":47,"value":553},{"type":41,"tag":132,"props":799,"children":800},{"style":139},[801],{"type":47,"value":162},{"type":41,"tag":132,"props":803,"children":804},{"style":139},[805],{"type":47,"value":167},{"type":41,"tag":132,"props":807,"children":808},{"style":139},[809],{"type":47,"value":566},{"type":41,"tag":132,"props":811,"children":812},{"class":134,"line":227},[813,817,821,825,829],{"type":41,"tag":132,"props":814,"children":815},{"style":139},[816],{"type":47,"value":574},{"type":41,"tag":132,"props":818,"children":819},{"style":577},[820],{"type":47,"value":580},{"type":41,"tag":132,"props":822,"children":823},{"style":139},[824],{"type":47,"value":162},{"type":41,"tag":132,"props":826,"children":827},{"style":139},[828],{"type":47,"value":167},{"type":41,"tag":132,"props":830,"children":831},{"style":139},[832],{"type":47,"value":833}," [\n",{"type":41,"tag":132,"props":835,"children":836},{"class":134,"line":254},[837],{"type":41,"tag":132,"props":838,"children":839},{"style":139},[840],{"type":47,"value":841},"      {\n",{"type":41,"tag":132,"props":843,"children":844},{"class":134,"line":639},[845,850,855,859,863,867,872,876],{"type":41,"tag":132,"props":846,"children":847},{"style":139},[848],{"type":47,"value":849},"        \"",{"type":41,"tag":132,"props":851,"children":852},{"style":248},[853],{"type":47,"value":854},"matcher",{"type":41,"tag":132,"props":856,"children":857},{"style":139},[858],{"type":47,"value":162},{"type":41,"tag":132,"props":860,"children":861},{"style":139},[862],{"type":47,"value":167},{"type":41,"tag":132,"props":864,"children":865},{"style":139},[866],{"type":47,"value":172},{"type":41,"tag":132,"props":868,"children":869},{"style":175},[870],{"type":47,"value":871},"Write",{"type":41,"tag":132,"props":873,"children":874},{"style":139},[875],{"type":47,"value":162},{"type":41,"tag":132,"props":877,"children":878},{"style":139},[879],{"type":47,"value":187},{"type":41,"tag":132,"props":881,"children":882},{"class":134,"line":673},[883,887,891,895,899],{"type":41,"tag":132,"props":884,"children":885},{"style":139},[886],{"type":47,"value":849},{"type":41,"tag":132,"props":888,"children":889},{"style":248},[890],{"type":47,"value":553},{"type":41,"tag":132,"props":892,"children":893},{"style":139},[894],{"type":47,"value":162},{"type":41,"tag":132,"props":896,"children":897},{"style":139},[898],{"type":47,"value":167},{"type":41,"tag":132,"props":900,"children":901},{"style":139},[902],{"type":47,"value":833},{"type":41,"tag":132,"props":904,"children":905},{"class":134,"line":682},[906],{"type":41,"tag":132,"props":907,"children":908},{"style":139},[909],{"type":47,"value":910},"          {\n",{"type":41,"tag":132,"props":912,"children":914},{"class":134,"line":913},9,[915,920,925,929,933,937,941,945],{"type":41,"tag":132,"props":916,"children":917},{"style":139},[918],{"type":47,"value":919},"            \"",{"type":41,"tag":132,"props":921,"children":923},{"style":922},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[924],{"type":47,"value":157},{"type":41,"tag":132,"props":926,"children":927},{"style":139},[928],{"type":47,"value":162},{"type":41,"tag":132,"props":930,"children":931},{"style":139},[932],{"type":47,"value":167},{"type":41,"tag":132,"props":934,"children":935},{"style":139},[936],{"type":47,"value":172},{"type":41,"tag":132,"props":938,"children":939},{"style":175},[940],{"type":47,"value":354},{"type":41,"tag":132,"props":942,"children":943},{"style":139},[944],{"type":47,"value":162},{"type":41,"tag":132,"props":946,"children":947},{"style":139},[948],{"type":47,"value":187},{"type":41,"tag":132,"props":950,"children":952},{"class":134,"line":951},10,[953,957,961,965,969,973,978],{"type":41,"tag":132,"props":954,"children":955},{"style":139},[956],{"type":47,"value":919},{"type":41,"tag":132,"props":958,"children":959},{"style":922},[960],{"type":47,"value":354},{"type":41,"tag":132,"props":962,"children":963},{"style":139},[964],{"type":47,"value":162},{"type":41,"tag":132,"props":966,"children":967},{"style":139},[968],{"type":47,"value":167},{"type":41,"tag":132,"props":970,"children":971},{"style":139},[972],{"type":47,"value":172},{"type":41,"tag":132,"props":974,"children":975},{"style":175},[976],{"type":47,"value":977},"${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fvalidate.sh",{"type":41,"tag":132,"props":979,"children":980},{"style":139},[981],{"type":47,"value":982},"\"\n",{"type":41,"tag":132,"props":984,"children":986},{"class":134,"line":985},11,[987],{"type":41,"tag":132,"props":988,"children":989},{"style":139},[990],{"type":47,"value":991},"          }\n",{"type":41,"tag":132,"props":993,"children":995},{"class":134,"line":994},12,[996],{"type":41,"tag":132,"props":997,"children":998},{"style":139},[999],{"type":47,"value":1000},"        ]\n",{"type":41,"tag":132,"props":1002,"children":1004},{"class":134,"line":1003},13,[1005],{"type":41,"tag":132,"props":1006,"children":1007},{"style":139},[1008],{"type":47,"value":1009},"      }\n",{"type":41,"tag":132,"props":1011,"children":1013},{"class":134,"line":1012},14,[1014],{"type":41,"tag":132,"props":1015,"children":1016},{"style":139},[1017],{"type":47,"value":1018},"    ]\n",{"type":41,"tag":132,"props":1020,"children":1022},{"class":134,"line":1021},15,[1023],{"type":41,"tag":132,"props":1024,"children":1025},{"style":139},[1026],{"type":47,"value":679},{"type":41,"tag":132,"props":1028,"children":1030},{"class":134,"line":1029},16,[1031],{"type":41,"tag":132,"props":1032,"children":1033},{"style":139},[1034],{"type":47,"value":260},{"type":41,"tag":108,"props":1036,"children":1038},{"id":1037},"settings-format-direct",[1039],{"type":47,"value":1040},"Settings Format (Direct)",{"type":41,"tag":57,"props":1042,"children":1043},{},[1044,1049,1050,1056],{"type":41,"tag":66,"props":1045,"children":1046},{},[1047],{"type":47,"value":1048},"For user settings",{"type":47,"value":482},{"type":41,"tag":128,"props":1051,"children":1053},{"className":1052},[],[1054],{"type":47,"value":1055},".claude\u002Fsettings.json",{"type":47,"value":1057},", use direct format:",{"type":41,"tag":120,"props":1059,"children":1061},{"className":122,"code":1060,"language":124,"meta":125,"style":125},"{\n  \"PreToolUse\": [...],\n  \"Stop\": [...],\n  \"SessionStart\": [...]\n}\n",[1062],{"type":41,"tag":128,"props":1063,"children":1064},{"__ignoreMap":125},[1065,1072,1103,1134,1165],{"type":41,"tag":132,"props":1066,"children":1067},{"class":134,"line":135},[1068],{"type":41,"tag":132,"props":1069,"children":1070},{"style":139},[1071],{"type":47,"value":142},{"type":41,"tag":132,"props":1073,"children":1074},{"class":134,"line":145},[1075,1079,1083,1087,1091,1095,1099],{"type":41,"tag":132,"props":1076,"children":1077},{"style":139},[1078],{"type":47,"value":151},{"type":41,"tag":132,"props":1080,"children":1081},{"style":154},[1082],{"type":47,"value":580},{"type":41,"tag":132,"props":1084,"children":1085},{"style":139},[1086],{"type":47,"value":162},{"type":41,"tag":132,"props":1088,"children":1089},{"style":139},[1090],{"type":47,"value":167},{"type":41,"tag":132,"props":1092,"children":1093},{"style":139},[1094],{"type":47,"value":593},{"type":41,"tag":132,"props":1096,"children":1097},{"style":596},[1098],{"type":47,"value":599},{"type":41,"tag":132,"props":1100,"children":1101},{"style":139},[1102],{"type":47,"value":604},{"type":41,"tag":132,"props":1104,"children":1105},{"class":134,"line":190},[1106,1110,1114,1118,1122,1126,1130],{"type":41,"tag":132,"props":1107,"children":1108},{"style":139},[1109],{"type":47,"value":151},{"type":41,"tag":132,"props":1111,"children":1112},{"style":154},[1113],{"type":47,"value":616},{"type":41,"tag":132,"props":1115,"children":1116},{"style":139},[1117],{"type":47,"value":162},{"type":41,"tag":132,"props":1119,"children":1120},{"style":139},[1121],{"type":47,"value":167},{"type":41,"tag":132,"props":1123,"children":1124},{"style":139},[1125],{"type":47,"value":593},{"type":41,"tag":132,"props":1127,"children":1128},{"style":596},[1129],{"type":47,"value":599},{"type":41,"tag":132,"props":1131,"children":1132},{"style":139},[1133],{"type":47,"value":604},{"type":41,"tag":132,"props":1135,"children":1136},{"class":134,"line":227},[1137,1141,1145,1149,1153,1157,1161],{"type":41,"tag":132,"props":1138,"children":1139},{"style":139},[1140],{"type":47,"value":151},{"type":41,"tag":132,"props":1142,"children":1143},{"style":154},[1144],{"type":47,"value":649},{"type":41,"tag":132,"props":1146,"children":1147},{"style":139},[1148],{"type":47,"value":162},{"type":41,"tag":132,"props":1150,"children":1151},{"style":139},[1152],{"type":47,"value":167},{"type":41,"tag":132,"props":1154,"children":1155},{"style":139},[1156],{"type":47,"value":593},{"type":41,"tag":132,"props":1158,"children":1159},{"style":596},[1160],{"type":47,"value":599},{"type":41,"tag":132,"props":1162,"children":1163},{"style":139},[1164],{"type":47,"value":670},{"type":41,"tag":132,"props":1166,"children":1167},{"class":134,"line":254},[1168],{"type":41,"tag":132,"props":1169,"children":1170},{"style":139},[1171],{"type":47,"value":260},{"type":41,"tag":57,"props":1173,"children":1174},{},[1175],{"type":41,"tag":66,"props":1176,"children":1177},{},[1178],{"type":47,"value":695},{"type":41,"tag":72,"props":1180,"children":1181},{},[1182,1187,1192],{"type":41,"tag":76,"props":1183,"children":1184},{},[1185],{"type":47,"value":1186},"No wrapper - events directly at top level",{"type":41,"tag":76,"props":1188,"children":1189},{},[1190],{"type":47,"value":1191},"No description field",{"type":41,"tag":76,"props":1193,"children":1194},{},[1195,1196],{"type":47,"value":723},{"type":41,"tag":66,"props":1197,"children":1198},{},[1199],{"type":47,"value":1200},"settings format",{"type":41,"tag":57,"props":1202,"children":1203},{},[1204,1209,1211,1217],{"type":41,"tag":66,"props":1205,"children":1206},{},[1207],{"type":47,"value":1208},"Important:",{"type":47,"value":1210}," The examples below show the hook event structure that goes inside either format. For plugin hooks.json, wrap these in ",{"type":41,"tag":128,"props":1212,"children":1214},{"className":1213},[],[1215],{"type":47,"value":1216},"{\"hooks\": {...}}",{"type":47,"value":1218},".",{"type":41,"tag":50,"props":1220,"children":1222},{"id":1221},"hook-events",[1223],{"type":47,"value":1224},"Hook Events",{"type":41,"tag":108,"props":1226,"children":1228},{"id":1227},"pretooluse",[1229],{"type":47,"value":580},{"type":41,"tag":57,"props":1231,"children":1232},{},[1233],{"type":47,"value":1234},"Execute before any tool runs. Use to approve, deny, or modify tool calls.",{"type":41,"tag":57,"props":1236,"children":1237},{},[1238],{"type":41,"tag":66,"props":1239,"children":1240},{},[1241],{"type":47,"value":1242},"Example (prompt-based):",{"type":41,"tag":120,"props":1244,"children":1246},{"className":122,"code":1245,"language":124,"meta":125,"style":125},"{\n  \"PreToolUse\": [\n    {\n      \"matcher\": \"Write|Edit\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Validate file write safety. Check: system paths, credentials, path traversal, sensitive content. Return 'approve' or 'deny'.\"\n        }\n      ]\n    }\n  ]\n}\n",[1247],{"type":41,"tag":128,"props":1248,"children":1249},{"__ignoreMap":125},[1250,1257,1280,1288,1325,1348,1356,1392,1424,1432,1440,1448,1456],{"type":41,"tag":132,"props":1251,"children":1252},{"class":134,"line":135},[1253],{"type":41,"tag":132,"props":1254,"children":1255},{"style":139},[1256],{"type":47,"value":142},{"type":41,"tag":132,"props":1258,"children":1259},{"class":134,"line":145},[1260,1264,1268,1272,1276],{"type":41,"tag":132,"props":1261,"children":1262},{"style":139},[1263],{"type":47,"value":151},{"type":41,"tag":132,"props":1265,"children":1266},{"style":154},[1267],{"type":47,"value":580},{"type":41,"tag":132,"props":1269,"children":1270},{"style":139},[1271],{"type":47,"value":162},{"type":41,"tag":132,"props":1273,"children":1274},{"style":139},[1275],{"type":47,"value":167},{"type":41,"tag":132,"props":1277,"children":1278},{"style":139},[1279],{"type":47,"value":833},{"type":41,"tag":132,"props":1281,"children":1282},{"class":134,"line":190},[1283],{"type":41,"tag":132,"props":1284,"children":1285},{"style":139},[1286],{"type":47,"value":1287},"    {\n",{"type":41,"tag":132,"props":1289,"children":1290},{"class":134,"line":227},[1291,1296,1300,1304,1308,1312,1317,1321],{"type":41,"tag":132,"props":1292,"children":1293},{"style":139},[1294],{"type":47,"value":1295},"      \"",{"type":41,"tag":132,"props":1297,"children":1298},{"style":577},[1299],{"type":47,"value":854},{"type":41,"tag":132,"props":1301,"children":1302},{"style":139},[1303],{"type":47,"value":162},{"type":41,"tag":132,"props":1305,"children":1306},{"style":139},[1307],{"type":47,"value":167},{"type":41,"tag":132,"props":1309,"children":1310},{"style":139},[1311],{"type":47,"value":172},{"type":41,"tag":132,"props":1313,"children":1314},{"style":175},[1315],{"type":47,"value":1316},"Write|Edit",{"type":41,"tag":132,"props":1318,"children":1319},{"style":139},[1320],{"type":47,"value":162},{"type":41,"tag":132,"props":1322,"children":1323},{"style":139},[1324],{"type":47,"value":187},{"type":41,"tag":132,"props":1326,"children":1327},{"class":134,"line":254},[1328,1332,1336,1340,1344],{"type":41,"tag":132,"props":1329,"children":1330},{"style":139},[1331],{"type":47,"value":1295},{"type":41,"tag":132,"props":1333,"children":1334},{"style":577},[1335],{"type":47,"value":553},{"type":41,"tag":132,"props":1337,"children":1338},{"style":139},[1339],{"type":47,"value":162},{"type":41,"tag":132,"props":1341,"children":1342},{"style":139},[1343],{"type":47,"value":167},{"type":41,"tag":132,"props":1345,"children":1346},{"style":139},[1347],{"type":47,"value":833},{"type":41,"tag":132,"props":1349,"children":1350},{"class":134,"line":639},[1351],{"type":41,"tag":132,"props":1352,"children":1353},{"style":139},[1354],{"type":47,"value":1355},"        {\n",{"type":41,"tag":132,"props":1357,"children":1358},{"class":134,"line":673},[1359,1364,1368,1372,1376,1380,1384,1388],{"type":41,"tag":132,"props":1360,"children":1361},{"style":139},[1362],{"type":47,"value":1363},"          \"",{"type":41,"tag":132,"props":1365,"children":1366},{"style":248},[1367],{"type":47,"value":157},{"type":41,"tag":132,"props":1369,"children":1370},{"style":139},[1371],{"type":47,"value":162},{"type":41,"tag":132,"props":1373,"children":1374},{"style":139},[1375],{"type":47,"value":167},{"type":41,"tag":132,"props":1377,"children":1378},{"style":139},[1379],{"type":47,"value":172},{"type":41,"tag":132,"props":1381,"children":1382},{"style":175},[1383],{"type":47,"value":178},{"type":41,"tag":132,"props":1385,"children":1386},{"style":139},[1387],{"type":47,"value":162},{"type":41,"tag":132,"props":1389,"children":1390},{"style":139},[1391],{"type":47,"value":187},{"type":41,"tag":132,"props":1393,"children":1394},{"class":134,"line":682},[1395,1399,1403,1407,1411,1415,1420],{"type":41,"tag":132,"props":1396,"children":1397},{"style":139},[1398],{"type":47,"value":1363},{"type":41,"tag":132,"props":1400,"children":1401},{"style":248},[1402],{"type":47,"value":178},{"type":41,"tag":132,"props":1404,"children":1405},{"style":139},[1406],{"type":47,"value":162},{"type":41,"tag":132,"props":1408,"children":1409},{"style":139},[1410],{"type":47,"value":167},{"type":41,"tag":132,"props":1412,"children":1413},{"style":139},[1414],{"type":47,"value":172},{"type":41,"tag":132,"props":1416,"children":1417},{"style":175},[1418],{"type":47,"value":1419},"Validate file write safety. Check: system paths, credentials, path traversal, sensitive content. Return 'approve' or 'deny'.",{"type":41,"tag":132,"props":1421,"children":1422},{"style":139},[1423],{"type":47,"value":982},{"type":41,"tag":132,"props":1425,"children":1426},{"class":134,"line":913},[1427],{"type":41,"tag":132,"props":1428,"children":1429},{"style":139},[1430],{"type":47,"value":1431},"        }\n",{"type":41,"tag":132,"props":1433,"children":1434},{"class":134,"line":951},[1435],{"type":41,"tag":132,"props":1436,"children":1437},{"style":139},[1438],{"type":47,"value":1439},"      ]\n",{"type":41,"tag":132,"props":1441,"children":1442},{"class":134,"line":985},[1443],{"type":41,"tag":132,"props":1444,"children":1445},{"style":139},[1446],{"type":47,"value":1447},"    }\n",{"type":41,"tag":132,"props":1449,"children":1450},{"class":134,"line":994},[1451],{"type":41,"tag":132,"props":1452,"children":1453},{"style":139},[1454],{"type":47,"value":1455},"  ]\n",{"type":41,"tag":132,"props":1457,"children":1458},{"class":134,"line":1003},[1459],{"type":41,"tag":132,"props":1460,"children":1461},{"style":139},[1462],{"type":47,"value":260},{"type":41,"tag":57,"props":1464,"children":1465},{},[1466],{"type":41,"tag":66,"props":1467,"children":1468},{},[1469],{"type":47,"value":1470},"Output for PreToolUse:",{"type":41,"tag":120,"props":1472,"children":1474},{"className":122,"code":1473,"language":124,"meta":125,"style":125},"{\n  \"hookSpecificOutput\": {\n    \"permissionDecision\": \"allow|deny|ask\",\n    \"updatedInput\": {\"field\": \"modified_value\"}\n  },\n  \"systemMessage\": \"Explanation for Claude\"\n}\n",[1475],{"type":41,"tag":128,"props":1476,"children":1477},{"__ignoreMap":125},[1478,1485,1509,1546,1605,1613,1646],{"type":41,"tag":132,"props":1479,"children":1480},{"class":134,"line":135},[1481],{"type":41,"tag":132,"props":1482,"children":1483},{"style":139},[1484],{"type":47,"value":142},{"type":41,"tag":132,"props":1486,"children":1487},{"class":134,"line":145},[1488,1492,1497,1501,1505],{"type":41,"tag":132,"props":1489,"children":1490},{"style":139},[1491],{"type":47,"value":151},{"type":41,"tag":132,"props":1493,"children":1494},{"style":154},[1495],{"type":47,"value":1496},"hookSpecificOutput",{"type":41,"tag":132,"props":1498,"children":1499},{"style":139},[1500],{"type":47,"value":162},{"type":41,"tag":132,"props":1502,"children":1503},{"style":139},[1504],{"type":47,"value":167},{"type":41,"tag":132,"props":1506,"children":1507},{"style":139},[1508],{"type":47,"value":566},{"type":41,"tag":132,"props":1510,"children":1511},{"class":134,"line":190},[1512,1516,1521,1525,1529,1533,1538,1542],{"type":41,"tag":132,"props":1513,"children":1514},{"style":139},[1515],{"type":47,"value":574},{"type":41,"tag":132,"props":1517,"children":1518},{"style":577},[1519],{"type":47,"value":1520},"permissionDecision",{"type":41,"tag":132,"props":1522,"children":1523},{"style":139},[1524],{"type":47,"value":162},{"type":41,"tag":132,"props":1526,"children":1527},{"style":139},[1528],{"type":47,"value":167},{"type":41,"tag":132,"props":1530,"children":1531},{"style":139},[1532],{"type":47,"value":172},{"type":41,"tag":132,"props":1534,"children":1535},{"style":175},[1536],{"type":47,"value":1537},"allow|deny|ask",{"type":41,"tag":132,"props":1539,"children":1540},{"style":139},[1541],{"type":47,"value":162},{"type":41,"tag":132,"props":1543,"children":1544},{"style":139},[1545],{"type":47,"value":187},{"type":41,"tag":132,"props":1547,"children":1548},{"class":134,"line":227},[1549,1553,1558,1562,1566,1571,1575,1580,1584,1588,1592,1597,1601],{"type":41,"tag":132,"props":1550,"children":1551},{"style":139},[1552],{"type":47,"value":574},{"type":41,"tag":132,"props":1554,"children":1555},{"style":577},[1556],{"type":47,"value":1557},"updatedInput",{"type":41,"tag":132,"props":1559,"children":1560},{"style":139},[1561],{"type":47,"value":162},{"type":41,"tag":132,"props":1563,"children":1564},{"style":139},[1565],{"type":47,"value":167},{"type":41,"tag":132,"props":1567,"children":1568},{"style":139},[1569],{"type":47,"value":1570}," {",{"type":41,"tag":132,"props":1572,"children":1573},{"style":139},[1574],{"type":47,"value":162},{"type":41,"tag":132,"props":1576,"children":1577},{"style":248},[1578],{"type":47,"value":1579},"field",{"type":41,"tag":132,"props":1581,"children":1582},{"style":139},[1583],{"type":47,"value":162},{"type":41,"tag":132,"props":1585,"children":1586},{"style":139},[1587],{"type":47,"value":167},{"type":41,"tag":132,"props":1589,"children":1590},{"style":139},[1591],{"type":47,"value":172},{"type":41,"tag":132,"props":1593,"children":1594},{"style":175},[1595],{"type":47,"value":1596},"modified_value",{"type":41,"tag":132,"props":1598,"children":1599},{"style":139},[1600],{"type":47,"value":162},{"type":41,"tag":132,"props":1602,"children":1603},{"style":139},[1604],{"type":47,"value":260},{"type":41,"tag":132,"props":1606,"children":1607},{"class":134,"line":254},[1608],{"type":41,"tag":132,"props":1609,"children":1610},{"style":139},[1611],{"type":47,"value":1612},"  },\n",{"type":41,"tag":132,"props":1614,"children":1615},{"class":134,"line":639},[1616,1620,1625,1629,1633,1637,1642],{"type":41,"tag":132,"props":1617,"children":1618},{"style":139},[1619],{"type":47,"value":151},{"type":41,"tag":132,"props":1621,"children":1622},{"style":154},[1623],{"type":47,"value":1624},"systemMessage",{"type":41,"tag":132,"props":1626,"children":1627},{"style":139},[1628],{"type":47,"value":162},{"type":41,"tag":132,"props":1630,"children":1631},{"style":139},[1632],{"type":47,"value":167},{"type":41,"tag":132,"props":1634,"children":1635},{"style":139},[1636],{"type":47,"value":172},{"type":41,"tag":132,"props":1638,"children":1639},{"style":175},[1640],{"type":47,"value":1641},"Explanation for Claude",{"type":41,"tag":132,"props":1643,"children":1644},{"style":139},[1645],{"type":47,"value":982},{"type":41,"tag":132,"props":1647,"children":1648},{"class":134,"line":673},[1649],{"type":41,"tag":132,"props":1650,"children":1651},{"style":139},[1652],{"type":47,"value":260},{"type":41,"tag":108,"props":1654,"children":1656},{"id":1655},"posttooluse",[1657],{"type":47,"value":1658},"PostToolUse",{"type":41,"tag":57,"props":1660,"children":1661},{},[1662],{"type":47,"value":1663},"Execute after tool completes. Use to react to results, provide feedback, or log.",{"type":41,"tag":57,"props":1665,"children":1666},{},[1667],{"type":41,"tag":66,"props":1668,"children":1669},{},[1670],{"type":47,"value":736},{"type":41,"tag":120,"props":1672,"children":1674},{"className":122,"code":1673,"language":124,"meta":125,"style":125},"{\n  \"PostToolUse\": [\n    {\n      \"matcher\": \"Edit\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Analyze edit result for potential issues: syntax errors, security vulnerabilities, breaking changes. Provide feedback.\"\n        }\n      ]\n    }\n  ]\n}\n",[1675],{"type":41,"tag":128,"props":1676,"children":1677},{"__ignoreMap":125},[1678,1685,1708,1715,1751,1774,1781,1816,1848,1855,1862,1869,1876],{"type":41,"tag":132,"props":1679,"children":1680},{"class":134,"line":135},[1681],{"type":41,"tag":132,"props":1682,"children":1683},{"style":139},[1684],{"type":47,"value":142},{"type":41,"tag":132,"props":1686,"children":1687},{"class":134,"line":145},[1688,1692,1696,1700,1704],{"type":41,"tag":132,"props":1689,"children":1690},{"style":139},[1691],{"type":47,"value":151},{"type":41,"tag":132,"props":1693,"children":1694},{"style":154},[1695],{"type":47,"value":1658},{"type":41,"tag":132,"props":1697,"children":1698},{"style":139},[1699],{"type":47,"value":162},{"type":41,"tag":132,"props":1701,"children":1702},{"style":139},[1703],{"type":47,"value":167},{"type":41,"tag":132,"props":1705,"children":1706},{"style":139},[1707],{"type":47,"value":833},{"type":41,"tag":132,"props":1709,"children":1710},{"class":134,"line":190},[1711],{"type":41,"tag":132,"props":1712,"children":1713},{"style":139},[1714],{"type":47,"value":1287},{"type":41,"tag":132,"props":1716,"children":1717},{"class":134,"line":227},[1718,1722,1726,1730,1734,1738,1743,1747],{"type":41,"tag":132,"props":1719,"children":1720},{"style":139},[1721],{"type":47,"value":1295},{"type":41,"tag":132,"props":1723,"children":1724},{"style":577},[1725],{"type":47,"value":854},{"type":41,"tag":132,"props":1727,"children":1728},{"style":139},[1729],{"type":47,"value":162},{"type":41,"tag":132,"props":1731,"children":1732},{"style":139},[1733],{"type":47,"value":167},{"type":41,"tag":132,"props":1735,"children":1736},{"style":139},[1737],{"type":47,"value":172},{"type":41,"tag":132,"props":1739,"children":1740},{"style":175},[1741],{"type":47,"value":1742},"Edit",{"type":41,"tag":132,"props":1744,"children":1745},{"style":139},[1746],{"type":47,"value":162},{"type":41,"tag":132,"props":1748,"children":1749},{"style":139},[1750],{"type":47,"value":187},{"type":41,"tag":132,"props":1752,"children":1753},{"class":134,"line":254},[1754,1758,1762,1766,1770],{"type":41,"tag":132,"props":1755,"children":1756},{"style":139},[1757],{"type":47,"value":1295},{"type":41,"tag":132,"props":1759,"children":1760},{"style":577},[1761],{"type":47,"value":553},{"type":41,"tag":132,"props":1763,"children":1764},{"style":139},[1765],{"type":47,"value":162},{"type":41,"tag":132,"props":1767,"children":1768},{"style":139},[1769],{"type":47,"value":167},{"type":41,"tag":132,"props":1771,"children":1772},{"style":139},[1773],{"type":47,"value":833},{"type":41,"tag":132,"props":1775,"children":1776},{"class":134,"line":639},[1777],{"type":41,"tag":132,"props":1778,"children":1779},{"style":139},[1780],{"type":47,"value":1355},{"type":41,"tag":132,"props":1782,"children":1783},{"class":134,"line":673},[1784,1788,1792,1796,1800,1804,1808,1812],{"type":41,"tag":132,"props":1785,"children":1786},{"style":139},[1787],{"type":47,"value":1363},{"type":41,"tag":132,"props":1789,"children":1790},{"style":248},[1791],{"type":47,"value":157},{"type":41,"tag":132,"props":1793,"children":1794},{"style":139},[1795],{"type":47,"value":162},{"type":41,"tag":132,"props":1797,"children":1798},{"style":139},[1799],{"type":47,"value":167},{"type":41,"tag":132,"props":1801,"children":1802},{"style":139},[1803],{"type":47,"value":172},{"type":41,"tag":132,"props":1805,"children":1806},{"style":175},[1807],{"type":47,"value":178},{"type":41,"tag":132,"props":1809,"children":1810},{"style":139},[1811],{"type":47,"value":162},{"type":41,"tag":132,"props":1813,"children":1814},{"style":139},[1815],{"type":47,"value":187},{"type":41,"tag":132,"props":1817,"children":1818},{"class":134,"line":682},[1819,1823,1827,1831,1835,1839,1844],{"type":41,"tag":132,"props":1820,"children":1821},{"style":139},[1822],{"type":47,"value":1363},{"type":41,"tag":132,"props":1824,"children":1825},{"style":248},[1826],{"type":47,"value":178},{"type":41,"tag":132,"props":1828,"children":1829},{"style":139},[1830],{"type":47,"value":162},{"type":41,"tag":132,"props":1832,"children":1833},{"style":139},[1834],{"type":47,"value":167},{"type":41,"tag":132,"props":1836,"children":1837},{"style":139},[1838],{"type":47,"value":172},{"type":41,"tag":132,"props":1840,"children":1841},{"style":175},[1842],{"type":47,"value":1843},"Analyze edit result for potential issues: syntax errors, security vulnerabilities, breaking changes. Provide feedback.",{"type":41,"tag":132,"props":1845,"children":1846},{"style":139},[1847],{"type":47,"value":982},{"type":41,"tag":132,"props":1849,"children":1850},{"class":134,"line":913},[1851],{"type":41,"tag":132,"props":1852,"children":1853},{"style":139},[1854],{"type":47,"value":1431},{"type":41,"tag":132,"props":1856,"children":1857},{"class":134,"line":951},[1858],{"type":41,"tag":132,"props":1859,"children":1860},{"style":139},[1861],{"type":47,"value":1439},{"type":41,"tag":132,"props":1863,"children":1864},{"class":134,"line":985},[1865],{"type":41,"tag":132,"props":1866,"children":1867},{"style":139},[1868],{"type":47,"value":1447},{"type":41,"tag":132,"props":1870,"children":1871},{"class":134,"line":994},[1872],{"type":41,"tag":132,"props":1873,"children":1874},{"style":139},[1875],{"type":47,"value":1455},{"type":41,"tag":132,"props":1877,"children":1878},{"class":134,"line":1003},[1879],{"type":41,"tag":132,"props":1880,"children":1881},{"style":139},[1882],{"type":47,"value":260},{"type":41,"tag":57,"props":1884,"children":1885},{},[1886],{"type":41,"tag":66,"props":1887,"children":1888},{},[1889],{"type":47,"value":1890},"Output behavior:",{"type":41,"tag":72,"props":1892,"children":1893},{},[1894,1899,1904],{"type":41,"tag":76,"props":1895,"children":1896},{},[1897],{"type":47,"value":1898},"Exit 0: stdout shown in transcript",{"type":41,"tag":76,"props":1900,"children":1901},{},[1902],{"type":47,"value":1903},"Exit 2: stderr fed back to Claude",{"type":41,"tag":76,"props":1905,"children":1906},{},[1907],{"type":47,"value":1908},"systemMessage included in context",{"type":41,"tag":108,"props":1910,"children":1912},{"id":1911},"stop",[1913],{"type":47,"value":616},{"type":41,"tag":57,"props":1915,"children":1916},{},[1917],{"type":47,"value":1918},"Execute when main agent considers stopping. Use to validate completeness.",{"type":41,"tag":57,"props":1920,"children":1921},{},[1922],{"type":41,"tag":66,"props":1923,"children":1924},{},[1925],{"type":47,"value":736},{"type":41,"tag":120,"props":1927,"children":1929},{"className":122,"code":1928,"language":124,"meta":125,"style":125},"{\n  \"Stop\": [\n    {\n      \"matcher\": \"*\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Verify task completion: tests run, build succeeded, questions answered. Return 'approve' to stop or 'block' with reason to continue.\"\n        }\n      ]\n    }\n  ]\n}\n",[1930],{"type":41,"tag":128,"props":1931,"children":1932},{"__ignoreMap":125},[1933,1940,1963,1970,2006,2029,2036,2071,2103,2110,2117,2124,2131],{"type":41,"tag":132,"props":1934,"children":1935},{"class":134,"line":135},[1936],{"type":41,"tag":132,"props":1937,"children":1938},{"style":139},[1939],{"type":47,"value":142},{"type":41,"tag":132,"props":1941,"children":1942},{"class":134,"line":145},[1943,1947,1951,1955,1959],{"type":41,"tag":132,"props":1944,"children":1945},{"style":139},[1946],{"type":47,"value":151},{"type":41,"tag":132,"props":1948,"children":1949},{"style":154},[1950],{"type":47,"value":616},{"type":41,"tag":132,"props":1952,"children":1953},{"style":139},[1954],{"type":47,"value":162},{"type":41,"tag":132,"props":1956,"children":1957},{"style":139},[1958],{"type":47,"value":167},{"type":41,"tag":132,"props":1960,"children":1961},{"style":139},[1962],{"type":47,"value":833},{"type":41,"tag":132,"props":1964,"children":1965},{"class":134,"line":190},[1966],{"type":41,"tag":132,"props":1967,"children":1968},{"style":139},[1969],{"type":47,"value":1287},{"type":41,"tag":132,"props":1971,"children":1972},{"class":134,"line":227},[1973,1977,1981,1985,1989,1993,1998,2002],{"type":41,"tag":132,"props":1974,"children":1975},{"style":139},[1976],{"type":47,"value":1295},{"type":41,"tag":132,"props":1978,"children":1979},{"style":577},[1980],{"type":47,"value":854},{"type":41,"tag":132,"props":1982,"children":1983},{"style":139},[1984],{"type":47,"value":162},{"type":41,"tag":132,"props":1986,"children":1987},{"style":139},[1988],{"type":47,"value":167},{"type":41,"tag":132,"props":1990,"children":1991},{"style":139},[1992],{"type":47,"value":172},{"type":41,"tag":132,"props":1994,"children":1995},{"style":175},[1996],{"type":47,"value":1997},"*",{"type":41,"tag":132,"props":1999,"children":2000},{"style":139},[2001],{"type":47,"value":162},{"type":41,"tag":132,"props":2003,"children":2004},{"style":139},[2005],{"type":47,"value":187},{"type":41,"tag":132,"props":2007,"children":2008},{"class":134,"line":254},[2009,2013,2017,2021,2025],{"type":41,"tag":132,"props":2010,"children":2011},{"style":139},[2012],{"type":47,"value":1295},{"type":41,"tag":132,"props":2014,"children":2015},{"style":577},[2016],{"type":47,"value":553},{"type":41,"tag":132,"props":2018,"children":2019},{"style":139},[2020],{"type":47,"value":162},{"type":41,"tag":132,"props":2022,"children":2023},{"style":139},[2024],{"type":47,"value":167},{"type":41,"tag":132,"props":2026,"children":2027},{"style":139},[2028],{"type":47,"value":833},{"type":41,"tag":132,"props":2030,"children":2031},{"class":134,"line":639},[2032],{"type":41,"tag":132,"props":2033,"children":2034},{"style":139},[2035],{"type":47,"value":1355},{"type":41,"tag":132,"props":2037,"children":2038},{"class":134,"line":673},[2039,2043,2047,2051,2055,2059,2063,2067],{"type":41,"tag":132,"props":2040,"children":2041},{"style":139},[2042],{"type":47,"value":1363},{"type":41,"tag":132,"props":2044,"children":2045},{"style":248},[2046],{"type":47,"value":157},{"type":41,"tag":132,"props":2048,"children":2049},{"style":139},[2050],{"type":47,"value":162},{"type":41,"tag":132,"props":2052,"children":2053},{"style":139},[2054],{"type":47,"value":167},{"type":41,"tag":132,"props":2056,"children":2057},{"style":139},[2058],{"type":47,"value":172},{"type":41,"tag":132,"props":2060,"children":2061},{"style":175},[2062],{"type":47,"value":178},{"type":41,"tag":132,"props":2064,"children":2065},{"style":139},[2066],{"type":47,"value":162},{"type":41,"tag":132,"props":2068,"children":2069},{"style":139},[2070],{"type":47,"value":187},{"type":41,"tag":132,"props":2072,"children":2073},{"class":134,"line":682},[2074,2078,2082,2086,2090,2094,2099],{"type":41,"tag":132,"props":2075,"children":2076},{"style":139},[2077],{"type":47,"value":1363},{"type":41,"tag":132,"props":2079,"children":2080},{"style":248},[2081],{"type":47,"value":178},{"type":41,"tag":132,"props":2083,"children":2084},{"style":139},[2085],{"type":47,"value":162},{"type":41,"tag":132,"props":2087,"children":2088},{"style":139},[2089],{"type":47,"value":167},{"type":41,"tag":132,"props":2091,"children":2092},{"style":139},[2093],{"type":47,"value":172},{"type":41,"tag":132,"props":2095,"children":2096},{"style":175},[2097],{"type":47,"value":2098},"Verify task completion: tests run, build succeeded, questions answered. Return 'approve' to stop or 'block' with reason to continue.",{"type":41,"tag":132,"props":2100,"children":2101},{"style":139},[2102],{"type":47,"value":982},{"type":41,"tag":132,"props":2104,"children":2105},{"class":134,"line":913},[2106],{"type":41,"tag":132,"props":2107,"children":2108},{"style":139},[2109],{"type":47,"value":1431},{"type":41,"tag":132,"props":2111,"children":2112},{"class":134,"line":951},[2113],{"type":41,"tag":132,"props":2114,"children":2115},{"style":139},[2116],{"type":47,"value":1439},{"type":41,"tag":132,"props":2118,"children":2119},{"class":134,"line":985},[2120],{"type":41,"tag":132,"props":2121,"children":2122},{"style":139},[2123],{"type":47,"value":1447},{"type":41,"tag":132,"props":2125,"children":2126},{"class":134,"line":994},[2127],{"type":41,"tag":132,"props":2128,"children":2129},{"style":139},[2130],{"type":47,"value":1455},{"type":41,"tag":132,"props":2132,"children":2133},{"class":134,"line":1003},[2134],{"type":41,"tag":132,"props":2135,"children":2136},{"style":139},[2137],{"type":47,"value":260},{"type":41,"tag":57,"props":2139,"children":2140},{},[2141],{"type":41,"tag":66,"props":2142,"children":2143},{},[2144],{"type":47,"value":2145},"Decision output:",{"type":41,"tag":120,"props":2147,"children":2149},{"className":122,"code":2148,"language":124,"meta":125,"style":125},"{\n  \"decision\": \"approve|block\",\n  \"reason\": \"Explanation\",\n  \"systemMessage\": \"Additional context\"\n}\n",[2150],{"type":41,"tag":128,"props":2151,"children":2152},{"__ignoreMap":125},[2153,2160,2197,2234,2266],{"type":41,"tag":132,"props":2154,"children":2155},{"class":134,"line":135},[2156],{"type":41,"tag":132,"props":2157,"children":2158},{"style":139},[2159],{"type":47,"value":142},{"type":41,"tag":132,"props":2161,"children":2162},{"class":134,"line":145},[2163,2167,2172,2176,2180,2184,2189,2193],{"type":41,"tag":132,"props":2164,"children":2165},{"style":139},[2166],{"type":47,"value":151},{"type":41,"tag":132,"props":2168,"children":2169},{"style":154},[2170],{"type":47,"value":2171},"decision",{"type":41,"tag":132,"props":2173,"children":2174},{"style":139},[2175],{"type":47,"value":162},{"type":41,"tag":132,"props":2177,"children":2178},{"style":139},[2179],{"type":47,"value":167},{"type":41,"tag":132,"props":2181,"children":2182},{"style":139},[2183],{"type":47,"value":172},{"type":41,"tag":132,"props":2185,"children":2186},{"style":175},[2187],{"type":47,"value":2188},"approve|block",{"type":41,"tag":132,"props":2190,"children":2191},{"style":139},[2192],{"type":47,"value":162},{"type":41,"tag":132,"props":2194,"children":2195},{"style":139},[2196],{"type":47,"value":187},{"type":41,"tag":132,"props":2198,"children":2199},{"class":134,"line":190},[2200,2204,2209,2213,2217,2221,2226,2230],{"type":41,"tag":132,"props":2201,"children":2202},{"style":139},[2203],{"type":47,"value":151},{"type":41,"tag":132,"props":2205,"children":2206},{"style":154},[2207],{"type":47,"value":2208},"reason",{"type":41,"tag":132,"props":2210,"children":2211},{"style":139},[2212],{"type":47,"value":162},{"type":41,"tag":132,"props":2214,"children":2215},{"style":139},[2216],{"type":47,"value":167},{"type":41,"tag":132,"props":2218,"children":2219},{"style":139},[2220],{"type":47,"value":172},{"type":41,"tag":132,"props":2222,"children":2223},{"style":175},[2224],{"type":47,"value":2225},"Explanation",{"type":41,"tag":132,"props":2227,"children":2228},{"style":139},[2229],{"type":47,"value":162},{"type":41,"tag":132,"props":2231,"children":2232},{"style":139},[2233],{"type":47,"value":187},{"type":41,"tag":132,"props":2235,"children":2236},{"class":134,"line":227},[2237,2241,2245,2249,2253,2257,2262],{"type":41,"tag":132,"props":2238,"children":2239},{"style":139},[2240],{"type":47,"value":151},{"type":41,"tag":132,"props":2242,"children":2243},{"style":154},[2244],{"type":47,"value":1624},{"type":41,"tag":132,"props":2246,"children":2247},{"style":139},[2248],{"type":47,"value":162},{"type":41,"tag":132,"props":2250,"children":2251},{"style":139},[2252],{"type":47,"value":167},{"type":41,"tag":132,"props":2254,"children":2255},{"style":139},[2256],{"type":47,"value":172},{"type":41,"tag":132,"props":2258,"children":2259},{"style":175},[2260],{"type":47,"value":2261},"Additional context",{"type":41,"tag":132,"props":2263,"children":2264},{"style":139},[2265],{"type":47,"value":982},{"type":41,"tag":132,"props":2267,"children":2268},{"class":134,"line":254},[2269],{"type":41,"tag":132,"props":2270,"children":2271},{"style":139},[2272],{"type":47,"value":260},{"type":41,"tag":108,"props":2274,"children":2276},{"id":2275},"subagentstop",[2277],{"type":47,"value":2278},"SubagentStop",{"type":41,"tag":57,"props":2280,"children":2281},{},[2282],{"type":47,"value":2283},"Execute when subagent considers stopping. Use to ensure subagent completed its task.",{"type":41,"tag":57,"props":2285,"children":2286},{},[2287],{"type":47,"value":2288},"Similar to Stop hook, but for subagents.",{"type":41,"tag":108,"props":2290,"children":2292},{"id":2291},"userpromptsubmit",[2293],{"type":47,"value":2294},"UserPromptSubmit",{"type":41,"tag":57,"props":2296,"children":2297},{},[2298],{"type":47,"value":2299},"Execute when user submits a prompt. Use to add context, validate, or block prompts.",{"type":41,"tag":57,"props":2301,"children":2302},{},[2303],{"type":41,"tag":66,"props":2304,"children":2305},{},[2306],{"type":47,"value":736},{"type":41,"tag":120,"props":2308,"children":2310},{"className":122,"code":2309,"language":124,"meta":125,"style":125},"{\n  \"UserPromptSubmit\": [\n    {\n      \"matcher\": \"*\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Check if prompt requires security guidance. If discussing auth, permissions, or API security, return relevant warnings.\"\n        }\n      ]\n    }\n  ]\n}\n",[2311],{"type":41,"tag":128,"props":2312,"children":2313},{"__ignoreMap":125},[2314,2321,2344,2351,2386,2409,2416,2451,2483,2490,2497,2504,2511],{"type":41,"tag":132,"props":2315,"children":2316},{"class":134,"line":135},[2317],{"type":41,"tag":132,"props":2318,"children":2319},{"style":139},[2320],{"type":47,"value":142},{"type":41,"tag":132,"props":2322,"children":2323},{"class":134,"line":145},[2324,2328,2332,2336,2340],{"type":41,"tag":132,"props":2325,"children":2326},{"style":139},[2327],{"type":47,"value":151},{"type":41,"tag":132,"props":2329,"children":2330},{"style":154},[2331],{"type":47,"value":2294},{"type":41,"tag":132,"props":2333,"children":2334},{"style":139},[2335],{"type":47,"value":162},{"type":41,"tag":132,"props":2337,"children":2338},{"style":139},[2339],{"type":47,"value":167},{"type":41,"tag":132,"props":2341,"children":2342},{"style":139},[2343],{"type":47,"value":833},{"type":41,"tag":132,"props":2345,"children":2346},{"class":134,"line":190},[2347],{"type":41,"tag":132,"props":2348,"children":2349},{"style":139},[2350],{"type":47,"value":1287},{"type":41,"tag":132,"props":2352,"children":2353},{"class":134,"line":227},[2354,2358,2362,2366,2370,2374,2378,2382],{"type":41,"tag":132,"props":2355,"children":2356},{"style":139},[2357],{"type":47,"value":1295},{"type":41,"tag":132,"props":2359,"children":2360},{"style":577},[2361],{"type":47,"value":854},{"type":41,"tag":132,"props":2363,"children":2364},{"style":139},[2365],{"type":47,"value":162},{"type":41,"tag":132,"props":2367,"children":2368},{"style":139},[2369],{"type":47,"value":167},{"type":41,"tag":132,"props":2371,"children":2372},{"style":139},[2373],{"type":47,"value":172},{"type":41,"tag":132,"props":2375,"children":2376},{"style":175},[2377],{"type":47,"value":1997},{"type":41,"tag":132,"props":2379,"children":2380},{"style":139},[2381],{"type":47,"value":162},{"type":41,"tag":132,"props":2383,"children":2384},{"style":139},[2385],{"type":47,"value":187},{"type":41,"tag":132,"props":2387,"children":2388},{"class":134,"line":254},[2389,2393,2397,2401,2405],{"type":41,"tag":132,"props":2390,"children":2391},{"style":139},[2392],{"type":47,"value":1295},{"type":41,"tag":132,"props":2394,"children":2395},{"style":577},[2396],{"type":47,"value":553},{"type":41,"tag":132,"props":2398,"children":2399},{"style":139},[2400],{"type":47,"value":162},{"type":41,"tag":132,"props":2402,"children":2403},{"style":139},[2404],{"type":47,"value":167},{"type":41,"tag":132,"props":2406,"children":2407},{"style":139},[2408],{"type":47,"value":833},{"type":41,"tag":132,"props":2410,"children":2411},{"class":134,"line":639},[2412],{"type":41,"tag":132,"props":2413,"children":2414},{"style":139},[2415],{"type":47,"value":1355},{"type":41,"tag":132,"props":2417,"children":2418},{"class":134,"line":673},[2419,2423,2427,2431,2435,2439,2443,2447],{"type":41,"tag":132,"props":2420,"children":2421},{"style":139},[2422],{"type":47,"value":1363},{"type":41,"tag":132,"props":2424,"children":2425},{"style":248},[2426],{"type":47,"value":157},{"type":41,"tag":132,"props":2428,"children":2429},{"style":139},[2430],{"type":47,"value":162},{"type":41,"tag":132,"props":2432,"children":2433},{"style":139},[2434],{"type":47,"value":167},{"type":41,"tag":132,"props":2436,"children":2437},{"style":139},[2438],{"type":47,"value":172},{"type":41,"tag":132,"props":2440,"children":2441},{"style":175},[2442],{"type":47,"value":178},{"type":41,"tag":132,"props":2444,"children":2445},{"style":139},[2446],{"type":47,"value":162},{"type":41,"tag":132,"props":2448,"children":2449},{"style":139},[2450],{"type":47,"value":187},{"type":41,"tag":132,"props":2452,"children":2453},{"class":134,"line":682},[2454,2458,2462,2466,2470,2474,2479],{"type":41,"tag":132,"props":2455,"children":2456},{"style":139},[2457],{"type":47,"value":1363},{"type":41,"tag":132,"props":2459,"children":2460},{"style":248},[2461],{"type":47,"value":178},{"type":41,"tag":132,"props":2463,"children":2464},{"style":139},[2465],{"type":47,"value":162},{"type":41,"tag":132,"props":2467,"children":2468},{"style":139},[2469],{"type":47,"value":167},{"type":41,"tag":132,"props":2471,"children":2472},{"style":139},[2473],{"type":47,"value":172},{"type":41,"tag":132,"props":2475,"children":2476},{"style":175},[2477],{"type":47,"value":2478},"Check if prompt requires security guidance. If discussing auth, permissions, or API security, return relevant warnings.",{"type":41,"tag":132,"props":2480,"children":2481},{"style":139},[2482],{"type":47,"value":982},{"type":41,"tag":132,"props":2484,"children":2485},{"class":134,"line":913},[2486],{"type":41,"tag":132,"props":2487,"children":2488},{"style":139},[2489],{"type":47,"value":1431},{"type":41,"tag":132,"props":2491,"children":2492},{"class":134,"line":951},[2493],{"type":41,"tag":132,"props":2494,"children":2495},{"style":139},[2496],{"type":47,"value":1439},{"type":41,"tag":132,"props":2498,"children":2499},{"class":134,"line":985},[2500],{"type":41,"tag":132,"props":2501,"children":2502},{"style":139},[2503],{"type":47,"value":1447},{"type":41,"tag":132,"props":2505,"children":2506},{"class":134,"line":994},[2507],{"type":41,"tag":132,"props":2508,"children":2509},{"style":139},[2510],{"type":47,"value":1455},{"type":41,"tag":132,"props":2512,"children":2513},{"class":134,"line":1003},[2514],{"type":41,"tag":132,"props":2515,"children":2516},{"style":139},[2517],{"type":47,"value":260},{"type":41,"tag":108,"props":2519,"children":2521},{"id":2520},"sessionstart",[2522],{"type":47,"value":649},{"type":41,"tag":57,"props":2524,"children":2525},{},[2526],{"type":47,"value":2527},"Execute when Claude Code session begins. Use to load context and set environment.",{"type":41,"tag":57,"props":2529,"children":2530},{},[2531],{"type":41,"tag":66,"props":2532,"children":2533},{},[2534],{"type":47,"value":736},{"type":41,"tag":120,"props":2536,"children":2538},{"className":122,"code":2537,"language":124,"meta":125,"style":125},"{\n  \"SessionStart\": [\n    {\n      \"matcher\": \"*\",\n      \"hooks\": [\n        {\n          \"type\": \"command\",\n          \"command\": \"bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fload-context.sh\"\n        }\n      ]\n    }\n  ]\n}\n",[2539],{"type":41,"tag":128,"props":2540,"children":2541},{"__ignoreMap":125},[2542,2549,2572,2579,2614,2637,2644,2679,2711,2718,2725,2732,2739],{"type":41,"tag":132,"props":2543,"children":2544},{"class":134,"line":135},[2545],{"type":41,"tag":132,"props":2546,"children":2547},{"style":139},[2548],{"type":47,"value":142},{"type":41,"tag":132,"props":2550,"children":2551},{"class":134,"line":145},[2552,2556,2560,2564,2568],{"type":41,"tag":132,"props":2553,"children":2554},{"style":139},[2555],{"type":47,"value":151},{"type":41,"tag":132,"props":2557,"children":2558},{"style":154},[2559],{"type":47,"value":649},{"type":41,"tag":132,"props":2561,"children":2562},{"style":139},[2563],{"type":47,"value":162},{"type":41,"tag":132,"props":2565,"children":2566},{"style":139},[2567],{"type":47,"value":167},{"type":41,"tag":132,"props":2569,"children":2570},{"style":139},[2571],{"type":47,"value":833},{"type":41,"tag":132,"props":2573,"children":2574},{"class":134,"line":190},[2575],{"type":41,"tag":132,"props":2576,"children":2577},{"style":139},[2578],{"type":47,"value":1287},{"type":41,"tag":132,"props":2580,"children":2581},{"class":134,"line":227},[2582,2586,2590,2594,2598,2602,2606,2610],{"type":41,"tag":132,"props":2583,"children":2584},{"style":139},[2585],{"type":47,"value":1295},{"type":41,"tag":132,"props":2587,"children":2588},{"style":577},[2589],{"type":47,"value":854},{"type":41,"tag":132,"props":2591,"children":2592},{"style":139},[2593],{"type":47,"value":162},{"type":41,"tag":132,"props":2595,"children":2596},{"style":139},[2597],{"type":47,"value":167},{"type":41,"tag":132,"props":2599,"children":2600},{"style":139},[2601],{"type":47,"value":172},{"type":41,"tag":132,"props":2603,"children":2604},{"style":175},[2605],{"type":47,"value":1997},{"type":41,"tag":132,"props":2607,"children":2608},{"style":139},[2609],{"type":47,"value":162},{"type":41,"tag":132,"props":2611,"children":2612},{"style":139},[2613],{"type":47,"value":187},{"type":41,"tag":132,"props":2615,"children":2616},{"class":134,"line":254},[2617,2621,2625,2629,2633],{"type":41,"tag":132,"props":2618,"children":2619},{"style":139},[2620],{"type":47,"value":1295},{"type":41,"tag":132,"props":2622,"children":2623},{"style":577},[2624],{"type":47,"value":553},{"type":41,"tag":132,"props":2626,"children":2627},{"style":139},[2628],{"type":47,"value":162},{"type":41,"tag":132,"props":2630,"children":2631},{"style":139},[2632],{"type":47,"value":167},{"type":41,"tag":132,"props":2634,"children":2635},{"style":139},[2636],{"type":47,"value":833},{"type":41,"tag":132,"props":2638,"children":2639},{"class":134,"line":639},[2640],{"type":41,"tag":132,"props":2641,"children":2642},{"style":139},[2643],{"type":47,"value":1355},{"type":41,"tag":132,"props":2645,"children":2646},{"class":134,"line":673},[2647,2651,2655,2659,2663,2667,2671,2675],{"type":41,"tag":132,"props":2648,"children":2649},{"style":139},[2650],{"type":47,"value":1363},{"type":41,"tag":132,"props":2652,"children":2653},{"style":248},[2654],{"type":47,"value":157},{"type":41,"tag":132,"props":2656,"children":2657},{"style":139},[2658],{"type":47,"value":162},{"type":41,"tag":132,"props":2660,"children":2661},{"style":139},[2662],{"type":47,"value":167},{"type":41,"tag":132,"props":2664,"children":2665},{"style":139},[2666],{"type":47,"value":172},{"type":41,"tag":132,"props":2668,"children":2669},{"style":175},[2670],{"type":47,"value":354},{"type":41,"tag":132,"props":2672,"children":2673},{"style":139},[2674],{"type":47,"value":162},{"type":41,"tag":132,"props":2676,"children":2677},{"style":139},[2678],{"type":47,"value":187},{"type":41,"tag":132,"props":2680,"children":2681},{"class":134,"line":682},[2682,2686,2690,2694,2698,2702,2707],{"type":41,"tag":132,"props":2683,"children":2684},{"style":139},[2685],{"type":47,"value":1363},{"type":41,"tag":132,"props":2687,"children":2688},{"style":248},[2689],{"type":47,"value":354},{"type":41,"tag":132,"props":2691,"children":2692},{"style":139},[2693],{"type":47,"value":162},{"type":41,"tag":132,"props":2695,"children":2696},{"style":139},[2697],{"type":47,"value":167},{"type":41,"tag":132,"props":2699,"children":2700},{"style":139},[2701],{"type":47,"value":172},{"type":41,"tag":132,"props":2703,"children":2704},{"style":175},[2705],{"type":47,"value":2706},"bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fload-context.sh",{"type":41,"tag":132,"props":2708,"children":2709},{"style":139},[2710],{"type":47,"value":982},{"type":41,"tag":132,"props":2712,"children":2713},{"class":134,"line":913},[2714],{"type":41,"tag":132,"props":2715,"children":2716},{"style":139},[2717],{"type":47,"value":1431},{"type":41,"tag":132,"props":2719,"children":2720},{"class":134,"line":951},[2721],{"type":41,"tag":132,"props":2722,"children":2723},{"style":139},[2724],{"type":47,"value":1439},{"type":41,"tag":132,"props":2726,"children":2727},{"class":134,"line":985},[2728],{"type":41,"tag":132,"props":2729,"children":2730},{"style":139},[2731],{"type":47,"value":1447},{"type":41,"tag":132,"props":2733,"children":2734},{"class":134,"line":994},[2735],{"type":41,"tag":132,"props":2736,"children":2737},{"style":139},[2738],{"type":47,"value":1455},{"type":41,"tag":132,"props":2740,"children":2741},{"class":134,"line":1003},[2742],{"type":41,"tag":132,"props":2743,"children":2744},{"style":139},[2745],{"type":47,"value":260},{"type":41,"tag":57,"props":2747,"children":2748},{},[2749,2754,2756,2762],{"type":41,"tag":66,"props":2750,"children":2751},{},[2752],{"type":47,"value":2753},"Special capability:",{"type":47,"value":2755}," Persist environment variables using ",{"type":41,"tag":128,"props":2757,"children":2759},{"className":2758},[],[2760],{"type":47,"value":2761},"$CLAUDE_ENV_FILE",{"type":47,"value":167},{"type":41,"tag":120,"props":2764,"children":2768},{"className":2765,"code":2766,"language":2767,"meta":125,"style":125},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","echo \"export PROJECT_TYPE=nodejs\" >> \"$CLAUDE_ENV_FILE\"\n","bash",[2769],{"type":41,"tag":128,"props":2770,"children":2771},{"__ignoreMap":125},[2772],{"type":41,"tag":132,"props":2773,"children":2774},{"class":134,"line":135},[2775,2781,2785,2790,2794,2799,2803,2807],{"type":41,"tag":132,"props":2776,"children":2778},{"style":2777},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[2779],{"type":47,"value":2780},"echo",{"type":41,"tag":132,"props":2782,"children":2783},{"style":139},[2784],{"type":47,"value":172},{"type":41,"tag":132,"props":2786,"children":2787},{"style":175},[2788],{"type":47,"value":2789},"export PROJECT_TYPE=nodejs",{"type":41,"tag":132,"props":2791,"children":2792},{"style":139},[2793],{"type":47,"value":162},{"type":41,"tag":132,"props":2795,"children":2796},{"style":139},[2797],{"type":47,"value":2798}," >>",{"type":41,"tag":132,"props":2800,"children":2801},{"style":139},[2802],{"type":47,"value":172},{"type":41,"tag":132,"props":2804,"children":2805},{"style":596},[2806],{"type":47,"value":2761},{"type":41,"tag":132,"props":2808,"children":2809},{"style":139},[2810],{"type":47,"value":982},{"type":41,"tag":57,"props":2812,"children":2813},{},[2814,2816,2822],{"type":47,"value":2815},"See ",{"type":41,"tag":128,"props":2817,"children":2819},{"className":2818},[],[2820],{"type":47,"value":2821},"examples\u002Fload-context.sh",{"type":47,"value":2823}," for complete example.",{"type":41,"tag":108,"props":2825,"children":2827},{"id":2826},"sessionend",[2828],{"type":47,"value":2829},"SessionEnd",{"type":41,"tag":57,"props":2831,"children":2832},{},[2833],{"type":47,"value":2834},"Execute when session ends. Use for cleanup, logging, and state preservation.",{"type":41,"tag":108,"props":2836,"children":2838},{"id":2837},"precompact",[2839],{"type":47,"value":2840},"PreCompact",{"type":41,"tag":57,"props":2842,"children":2843},{},[2844],{"type":47,"value":2845},"Execute before context compaction. Use to add critical information to preserve.",{"type":41,"tag":108,"props":2847,"children":2849},{"id":2848},"notification",[2850],{"type":47,"value":2851},"Notification",{"type":41,"tag":57,"props":2853,"children":2854},{},[2855],{"type":47,"value":2856},"Execute when Claude sends notifications. Use to react to user notifications.",{"type":41,"tag":50,"props":2858,"children":2860},{"id":2859},"hook-output-format",[2861],{"type":47,"value":2862},"Hook Output Format",{"type":41,"tag":108,"props":2864,"children":2866},{"id":2865},"standard-output-all-hooks",[2867],{"type":47,"value":2868},"Standard Output (All Hooks)",{"type":41,"tag":120,"props":2870,"children":2872},{"className":122,"code":2871,"language":124,"meta":125,"style":125},"{\n  \"continue\": true,\n  \"suppressOutput\": false,\n  \"systemMessage\": \"Message for Claude\"\n}\n",[2873],{"type":41,"tag":128,"props":2874,"children":2875},{"__ignoreMap":125},[2876,2883,2908,2933,2965],{"type":41,"tag":132,"props":2877,"children":2878},{"class":134,"line":135},[2879],{"type":41,"tag":132,"props":2880,"children":2881},{"style":139},[2882],{"type":47,"value":142},{"type":41,"tag":132,"props":2884,"children":2885},{"class":134,"line":145},[2886,2890,2895,2899,2903],{"type":41,"tag":132,"props":2887,"children":2888},{"style":139},[2889],{"type":47,"value":151},{"type":41,"tag":132,"props":2891,"children":2892},{"style":154},[2893],{"type":47,"value":2894},"continue",{"type":41,"tag":132,"props":2896,"children":2897},{"style":139},[2898],{"type":47,"value":162},{"type":41,"tag":132,"props":2900,"children":2901},{"style":139},[2902],{"type":47,"value":167},{"type":41,"tag":132,"props":2904,"children":2905},{"style":139},[2906],{"type":47,"value":2907}," true,\n",{"type":41,"tag":132,"props":2909,"children":2910},{"class":134,"line":190},[2911,2915,2920,2924,2928],{"type":41,"tag":132,"props":2912,"children":2913},{"style":139},[2914],{"type":47,"value":151},{"type":41,"tag":132,"props":2916,"children":2917},{"style":154},[2918],{"type":47,"value":2919},"suppressOutput",{"type":41,"tag":132,"props":2921,"children":2922},{"style":139},[2923],{"type":47,"value":162},{"type":41,"tag":132,"props":2925,"children":2926},{"style":139},[2927],{"type":47,"value":167},{"type":41,"tag":132,"props":2929,"children":2930},{"style":139},[2931],{"type":47,"value":2932}," false,\n",{"type":41,"tag":132,"props":2934,"children":2935},{"class":134,"line":227},[2936,2940,2944,2948,2952,2956,2961],{"type":41,"tag":132,"props":2937,"children":2938},{"style":139},[2939],{"type":47,"value":151},{"type":41,"tag":132,"props":2941,"children":2942},{"style":154},[2943],{"type":47,"value":1624},{"type":41,"tag":132,"props":2945,"children":2946},{"style":139},[2947],{"type":47,"value":162},{"type":41,"tag":132,"props":2949,"children":2950},{"style":139},[2951],{"type":47,"value":167},{"type":41,"tag":132,"props":2953,"children":2954},{"style":139},[2955],{"type":47,"value":172},{"type":41,"tag":132,"props":2957,"children":2958},{"style":175},[2959],{"type":47,"value":2960},"Message for Claude",{"type":41,"tag":132,"props":2962,"children":2963},{"style":139},[2964],{"type":47,"value":982},{"type":41,"tag":132,"props":2966,"children":2967},{"class":134,"line":254},[2968],{"type":41,"tag":132,"props":2969,"children":2970},{"style":139},[2971],{"type":47,"value":260},{"type":41,"tag":72,"props":2973,"children":2974},{},[2975,2985,2995],{"type":41,"tag":76,"props":2976,"children":2977},{},[2978,2983],{"type":41,"tag":128,"props":2979,"children":2981},{"className":2980},[],[2982],{"type":47,"value":2894},{"type":47,"value":2984},": If false, halt processing (default true)",{"type":41,"tag":76,"props":2986,"children":2987},{},[2988,2993],{"type":41,"tag":128,"props":2989,"children":2991},{"className":2990},[],[2992],{"type":47,"value":2919},{"type":47,"value":2994},": Hide output from transcript (default false)",{"type":41,"tag":76,"props":2996,"children":2997},{},[2998,3003],{"type":41,"tag":128,"props":2999,"children":3001},{"className":3000},[],[3002],{"type":47,"value":1624},{"type":47,"value":3004},": Message shown to Claude",{"type":41,"tag":108,"props":3006,"children":3008},{"id":3007},"exit-codes",[3009],{"type":47,"value":3010},"Exit Codes",{"type":41,"tag":72,"props":3012,"children":3013},{},[3014,3025,3036],{"type":41,"tag":76,"props":3015,"children":3016},{},[3017,3023],{"type":41,"tag":128,"props":3018,"children":3020},{"className":3019},[],[3021],{"type":47,"value":3022},"0",{"type":47,"value":3024}," - Success (stdout shown in transcript)",{"type":41,"tag":76,"props":3026,"children":3027},{},[3028,3034],{"type":41,"tag":128,"props":3029,"children":3031},{"className":3030},[],[3032],{"type":47,"value":3033},"2",{"type":47,"value":3035}," - Blocking error (stderr fed back to Claude)",{"type":41,"tag":76,"props":3037,"children":3038},{},[3039],{"type":47,"value":3040},"Other - Non-blocking error",{"type":41,"tag":50,"props":3042,"children":3044},{"id":3043},"hook-input-format",[3045],{"type":47,"value":3046},"Hook Input Format",{"type":41,"tag":57,"props":3048,"children":3049},{},[3050],{"type":47,"value":3051},"All hooks receive JSON via stdin with common fields:",{"type":41,"tag":120,"props":3053,"children":3055},{"className":122,"code":3054,"language":124,"meta":125,"style":125},"{\n  \"session_id\": \"abc123\",\n  \"transcript_path\": \"\u002Fpath\u002Fto\u002Ftranscript.txt\",\n  \"cwd\": \"\u002Fcurrent\u002Fworking\u002Fdir\",\n  \"permission_mode\": \"ask|allow\",\n  \"hook_event_name\": \"PreToolUse\"\n}\n",[3056],{"type":41,"tag":128,"props":3057,"children":3058},{"__ignoreMap":125},[3059,3066,3103,3140,3177,3214,3246],{"type":41,"tag":132,"props":3060,"children":3061},{"class":134,"line":135},[3062],{"type":41,"tag":132,"props":3063,"children":3064},{"style":139},[3065],{"type":47,"value":142},{"type":41,"tag":132,"props":3067,"children":3068},{"class":134,"line":145},[3069,3073,3078,3082,3086,3090,3095,3099],{"type":41,"tag":132,"props":3070,"children":3071},{"style":139},[3072],{"type":47,"value":151},{"type":41,"tag":132,"props":3074,"children":3075},{"style":154},[3076],{"type":47,"value":3077},"session_id",{"type":41,"tag":132,"props":3079,"children":3080},{"style":139},[3081],{"type":47,"value":162},{"type":41,"tag":132,"props":3083,"children":3084},{"style":139},[3085],{"type":47,"value":167},{"type":41,"tag":132,"props":3087,"children":3088},{"style":139},[3089],{"type":47,"value":172},{"type":41,"tag":132,"props":3091,"children":3092},{"style":175},[3093],{"type":47,"value":3094},"abc123",{"type":41,"tag":132,"props":3096,"children":3097},{"style":139},[3098],{"type":47,"value":162},{"type":41,"tag":132,"props":3100,"children":3101},{"style":139},[3102],{"type":47,"value":187},{"type":41,"tag":132,"props":3104,"children":3105},{"class":134,"line":190},[3106,3110,3115,3119,3123,3127,3132,3136],{"type":41,"tag":132,"props":3107,"children":3108},{"style":139},[3109],{"type":47,"value":151},{"type":41,"tag":132,"props":3111,"children":3112},{"style":154},[3113],{"type":47,"value":3114},"transcript_path",{"type":41,"tag":132,"props":3116,"children":3117},{"style":139},[3118],{"type":47,"value":162},{"type":41,"tag":132,"props":3120,"children":3121},{"style":139},[3122],{"type":47,"value":167},{"type":41,"tag":132,"props":3124,"children":3125},{"style":139},[3126],{"type":47,"value":172},{"type":41,"tag":132,"props":3128,"children":3129},{"style":175},[3130],{"type":47,"value":3131},"\u002Fpath\u002Fto\u002Ftranscript.txt",{"type":41,"tag":132,"props":3133,"children":3134},{"style":139},[3135],{"type":47,"value":162},{"type":41,"tag":132,"props":3137,"children":3138},{"style":139},[3139],{"type":47,"value":187},{"type":41,"tag":132,"props":3141,"children":3142},{"class":134,"line":227},[3143,3147,3152,3156,3160,3164,3169,3173],{"type":41,"tag":132,"props":3144,"children":3145},{"style":139},[3146],{"type":47,"value":151},{"type":41,"tag":132,"props":3148,"children":3149},{"style":154},[3150],{"type":47,"value":3151},"cwd",{"type":41,"tag":132,"props":3153,"children":3154},{"style":139},[3155],{"type":47,"value":162},{"type":41,"tag":132,"props":3157,"children":3158},{"style":139},[3159],{"type":47,"value":167},{"type":41,"tag":132,"props":3161,"children":3162},{"style":139},[3163],{"type":47,"value":172},{"type":41,"tag":132,"props":3165,"children":3166},{"style":175},[3167],{"type":47,"value":3168},"\u002Fcurrent\u002Fworking\u002Fdir",{"type":41,"tag":132,"props":3170,"children":3171},{"style":139},[3172],{"type":47,"value":162},{"type":41,"tag":132,"props":3174,"children":3175},{"style":139},[3176],{"type":47,"value":187},{"type":41,"tag":132,"props":3178,"children":3179},{"class":134,"line":254},[3180,3184,3189,3193,3197,3201,3206,3210],{"type":41,"tag":132,"props":3181,"children":3182},{"style":139},[3183],{"type":47,"value":151},{"type":41,"tag":132,"props":3185,"children":3186},{"style":154},[3187],{"type":47,"value":3188},"permission_mode",{"type":41,"tag":132,"props":3190,"children":3191},{"style":139},[3192],{"type":47,"value":162},{"type":41,"tag":132,"props":3194,"children":3195},{"style":139},[3196],{"type":47,"value":167},{"type":41,"tag":132,"props":3198,"children":3199},{"style":139},[3200],{"type":47,"value":172},{"type":41,"tag":132,"props":3202,"children":3203},{"style":175},[3204],{"type":47,"value":3205},"ask|allow",{"type":41,"tag":132,"props":3207,"children":3208},{"style":139},[3209],{"type":47,"value":162},{"type":41,"tag":132,"props":3211,"children":3212},{"style":139},[3213],{"type":47,"value":187},{"type":41,"tag":132,"props":3215,"children":3216},{"class":134,"line":639},[3217,3221,3226,3230,3234,3238,3242],{"type":41,"tag":132,"props":3218,"children":3219},{"style":139},[3220],{"type":47,"value":151},{"type":41,"tag":132,"props":3222,"children":3223},{"style":154},[3224],{"type":47,"value":3225},"hook_event_name",{"type":41,"tag":132,"props":3227,"children":3228},{"style":139},[3229],{"type":47,"value":162},{"type":41,"tag":132,"props":3231,"children":3232},{"style":139},[3233],{"type":47,"value":167},{"type":41,"tag":132,"props":3235,"children":3236},{"style":139},[3237],{"type":47,"value":172},{"type":41,"tag":132,"props":3239,"children":3240},{"style":175},[3241],{"type":47,"value":580},{"type":41,"tag":132,"props":3243,"children":3244},{"style":139},[3245],{"type":47,"value":982},{"type":41,"tag":132,"props":3247,"children":3248},{"class":134,"line":673},[3249],{"type":41,"tag":132,"props":3250,"children":3251},{"style":139},[3252],{"type":47,"value":260},{"type":41,"tag":57,"props":3254,"children":3255},{},[3256],{"type":41,"tag":66,"props":3257,"children":3258},{},[3259],{"type":47,"value":3260},"Event-specific fields:",{"type":41,"tag":72,"props":3262,"children":3263},{},[3264,3295,3310],{"type":41,"tag":76,"props":3265,"children":3266},{},[3267,3272,3274,3280,3282,3288,3289],{"type":41,"tag":66,"props":3268,"children":3269},{},[3270],{"type":47,"value":3271},"PreToolUse\u002FPostToolUse:",{"type":47,"value":3273}," ",{"type":41,"tag":128,"props":3275,"children":3277},{"className":3276},[],[3278],{"type":47,"value":3279},"tool_name",{"type":47,"value":3281},", ",{"type":41,"tag":128,"props":3283,"children":3285},{"className":3284},[],[3286],{"type":47,"value":3287},"tool_input",{"type":47,"value":3281},{"type":41,"tag":128,"props":3290,"children":3292},{"className":3291},[],[3293],{"type":47,"value":3294},"tool_result",{"type":41,"tag":76,"props":3296,"children":3297},{},[3298,3303,3304],{"type":41,"tag":66,"props":3299,"children":3300},{},[3301],{"type":47,"value":3302},"UserPromptSubmit:",{"type":47,"value":3273},{"type":41,"tag":128,"props":3305,"children":3307},{"className":3306},[],[3308],{"type":47,"value":3309},"user_prompt",{"type":41,"tag":76,"props":3311,"children":3312},{},[3313,3318,3319],{"type":41,"tag":66,"props":3314,"children":3315},{},[3316],{"type":47,"value":3317},"Stop\u002FSubagentStop:",{"type":47,"value":3273},{"type":41,"tag":128,"props":3320,"children":3322},{"className":3321},[],[3323],{"type":47,"value":2208},{"type":41,"tag":57,"props":3325,"children":3326},{},[3327,3329,3335,3336,3342,3343,3349],{"type":47,"value":3328},"Access fields in prompts using ",{"type":41,"tag":128,"props":3330,"children":3332},{"className":3331},[],[3333],{"type":47,"value":3334},"$TOOL_INPUT",{"type":47,"value":3281},{"type":41,"tag":128,"props":3337,"children":3339},{"className":3338},[],[3340],{"type":47,"value":3341},"$TOOL_RESULT",{"type":47,"value":3281},{"type":41,"tag":128,"props":3344,"children":3346},{"className":3345},[],[3347],{"type":47,"value":3348},"$USER_PROMPT",{"type":47,"value":3350},", etc.",{"type":41,"tag":50,"props":3352,"children":3354},{"id":3353},"environment-variables",[3355],{"type":47,"value":3356},"Environment Variables",{"type":41,"tag":57,"props":3358,"children":3359},{},[3360],{"type":47,"value":3361},"Available in all command hooks:",{"type":41,"tag":72,"props":3363,"children":3364},{},[3365,3376,3387,3397],{"type":41,"tag":76,"props":3366,"children":3367},{},[3368,3374],{"type":41,"tag":128,"props":3369,"children":3371},{"className":3370},[],[3372],{"type":47,"value":3373},"$CLAUDE_PROJECT_DIR",{"type":47,"value":3375}," - Project root path",{"type":41,"tag":76,"props":3377,"children":3378},{},[3379,3385],{"type":41,"tag":128,"props":3380,"children":3382},{"className":3381},[],[3383],{"type":47,"value":3384},"$CLAUDE_PLUGIN_ROOT",{"type":47,"value":3386}," - Plugin directory (use for portable paths)",{"type":41,"tag":76,"props":3388,"children":3389},{},[3390,3395],{"type":41,"tag":128,"props":3391,"children":3393},{"className":3392},[],[3394],{"type":47,"value":2761},{"type":47,"value":3396}," - SessionStart only: persist env vars here",{"type":41,"tag":76,"props":3398,"children":3399},{},[3400,3406],{"type":41,"tag":128,"props":3401,"children":3403},{"className":3402},[],[3404],{"type":47,"value":3405},"$CLAUDE_CODE_REMOTE",{"type":47,"value":3407}," - Set if running in remote context",{"type":41,"tag":57,"props":3409,"children":3410},{},[3411],{"type":41,"tag":66,"props":3412,"children":3413},{},[3414],{"type":47,"value":3415},"Always use ${CLAUDE_PLUGIN_ROOT} in hook commands for portability:",{"type":41,"tag":120,"props":3417,"children":3419},{"className":122,"code":3418,"language":124,"meta":125,"style":125},"{\n  \"type\": \"command\",\n  \"command\": \"bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate.sh\"\n}\n",[3420],{"type":41,"tag":128,"props":3421,"children":3422},{"__ignoreMap":125},[3423,3430,3465,3496],{"type":41,"tag":132,"props":3424,"children":3425},{"class":134,"line":135},[3426],{"type":41,"tag":132,"props":3427,"children":3428},{"style":139},[3429],{"type":47,"value":142},{"type":41,"tag":132,"props":3431,"children":3432},{"class":134,"line":145},[3433,3437,3441,3445,3449,3453,3457,3461],{"type":41,"tag":132,"props":3434,"children":3435},{"style":139},[3436],{"type":47,"value":151},{"type":41,"tag":132,"props":3438,"children":3439},{"style":154},[3440],{"type":47,"value":157},{"type":41,"tag":132,"props":3442,"children":3443},{"style":139},[3444],{"type":47,"value":162},{"type":41,"tag":132,"props":3446,"children":3447},{"style":139},[3448],{"type":47,"value":167},{"type":41,"tag":132,"props":3450,"children":3451},{"style":139},[3452],{"type":47,"value":172},{"type":41,"tag":132,"props":3454,"children":3455},{"style":175},[3456],{"type":47,"value":354},{"type":41,"tag":132,"props":3458,"children":3459},{"style":139},[3460],{"type":47,"value":162},{"type":41,"tag":132,"props":3462,"children":3463},{"style":139},[3464],{"type":47,"value":187},{"type":41,"tag":132,"props":3466,"children":3467},{"class":134,"line":190},[3468,3472,3476,3480,3484,3488,3492],{"type":41,"tag":132,"props":3469,"children":3470},{"style":139},[3471],{"type":47,"value":151},{"type":41,"tag":132,"props":3473,"children":3474},{"style":154},[3475],{"type":47,"value":354},{"type":41,"tag":132,"props":3477,"children":3478},{"style":139},[3479],{"type":47,"value":162},{"type":41,"tag":132,"props":3481,"children":3482},{"style":139},[3483],{"type":47,"value":167},{"type":41,"tag":132,"props":3485,"children":3486},{"style":139},[3487],{"type":47,"value":172},{"type":41,"tag":132,"props":3489,"children":3490},{"style":175},[3491],{"type":47,"value":390},{"type":41,"tag":132,"props":3493,"children":3494},{"style":139},[3495],{"type":47,"value":982},{"type":41,"tag":132,"props":3497,"children":3498},{"class":134,"line":227},[3499],{"type":41,"tag":132,"props":3500,"children":3501},{"style":139},[3502],{"type":47,"value":260},{"type":41,"tag":50,"props":3504,"children":3506},{"id":3505},"plugin-hook-configuration",[3507],{"type":47,"value":3508},"Plugin Hook Configuration",{"type":41,"tag":57,"props":3510,"children":3511},{},[3512,3514,3519],{"type":47,"value":3513},"In plugins, define hooks in ",{"type":41,"tag":128,"props":3515,"children":3517},{"className":3516},[],[3518],{"type":47,"value":488},{"type":47,"value":167},{"type":41,"tag":120,"props":3521,"children":3523},{"className":122,"code":3522,"language":124,"meta":125,"style":125},"{\n  \"PreToolUse\": [\n    {\n      \"matcher\": \"Write|Edit\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Validate file write safety\"\n        }\n      ]\n    }\n  ],\n  \"Stop\": [\n    {\n      \"matcher\": \"*\",\n      \"hooks\": [\n        {\n          \"type\": \"prompt\",\n          \"prompt\": \"Verify task completion\"\n        }\n      ]\n    }\n  ],\n  \"SessionStart\": [\n    {\n      \"matcher\": \"*\",\n      \"hooks\": [\n        {\n          \"type\": \"command\",\n          \"command\": \"bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fload-context.sh\",\n          \"timeout\": 10\n        }\n      ]\n    }\n  ]\n}\n",[3524],{"type":41,"tag":128,"props":3525,"children":3526},{"__ignoreMap":125},[3527,3534,3557,3564,3599,3622,3629,3664,3696,3703,3710,3717,3725,3748,3755,3790,3813,3821,3857,3890,3898,3906,3914,3922,3946,3954,3990,4014,4022,4058,4094,4119,4127,4135,4143,4151],{"type":41,"tag":132,"props":3528,"children":3529},{"class":134,"line":135},[3530],{"type":41,"tag":132,"props":3531,"children":3532},{"style":139},[3533],{"type":47,"value":142},{"type":41,"tag":132,"props":3535,"children":3536},{"class":134,"line":145},[3537,3541,3545,3549,3553],{"type":41,"tag":132,"props":3538,"children":3539},{"style":139},[3540],{"type":47,"value":151},{"type":41,"tag":132,"props":3542,"children":3543},{"style":154},[3544],{"type":47,"value":580},{"type":41,"tag":132,"props":3546,"children":3547},{"style":139},[3548],{"type":47,"value":162},{"type":41,"tag":132,"props":3550,"children":3551},{"style":139},[3552],{"type":47,"value":167},{"type":41,"tag":132,"props":3554,"children":3555},{"style":139},[3556],{"type":47,"value":833},{"type":41,"tag":132,"props":3558,"children":3559},{"class":134,"line":190},[3560],{"type":41,"tag":132,"props":3561,"children":3562},{"style":139},[3563],{"type":47,"value":1287},{"type":41,"tag":132,"props":3565,"children":3566},{"class":134,"line":227},[3567,3571,3575,3579,3583,3587,3591,3595],{"type":41,"tag":132,"props":3568,"children":3569},{"style":139},[3570],{"type":47,"value":1295},{"type":41,"tag":132,"props":3572,"children":3573},{"style":577},[3574],{"type":47,"value":854},{"type":41,"tag":132,"props":3576,"children":3577},{"style":139},[3578],{"type":47,"value":162},{"type":41,"tag":132,"props":3580,"children":3581},{"style":139},[3582],{"type":47,"value":167},{"type":41,"tag":132,"props":3584,"children":3585},{"style":139},[3586],{"type":47,"value":172},{"type":41,"tag":132,"props":3588,"children":3589},{"style":175},[3590],{"type":47,"value":1316},{"type":41,"tag":132,"props":3592,"children":3593},{"style":139},[3594],{"type":47,"value":162},{"type":41,"tag":132,"props":3596,"children":3597},{"style":139},[3598],{"type":47,"value":187},{"type":41,"tag":132,"props":3600,"children":3601},{"class":134,"line":254},[3602,3606,3610,3614,3618],{"type":41,"tag":132,"props":3603,"children":3604},{"style":139},[3605],{"type":47,"value":1295},{"type":41,"tag":132,"props":3607,"children":3608},{"style":577},[3609],{"type":47,"value":553},{"type":41,"tag":132,"props":3611,"children":3612},{"style":139},[3613],{"type":47,"value":162},{"type":41,"tag":132,"props":3615,"children":3616},{"style":139},[3617],{"type":47,"value":167},{"type":41,"tag":132,"props":3619,"children":3620},{"style":139},[3621],{"type":47,"value":833},{"type":41,"tag":132,"props":3623,"children":3624},{"class":134,"line":639},[3625],{"type":41,"tag":132,"props":3626,"children":3627},{"style":139},[3628],{"type":47,"value":1355},{"type":41,"tag":132,"props":3630,"children":3631},{"class":134,"line":673},[3632,3636,3640,3644,3648,3652,3656,3660],{"type":41,"tag":132,"props":3633,"children":3634},{"style":139},[3635],{"type":47,"value":1363},{"type":41,"tag":132,"props":3637,"children":3638},{"style":248},[3639],{"type":47,"value":157},{"type":41,"tag":132,"props":3641,"children":3642},{"style":139},[3643],{"type":47,"value":162},{"type":41,"tag":132,"props":3645,"children":3646},{"style":139},[3647],{"type":47,"value":167},{"type":41,"tag":132,"props":3649,"children":3650},{"style":139},[3651],{"type":47,"value":172},{"type":41,"tag":132,"props":3653,"children":3654},{"style":175},[3655],{"type":47,"value":178},{"type":41,"tag":132,"props":3657,"children":3658},{"style":139},[3659],{"type":47,"value":162},{"type":41,"tag":132,"props":3661,"children":3662},{"style":139},[3663],{"type":47,"value":187},{"type":41,"tag":132,"props":3665,"children":3666},{"class":134,"line":682},[3667,3671,3675,3679,3683,3687,3692],{"type":41,"tag":132,"props":3668,"children":3669},{"style":139},[3670],{"type":47,"value":1363},{"type":41,"tag":132,"props":3672,"children":3673},{"style":248},[3674],{"type":47,"value":178},{"type":41,"tag":132,"props":3676,"children":3677},{"style":139},[3678],{"type":47,"value":162},{"type":41,"tag":132,"props":3680,"children":3681},{"style":139},[3682],{"type":47,"value":167},{"type":41,"tag":132,"props":3684,"children":3685},{"style":139},[3686],{"type":47,"value":172},{"type":41,"tag":132,"props":3688,"children":3689},{"style":175},[3690],{"type":47,"value":3691},"Validate file write safety",{"type":41,"tag":132,"props":3693,"children":3694},{"style":139},[3695],{"type":47,"value":982},{"type":41,"tag":132,"props":3697,"children":3698},{"class":134,"line":913},[3699],{"type":41,"tag":132,"props":3700,"children":3701},{"style":139},[3702],{"type":47,"value":1431},{"type":41,"tag":132,"props":3704,"children":3705},{"class":134,"line":951},[3706],{"type":41,"tag":132,"props":3707,"children":3708},{"style":139},[3709],{"type":47,"value":1439},{"type":41,"tag":132,"props":3711,"children":3712},{"class":134,"line":985},[3713],{"type":41,"tag":132,"props":3714,"children":3715},{"style":139},[3716],{"type":47,"value":1447},{"type":41,"tag":132,"props":3718,"children":3719},{"class":134,"line":994},[3720],{"type":41,"tag":132,"props":3721,"children":3722},{"style":139},[3723],{"type":47,"value":3724},"  ],\n",{"type":41,"tag":132,"props":3726,"children":3727},{"class":134,"line":1003},[3728,3732,3736,3740,3744],{"type":41,"tag":132,"props":3729,"children":3730},{"style":139},[3731],{"type":47,"value":151},{"type":41,"tag":132,"props":3733,"children":3734},{"style":154},[3735],{"type":47,"value":616},{"type":41,"tag":132,"props":3737,"children":3738},{"style":139},[3739],{"type":47,"value":162},{"type":41,"tag":132,"props":3741,"children":3742},{"style":139},[3743],{"type":47,"value":167},{"type":41,"tag":132,"props":3745,"children":3746},{"style":139},[3747],{"type":47,"value":833},{"type":41,"tag":132,"props":3749,"children":3750},{"class":134,"line":1012},[3751],{"type":41,"tag":132,"props":3752,"children":3753},{"style":139},[3754],{"type":47,"value":1287},{"type":41,"tag":132,"props":3756,"children":3757},{"class":134,"line":1021},[3758,3762,3766,3770,3774,3778,3782,3786],{"type":41,"tag":132,"props":3759,"children":3760},{"style":139},[3761],{"type":47,"value":1295},{"type":41,"tag":132,"props":3763,"children":3764},{"style":577},[3765],{"type":47,"value":854},{"type":41,"tag":132,"props":3767,"children":3768},{"style":139},[3769],{"type":47,"value":162},{"type":41,"tag":132,"props":3771,"children":3772},{"style":139},[3773],{"type":47,"value":167},{"type":41,"tag":132,"props":3775,"children":3776},{"style":139},[3777],{"type":47,"value":172},{"type":41,"tag":132,"props":3779,"children":3780},{"style":175},[3781],{"type":47,"value":1997},{"type":41,"tag":132,"props":3783,"children":3784},{"style":139},[3785],{"type":47,"value":162},{"type":41,"tag":132,"props":3787,"children":3788},{"style":139},[3789],{"type":47,"value":187},{"type":41,"tag":132,"props":3791,"children":3792},{"class":134,"line":1029},[3793,3797,3801,3805,3809],{"type":41,"tag":132,"props":3794,"children":3795},{"style":139},[3796],{"type":47,"value":1295},{"type":41,"tag":132,"props":3798,"children":3799},{"style":577},[3800],{"type":47,"value":553},{"type":41,"tag":132,"props":3802,"children":3803},{"style":139},[3804],{"type":47,"value":162},{"type":41,"tag":132,"props":3806,"children":3807},{"style":139},[3808],{"type":47,"value":167},{"type":41,"tag":132,"props":3810,"children":3811},{"style":139},[3812],{"type":47,"value":833},{"type":41,"tag":132,"props":3814,"children":3816},{"class":134,"line":3815},17,[3817],{"type":41,"tag":132,"props":3818,"children":3819},{"style":139},[3820],{"type":47,"value":1355},{"type":41,"tag":132,"props":3822,"children":3824},{"class":134,"line":3823},18,[3825,3829,3833,3837,3841,3845,3849,3853],{"type":41,"tag":132,"props":3826,"children":3827},{"style":139},[3828],{"type":47,"value":1363},{"type":41,"tag":132,"props":3830,"children":3831},{"style":248},[3832],{"type":47,"value":157},{"type":41,"tag":132,"props":3834,"children":3835},{"style":139},[3836],{"type":47,"value":162},{"type":41,"tag":132,"props":3838,"children":3839},{"style":139},[3840],{"type":47,"value":167},{"type":41,"tag":132,"props":3842,"children":3843},{"style":139},[3844],{"type":47,"value":172},{"type":41,"tag":132,"props":3846,"children":3847},{"style":175},[3848],{"type":47,"value":178},{"type":41,"tag":132,"props":3850,"children":3851},{"style":139},[3852],{"type":47,"value":162},{"type":41,"tag":132,"props":3854,"children":3855},{"style":139},[3856],{"type":47,"value":187},{"type":41,"tag":132,"props":3858,"children":3860},{"class":134,"line":3859},19,[3861,3865,3869,3873,3877,3881,3886],{"type":41,"tag":132,"props":3862,"children":3863},{"style":139},[3864],{"type":47,"value":1363},{"type":41,"tag":132,"props":3866,"children":3867},{"style":248},[3868],{"type":47,"value":178},{"type":41,"tag":132,"props":3870,"children":3871},{"style":139},[3872],{"type":47,"value":162},{"type":41,"tag":132,"props":3874,"children":3875},{"style":139},[3876],{"type":47,"value":167},{"type":41,"tag":132,"props":3878,"children":3879},{"style":139},[3880],{"type":47,"value":172},{"type":41,"tag":132,"props":3882,"children":3883},{"style":175},[3884],{"type":47,"value":3885},"Verify task completion",{"type":41,"tag":132,"props":3887,"children":3888},{"style":139},[3889],{"type":47,"value":982},{"type":41,"tag":132,"props":3891,"children":3893},{"class":134,"line":3892},20,[3894],{"type":41,"tag":132,"props":3895,"children":3896},{"style":139},[3897],{"type":47,"value":1431},{"type":41,"tag":132,"props":3899,"children":3901},{"class":134,"line":3900},21,[3902],{"type":41,"tag":132,"props":3903,"children":3904},{"style":139},[3905],{"type":47,"value":1439},{"type":41,"tag":132,"props":3907,"children":3909},{"class":134,"line":3908},22,[3910],{"type":41,"tag":132,"props":3911,"children":3912},{"style":139},[3913],{"type":47,"value":1447},{"type":41,"tag":132,"props":3915,"children":3917},{"class":134,"line":3916},23,[3918],{"type":41,"tag":132,"props":3919,"children":3920},{"style":139},[3921],{"type":47,"value":3724},{"type":41,"tag":132,"props":3923,"children":3925},{"class":134,"line":3924},24,[3926,3930,3934,3938,3942],{"type":41,"tag":132,"props":3927,"children":3928},{"style":139},[3929],{"type":47,"value":151},{"type":41,"tag":132,"props":3931,"children":3932},{"style":154},[3933],{"type":47,"value":649},{"type":41,"tag":132,"props":3935,"children":3936},{"style":139},[3937],{"type":47,"value":162},{"type":41,"tag":132,"props":3939,"children":3940},{"style":139},[3941],{"type":47,"value":167},{"type":41,"tag":132,"props":3943,"children":3944},{"style":139},[3945],{"type":47,"value":833},{"type":41,"tag":132,"props":3947,"children":3949},{"class":134,"line":3948},25,[3950],{"type":41,"tag":132,"props":3951,"children":3952},{"style":139},[3953],{"type":47,"value":1287},{"type":41,"tag":132,"props":3955,"children":3957},{"class":134,"line":3956},26,[3958,3962,3966,3970,3974,3978,3982,3986],{"type":41,"tag":132,"props":3959,"children":3960},{"style":139},[3961],{"type":47,"value":1295},{"type":41,"tag":132,"props":3963,"children":3964},{"style":577},[3965],{"type":47,"value":854},{"type":41,"tag":132,"props":3967,"children":3968},{"style":139},[3969],{"type":47,"value":162},{"type":41,"tag":132,"props":3971,"children":3972},{"style":139},[3973],{"type":47,"value":167},{"type":41,"tag":132,"props":3975,"children":3976},{"style":139},[3977],{"type":47,"value":172},{"type":41,"tag":132,"props":3979,"children":3980},{"style":175},[3981],{"type":47,"value":1997},{"type":41,"tag":132,"props":3983,"children":3984},{"style":139},[3985],{"type":47,"value":162},{"type":41,"tag":132,"props":3987,"children":3988},{"style":139},[3989],{"type":47,"value":187},{"type":41,"tag":132,"props":3991,"children":3993},{"class":134,"line":3992},27,[3994,3998,4002,4006,4010],{"type":41,"tag":132,"props":3995,"children":3996},{"style":139},[3997],{"type":47,"value":1295},{"type":41,"tag":132,"props":3999,"children":4000},{"style":577},[4001],{"type":47,"value":553},{"type":41,"tag":132,"props":4003,"children":4004},{"style":139},[4005],{"type":47,"value":162},{"type":41,"tag":132,"props":4007,"children":4008},{"style":139},[4009],{"type":47,"value":167},{"type":41,"tag":132,"props":4011,"children":4012},{"style":139},[4013],{"type":47,"value":833},{"type":41,"tag":132,"props":4015,"children":4017},{"class":134,"line":4016},28,[4018],{"type":41,"tag":132,"props":4019,"children":4020},{"style":139},[4021],{"type":47,"value":1355},{"type":41,"tag":132,"props":4023,"children":4025},{"class":134,"line":4024},29,[4026,4030,4034,4038,4042,4046,4050,4054],{"type":41,"tag":132,"props":4027,"children":4028},{"style":139},[4029],{"type":47,"value":1363},{"type":41,"tag":132,"props":4031,"children":4032},{"style":248},[4033],{"type":47,"value":157},{"type":41,"tag":132,"props":4035,"children":4036},{"style":139},[4037],{"type":47,"value":162},{"type":41,"tag":132,"props":4039,"children":4040},{"style":139},[4041],{"type":47,"value":167},{"type":41,"tag":132,"props":4043,"children":4044},{"style":139},[4045],{"type":47,"value":172},{"type":41,"tag":132,"props":4047,"children":4048},{"style":175},[4049],{"type":47,"value":354},{"type":41,"tag":132,"props":4051,"children":4052},{"style":139},[4053],{"type":47,"value":162},{"type":41,"tag":132,"props":4055,"children":4056},{"style":139},[4057],{"type":47,"value":187},{"type":41,"tag":132,"props":4059,"children":4061},{"class":134,"line":4060},30,[4062,4066,4070,4074,4078,4082,4086,4090],{"type":41,"tag":132,"props":4063,"children":4064},{"style":139},[4065],{"type":47,"value":1363},{"type":41,"tag":132,"props":4067,"children":4068},{"style":248},[4069],{"type":47,"value":354},{"type":41,"tag":132,"props":4071,"children":4072},{"style":139},[4073],{"type":47,"value":162},{"type":41,"tag":132,"props":4075,"children":4076},{"style":139},[4077],{"type":47,"value":167},{"type":41,"tag":132,"props":4079,"children":4080},{"style":139},[4081],{"type":47,"value":172},{"type":41,"tag":132,"props":4083,"children":4084},{"style":175},[4085],{"type":47,"value":2706},{"type":41,"tag":132,"props":4087,"children":4088},{"style":139},[4089],{"type":47,"value":162},{"type":41,"tag":132,"props":4091,"children":4092},{"style":139},[4093],{"type":47,"value":187},{"type":41,"tag":132,"props":4095,"children":4097},{"class":134,"line":4096},31,[4098,4102,4106,4110,4114],{"type":41,"tag":132,"props":4099,"children":4100},{"style":139},[4101],{"type":47,"value":1363},{"type":41,"tag":132,"props":4103,"children":4104},{"style":248},[4105],{"type":47,"value":237},{"type":41,"tag":132,"props":4107,"children":4108},{"style":139},[4109],{"type":47,"value":162},{"type":41,"tag":132,"props":4111,"children":4112},{"style":139},[4113],{"type":47,"value":167},{"type":41,"tag":132,"props":4115,"children":4116},{"style":248},[4117],{"type":47,"value":4118}," 10\n",{"type":41,"tag":132,"props":4120,"children":4122},{"class":134,"line":4121},32,[4123],{"type":41,"tag":132,"props":4124,"children":4125},{"style":139},[4126],{"type":47,"value":1431},{"type":41,"tag":132,"props":4128,"children":4130},{"class":134,"line":4129},33,[4131],{"type":41,"tag":132,"props":4132,"children":4133},{"style":139},[4134],{"type":47,"value":1439},{"type":41,"tag":132,"props":4136,"children":4138},{"class":134,"line":4137},34,[4139],{"type":41,"tag":132,"props":4140,"children":4141},{"style":139},[4142],{"type":47,"value":1447},{"type":41,"tag":132,"props":4144,"children":4146},{"class":134,"line":4145},35,[4147],{"type":41,"tag":132,"props":4148,"children":4149},{"style":139},[4150],{"type":47,"value":1455},{"type":41,"tag":132,"props":4152,"children":4154},{"class":134,"line":4153},36,[4155],{"type":41,"tag":132,"props":4156,"children":4157},{"style":139},[4158],{"type":47,"value":260},{"type":41,"tag":57,"props":4160,"children":4161},{},[4162],{"type":47,"value":4163},"Plugin hooks merge with user's hooks and run in parallel.",{"type":41,"tag":50,"props":4165,"children":4167},{"id":4166},"matchers",[4168],{"type":47,"value":4169},"Matchers",{"type":41,"tag":108,"props":4171,"children":4173},{"id":4172},"tool-name-matching",[4174],{"type":47,"value":4175},"Tool Name Matching",{"type":41,"tag":57,"props":4177,"children":4178},{},[4179],{"type":41,"tag":66,"props":4180,"children":4181},{},[4182],{"type":47,"value":4183},"Exact match:",{"type":41,"tag":120,"props":4185,"children":4187},{"className":122,"code":4186,"language":124,"meta":125,"style":125},"\"matcher\": \"Write\"\n",[4188],{"type":41,"tag":128,"props":4189,"children":4190},{"__ignoreMap":125},[4191],{"type":41,"tag":132,"props":4192,"children":4193},{"class":134,"line":135},[4194,4198,4202,4206,4211,4215,4219],{"type":41,"tag":132,"props":4195,"children":4196},{"style":139},[4197],{"type":47,"value":162},{"type":41,"tag":132,"props":4199,"children":4200},{"style":175},[4201],{"type":47,"value":854},{"type":41,"tag":132,"props":4203,"children":4204},{"style":139},[4205],{"type":47,"value":162},{"type":41,"tag":132,"props":4207,"children":4208},{"style":596},[4209],{"type":47,"value":4210},": ",{"type":41,"tag":132,"props":4212,"children":4213},{"style":139},[4214],{"type":47,"value":162},{"type":41,"tag":132,"props":4216,"children":4217},{"style":175},[4218],{"type":47,"value":871},{"type":41,"tag":132,"props":4220,"children":4221},{"style":139},[4222],{"type":47,"value":982},{"type":41,"tag":57,"props":4224,"children":4225},{},[4226],{"type":41,"tag":66,"props":4227,"children":4228},{},[4229],{"type":47,"value":4230},"Multiple tools:",{"type":41,"tag":120,"props":4232,"children":4234},{"className":122,"code":4233,"language":124,"meta":125,"style":125},"\"matcher\": \"Read|Write|Edit\"\n",[4235],{"type":41,"tag":128,"props":4236,"children":4237},{"__ignoreMap":125},[4238],{"type":41,"tag":132,"props":4239,"children":4240},{"class":134,"line":135},[4241,4245,4249,4253,4257,4261,4266],{"type":41,"tag":132,"props":4242,"children":4243},{"style":139},[4244],{"type":47,"value":162},{"type":41,"tag":132,"props":4246,"children":4247},{"style":175},[4248],{"type":47,"value":854},{"type":41,"tag":132,"props":4250,"children":4251},{"style":139},[4252],{"type":47,"value":162},{"type":41,"tag":132,"props":4254,"children":4255},{"style":596},[4256],{"type":47,"value":4210},{"type":41,"tag":132,"props":4258,"children":4259},{"style":139},[4260],{"type":47,"value":162},{"type":41,"tag":132,"props":4262,"children":4263},{"style":175},[4264],{"type":47,"value":4265},"Read|Write|Edit",{"type":41,"tag":132,"props":4267,"children":4268},{"style":139},[4269],{"type":47,"value":982},{"type":41,"tag":57,"props":4271,"children":4272},{},[4273],{"type":41,"tag":66,"props":4274,"children":4275},{},[4276],{"type":47,"value":4277},"Wildcard (all tools):",{"type":41,"tag":120,"props":4279,"children":4281},{"className":122,"code":4280,"language":124,"meta":125,"style":125},"\"matcher\": \"*\"\n",[4282],{"type":41,"tag":128,"props":4283,"children":4284},{"__ignoreMap":125},[4285],{"type":41,"tag":132,"props":4286,"children":4287},{"class":134,"line":135},[4288,4292,4296,4300,4304,4308,4312],{"type":41,"tag":132,"props":4289,"children":4290},{"style":139},[4291],{"type":47,"value":162},{"type":41,"tag":132,"props":4293,"children":4294},{"style":175},[4295],{"type":47,"value":854},{"type":41,"tag":132,"props":4297,"children":4298},{"style":139},[4299],{"type":47,"value":162},{"type":41,"tag":132,"props":4301,"children":4302},{"style":596},[4303],{"type":47,"value":4210},{"type":41,"tag":132,"props":4305,"children":4306},{"style":139},[4307],{"type":47,"value":162},{"type":41,"tag":132,"props":4309,"children":4310},{"style":175},[4311],{"type":47,"value":1997},{"type":41,"tag":132,"props":4313,"children":4314},{"style":139},[4315],{"type":47,"value":982},{"type":41,"tag":57,"props":4317,"children":4318},{},[4319],{"type":41,"tag":66,"props":4320,"children":4321},{},[4322],{"type":47,"value":4323},"Regex patterns:",{"type":41,"tag":120,"props":4325,"children":4327},{"className":122,"code":4326,"language":124,"meta":125,"style":125},"\"matcher\": \"mcp__.*__delete.*\"  \u002F\u002F All MCP delete tools\n",[4328],{"type":41,"tag":128,"props":4329,"children":4330},{"__ignoreMap":125},[4331],{"type":41,"tag":132,"props":4332,"children":4333},{"class":134,"line":135},[4334,4338,4342,4346,4350,4354,4359,4363],{"type":41,"tag":132,"props":4335,"children":4336},{"style":139},[4337],{"type":47,"value":162},{"type":41,"tag":132,"props":4339,"children":4340},{"style":175},[4341],{"type":47,"value":854},{"type":41,"tag":132,"props":4343,"children":4344},{"style":139},[4345],{"type":47,"value":162},{"type":41,"tag":132,"props":4347,"children":4348},{"style":596},[4349],{"type":47,"value":4210},{"type":41,"tag":132,"props":4351,"children":4352},{"style":139},[4353],{"type":47,"value":162},{"type":41,"tag":132,"props":4355,"children":4356},{"style":175},[4357],{"type":47,"value":4358},"mcp__.*__delete.*",{"type":41,"tag":132,"props":4360,"children":4361},{"style":139},[4362],{"type":47,"value":162},{"type":41,"tag":132,"props":4364,"children":4366},{"style":4365},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[4367],{"type":47,"value":4368},"  \u002F\u002F All MCP delete tools\n",{"type":41,"tag":57,"props":4370,"children":4371},{},[4372,4377],{"type":41,"tag":66,"props":4373,"children":4374},{},[4375],{"type":47,"value":4376},"Note:",{"type":47,"value":4378}," Matchers are case-sensitive.",{"type":41,"tag":108,"props":4380,"children":4382},{"id":4381},"common-patterns",[4383],{"type":47,"value":4384},"Common Patterns",{"type":41,"tag":120,"props":4386,"children":4388},{"className":122,"code":4387,"language":124,"meta":125,"style":125},"\u002F\u002F All MCP tools\n\"matcher\": \"mcp__.*\"\n\n\u002F\u002F Specific plugin's MCP tools\n\"matcher\": \"mcp__plugin_asana_.*\"\n\n\u002F\u002F All file operations\n\"matcher\": \"Read|Write|Edit\"\n\n\u002F\u002F Bash commands only\n\"matcher\": \"Bash\"\n",[4389],{"type":41,"tag":128,"props":4390,"children":4391},{"__ignoreMap":125},[4392,4400,4432,4441,4449,4481,4488,4496,4527,4534,4542],{"type":41,"tag":132,"props":4393,"children":4394},{"class":134,"line":135},[4395],{"type":41,"tag":132,"props":4396,"children":4397},{"style":4365},[4398],{"type":47,"value":4399},"\u002F\u002F All MCP tools\n",{"type":41,"tag":132,"props":4401,"children":4402},{"class":134,"line":145},[4403,4407,4411,4415,4419,4423,4428],{"type":41,"tag":132,"props":4404,"children":4405},{"style":139},[4406],{"type":47,"value":162},{"type":41,"tag":132,"props":4408,"children":4409},{"style":175},[4410],{"type":47,"value":854},{"type":41,"tag":132,"props":4412,"children":4413},{"style":139},[4414],{"type":47,"value":162},{"type":41,"tag":132,"props":4416,"children":4417},{"style":596},[4418],{"type":47,"value":4210},{"type":41,"tag":132,"props":4420,"children":4421},{"style":139},[4422],{"type":47,"value":162},{"type":41,"tag":132,"props":4424,"children":4425},{"style":175},[4426],{"type":47,"value":4427},"mcp__.*",{"type":41,"tag":132,"props":4429,"children":4430},{"style":139},[4431],{"type":47,"value":982},{"type":41,"tag":132,"props":4433,"children":4434},{"class":134,"line":190},[4435],{"type":41,"tag":132,"props":4436,"children":4438},{"emptyLinePlaceholder":4437},true,[4439],{"type":47,"value":4440},"\n",{"type":41,"tag":132,"props":4442,"children":4443},{"class":134,"line":227},[4444],{"type":41,"tag":132,"props":4445,"children":4446},{"style":4365},[4447],{"type":47,"value":4448},"\u002F\u002F Specific plugin's MCP tools\n",{"type":41,"tag":132,"props":4450,"children":4451},{"class":134,"line":254},[4452,4456,4460,4464,4468,4472,4477],{"type":41,"tag":132,"props":4453,"children":4454},{"style":139},[4455],{"type":47,"value":162},{"type":41,"tag":132,"props":4457,"children":4458},{"style":175},[4459],{"type":47,"value":854},{"type":41,"tag":132,"props":4461,"children":4462},{"style":139},[4463],{"type":47,"value":162},{"type":41,"tag":132,"props":4465,"children":4466},{"style":596},[4467],{"type":47,"value":4210},{"type":41,"tag":132,"props":4469,"children":4470},{"style":139},[4471],{"type":47,"value":162},{"type":41,"tag":132,"props":4473,"children":4474},{"style":175},[4475],{"type":47,"value":4476},"mcp__plugin_asana_.*",{"type":41,"tag":132,"props":4478,"children":4479},{"style":139},[4480],{"type":47,"value":982},{"type":41,"tag":132,"props":4482,"children":4483},{"class":134,"line":639},[4484],{"type":41,"tag":132,"props":4485,"children":4486},{"emptyLinePlaceholder":4437},[4487],{"type":47,"value":4440},{"type":41,"tag":132,"props":4489,"children":4490},{"class":134,"line":673},[4491],{"type":41,"tag":132,"props":4492,"children":4493},{"style":4365},[4494],{"type":47,"value":4495},"\u002F\u002F All file operations\n",{"type":41,"tag":132,"props":4497,"children":4498},{"class":134,"line":682},[4499,4503,4507,4511,4515,4519,4523],{"type":41,"tag":132,"props":4500,"children":4501},{"style":139},[4502],{"type":47,"value":162},{"type":41,"tag":132,"props":4504,"children":4505},{"style":175},[4506],{"type":47,"value":854},{"type":41,"tag":132,"props":4508,"children":4509},{"style":139},[4510],{"type":47,"value":162},{"type":41,"tag":132,"props":4512,"children":4513},{"style":596},[4514],{"type":47,"value":4210},{"type":41,"tag":132,"props":4516,"children":4517},{"style":139},[4518],{"type":47,"value":162},{"type":41,"tag":132,"props":4520,"children":4521},{"style":175},[4522],{"type":47,"value":4265},{"type":41,"tag":132,"props":4524,"children":4525},{"style":139},[4526],{"type":47,"value":982},{"type":41,"tag":132,"props":4528,"children":4529},{"class":134,"line":913},[4530],{"type":41,"tag":132,"props":4531,"children":4532},{"emptyLinePlaceholder":4437},[4533],{"type":47,"value":4440},{"type":41,"tag":132,"props":4535,"children":4536},{"class":134,"line":951},[4537],{"type":41,"tag":132,"props":4538,"children":4539},{"style":4365},[4540],{"type":47,"value":4541},"\u002F\u002F Bash commands only\n",{"type":41,"tag":132,"props":4543,"children":4544},{"class":134,"line":985},[4545,4549,4553,4557,4561,4565,4570],{"type":41,"tag":132,"props":4546,"children":4547},{"style":139},[4548],{"type":47,"value":162},{"type":41,"tag":132,"props":4550,"children":4551},{"style":175},[4552],{"type":47,"value":854},{"type":41,"tag":132,"props":4554,"children":4555},{"style":139},[4556],{"type":47,"value":162},{"type":41,"tag":132,"props":4558,"children":4559},{"style":596},[4560],{"type":47,"value":4210},{"type":41,"tag":132,"props":4562,"children":4563},{"style":139},[4564],{"type":47,"value":162},{"type":41,"tag":132,"props":4566,"children":4567},{"style":175},[4568],{"type":47,"value":4569},"Bash",{"type":41,"tag":132,"props":4571,"children":4572},{"style":139},[4573],{"type":47,"value":982},{"type":41,"tag":50,"props":4575,"children":4577},{"id":4576},"security-best-practices",[4578],{"type":47,"value":4579},"Security Best Practices",{"type":41,"tag":108,"props":4581,"children":4583},{"id":4582},"input-validation",[4584],{"type":47,"value":4585},"Input Validation",{"type":41,"tag":57,"props":4587,"children":4588},{},[4589],{"type":47,"value":4590},"Always validate inputs in command hooks:",{"type":41,"tag":120,"props":4592,"children":4594},{"className":2765,"code":4593,"language":2767,"meta":125,"style":125},"#!\u002Fbin\u002Fbash\nset -euo pipefail\n\ninput=$(cat)\ntool_name=$(echo \"$input\" | jq -r '.tool_name')\n\n# Validate tool name format\nif [[ ! \"$tool_name\" =~ ^[a-zA-Z0-9_]+$ ]]; then\n  echo '{\"decision\": \"deny\", \"reason\": \"Invalid tool name\"}' >&2\n  exit 2\nfi\n",[4595],{"type":41,"tag":128,"props":4596,"children":4597},{"__ignoreMap":125},[4598,4606,4624,4631,4654,4716,4723,4731,4803,4829,4842],{"type":41,"tag":132,"props":4599,"children":4600},{"class":134,"line":135},[4601],{"type":41,"tag":132,"props":4602,"children":4603},{"style":4365},[4604],{"type":47,"value":4605},"#!\u002Fbin\u002Fbash\n",{"type":41,"tag":132,"props":4607,"children":4608},{"class":134,"line":145},[4609,4614,4619],{"type":41,"tag":132,"props":4610,"children":4611},{"style":2777},[4612],{"type":47,"value":4613},"set",{"type":41,"tag":132,"props":4615,"children":4616},{"style":175},[4617],{"type":47,"value":4618}," -euo",{"type":41,"tag":132,"props":4620,"children":4621},{"style":175},[4622],{"type":47,"value":4623}," pipefail\n",{"type":41,"tag":132,"props":4625,"children":4626},{"class":134,"line":190},[4627],{"type":41,"tag":132,"props":4628,"children":4629},{"emptyLinePlaceholder":4437},[4630],{"type":47,"value":4440},{"type":41,"tag":132,"props":4632,"children":4633},{"class":134,"line":227},[4634,4639,4644,4649],{"type":41,"tag":132,"props":4635,"children":4636},{"style":596},[4637],{"type":47,"value":4638},"input",{"type":41,"tag":132,"props":4640,"children":4641},{"style":139},[4642],{"type":47,"value":4643},"=$(",{"type":41,"tag":132,"props":4645,"children":4646},{"style":577},[4647],{"type":47,"value":4648},"cat",{"type":41,"tag":132,"props":4650,"children":4651},{"style":139},[4652],{"type":47,"value":4653},")\n",{"type":41,"tag":132,"props":4655,"children":4656},{"class":134,"line":254},[4657,4661,4665,4669,4673,4678,4682,4687,4692,4697,4702,4707,4712],{"type":41,"tag":132,"props":4658,"children":4659},{"style":596},[4660],{"type":47,"value":3279},{"type":41,"tag":132,"props":4662,"children":4663},{"style":139},[4664],{"type":47,"value":4643},{"type":41,"tag":132,"props":4666,"children":4667},{"style":2777},[4668],{"type":47,"value":2780},{"type":41,"tag":132,"props":4670,"children":4671},{"style":139},[4672],{"type":47,"value":172},{"type":41,"tag":132,"props":4674,"children":4675},{"style":596},[4676],{"type":47,"value":4677},"$input",{"type":41,"tag":132,"props":4679,"children":4680},{"style":139},[4681],{"type":47,"value":162},{"type":41,"tag":132,"props":4683,"children":4684},{"style":139},[4685],{"type":47,"value":4686}," |",{"type":41,"tag":132,"props":4688,"children":4689},{"style":577},[4690],{"type":47,"value":4691}," jq",{"type":41,"tag":132,"props":4693,"children":4694},{"style":175},[4695],{"type":47,"value":4696}," -r",{"type":41,"tag":132,"props":4698,"children":4699},{"style":139},[4700],{"type":47,"value":4701}," '",{"type":41,"tag":132,"props":4703,"children":4704},{"style":175},[4705],{"type":47,"value":4706},".tool_name",{"type":41,"tag":132,"props":4708,"children":4709},{"style":139},[4710],{"type":47,"value":4711},"'",{"type":41,"tag":132,"props":4713,"children":4714},{"style":139},[4715],{"type":47,"value":4653},{"type":41,"tag":132,"props":4717,"children":4718},{"class":134,"line":639},[4719],{"type":41,"tag":132,"props":4720,"children":4721},{"emptyLinePlaceholder":4437},[4722],{"type":47,"value":4440},{"type":41,"tag":132,"props":4724,"children":4725},{"class":134,"line":673},[4726],{"type":41,"tag":132,"props":4727,"children":4728},{"style":4365},[4729],{"type":47,"value":4730},"# Validate tool name format\n",{"type":41,"tag":132,"props":4732,"children":4733},{"class":134,"line":682},[4734,4740,4745,4750,4754,4759,4763,4768,4773,4778,4783,4788,4793,4798],{"type":41,"tag":132,"props":4735,"children":4737},{"style":4736},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[4738],{"type":47,"value":4739},"if",{"type":41,"tag":132,"props":4741,"children":4742},{"style":139},[4743],{"type":47,"value":4744}," [[",{"type":41,"tag":132,"props":4746,"children":4747},{"style":139},[4748],{"type":47,"value":4749}," !",{"type":41,"tag":132,"props":4751,"children":4752},{"style":139},[4753],{"type":47,"value":172},{"type":41,"tag":132,"props":4755,"children":4756},{"style":596},[4757],{"type":47,"value":4758},"$tool_name",{"type":41,"tag":132,"props":4760,"children":4761},{"style":139},[4762],{"type":47,"value":162},{"type":41,"tag":132,"props":4764,"children":4765},{"style":139},[4766],{"type":47,"value":4767}," =~",{"type":41,"tag":132,"props":4769,"children":4770},{"style":596},[4771],{"type":47,"value":4772}," ^",{"type":41,"tag":132,"props":4774,"children":4775},{"style":139},[4776],{"type":47,"value":4777},"[",{"type":41,"tag":132,"props":4779,"children":4780},{"style":596},[4781],{"type":47,"value":4782},"a-zA-Z0-9_",{"type":41,"tag":132,"props":4784,"children":4785},{"style":139},[4786],{"type":47,"value":4787},"]",{"type":41,"tag":132,"props":4789,"children":4790},{"style":596},[4791],{"type":47,"value":4792},"+$ ",{"type":41,"tag":132,"props":4794,"children":4795},{"style":139},[4796],{"type":47,"value":4797},"]];",{"type":41,"tag":132,"props":4799,"children":4800},{"style":4736},[4801],{"type":47,"value":4802}," then\n",{"type":41,"tag":132,"props":4804,"children":4805},{"class":134,"line":913},[4806,4811,4815,4820,4824],{"type":41,"tag":132,"props":4807,"children":4808},{"style":2777},[4809],{"type":47,"value":4810},"  echo",{"type":41,"tag":132,"props":4812,"children":4813},{"style":139},[4814],{"type":47,"value":4701},{"type":41,"tag":132,"props":4816,"children":4817},{"style":175},[4818],{"type":47,"value":4819},"{\"decision\": \"deny\", \"reason\": \"Invalid tool name\"}",{"type":41,"tag":132,"props":4821,"children":4822},{"style":139},[4823],{"type":47,"value":4711},{"type":41,"tag":132,"props":4825,"children":4826},{"style":139},[4827],{"type":47,"value":4828}," >&2\n",{"type":41,"tag":132,"props":4830,"children":4831},{"class":134,"line":951},[4832,4837],{"type":41,"tag":132,"props":4833,"children":4834},{"style":2777},[4835],{"type":47,"value":4836},"  exit",{"type":41,"tag":132,"props":4838,"children":4839},{"style":248},[4840],{"type":47,"value":4841}," 2\n",{"type":41,"tag":132,"props":4843,"children":4844},{"class":134,"line":985},[4845],{"type":41,"tag":132,"props":4846,"children":4847},{"style":4736},[4848],{"type":47,"value":4849},"fi\n",{"type":41,"tag":108,"props":4851,"children":4853},{"id":4852},"path-safety",[4854],{"type":47,"value":4855},"Path Safety",{"type":41,"tag":57,"props":4857,"children":4858},{},[4859],{"type":47,"value":4860},"Check for path traversal and sensitive files:",{"type":41,"tag":120,"props":4862,"children":4864},{"className":2765,"code":4863,"language":2767,"meta":125,"style":125},"file_path=$(echo \"$input\" | jq -r '.tool_input.file_path')\n\n# Deny path traversal\nif [[ \"$file_path\" == *\"..\"* ]]; then\n  echo '{\"decision\": \"deny\", \"reason\": \"Path traversal detected\"}' >&2\n  exit 2\nfi\n\n# Deny sensitive files\nif [[ \"$file_path\" == *\".env\"* ]]; then\n  echo '{\"decision\": \"deny\", \"reason\": \"Sensitive file\"}' >&2\n  exit 2\nfi\n",[4865],{"type":41,"tag":128,"props":4866,"children":4867},{"__ignoreMap":125},[4868,4925,4932,4940,5000,5024,5035,5042,5049,5057,5113,5137,5148],{"type":41,"tag":132,"props":4869,"children":4870},{"class":134,"line":135},[4871,4876,4880,4884,4888,4892,4896,4900,4904,4908,4912,4917,4921],{"type":41,"tag":132,"props":4872,"children":4873},{"style":596},[4874],{"type":47,"value":4875},"file_path",{"type":41,"tag":132,"props":4877,"children":4878},{"style":139},[4879],{"type":47,"value":4643},{"type":41,"tag":132,"props":4881,"children":4882},{"style":2777},[4883],{"type":47,"value":2780},{"type":41,"tag":132,"props":4885,"children":4886},{"style":139},[4887],{"type":47,"value":172},{"type":41,"tag":132,"props":4889,"children":4890},{"style":596},[4891],{"type":47,"value":4677},{"type":41,"tag":132,"props":4893,"children":4894},{"style":139},[4895],{"type":47,"value":162},{"type":41,"tag":132,"props":4897,"children":4898},{"style":139},[4899],{"type":47,"value":4686},{"type":41,"tag":132,"props":4901,"children":4902},{"style":577},[4903],{"type":47,"value":4691},{"type":41,"tag":132,"props":4905,"children":4906},{"style":175},[4907],{"type":47,"value":4696},{"type":41,"tag":132,"props":4909,"children":4910},{"style":139},[4911],{"type":47,"value":4701},{"type":41,"tag":132,"props":4913,"children":4914},{"style":175},[4915],{"type":47,"value":4916},".tool_input.file_path",{"type":41,"tag":132,"props":4918,"children":4919},{"style":139},[4920],{"type":47,"value":4711},{"type":41,"tag":132,"props":4922,"children":4923},{"style":139},[4924],{"type":47,"value":4653},{"type":41,"tag":132,"props":4926,"children":4927},{"class":134,"line":145},[4928],{"type":41,"tag":132,"props":4929,"children":4930},{"emptyLinePlaceholder":4437},[4931],{"type":47,"value":4440},{"type":41,"tag":132,"props":4933,"children":4934},{"class":134,"line":190},[4935],{"type":41,"tag":132,"props":4936,"children":4937},{"style":4365},[4938],{"type":47,"value":4939},"# Deny path traversal\n",{"type":41,"tag":132,"props":4941,"children":4942},{"class":134,"line":227},[4943,4947,4951,4955,4960,4964,4969,4974,4978,4983,4987,4991,4996],{"type":41,"tag":132,"props":4944,"children":4945},{"style":4736},[4946],{"type":47,"value":4739},{"type":41,"tag":132,"props":4948,"children":4949},{"style":139},[4950],{"type":47,"value":4744},{"type":41,"tag":132,"props":4952,"children":4953},{"style":139},[4954],{"type":47,"value":172},{"type":41,"tag":132,"props":4956,"children":4957},{"style":596},[4958],{"type":47,"value":4959},"$file_path",{"type":41,"tag":132,"props":4961,"children":4962},{"style":139},[4963],{"type":47,"value":162},{"type":41,"tag":132,"props":4965,"children":4966},{"style":139},[4967],{"type":47,"value":4968}," ==",{"type":41,"tag":132,"props":4970,"children":4971},{"style":139},[4972],{"type":47,"value":4973}," *",{"type":41,"tag":132,"props":4975,"children":4976},{"style":139},[4977],{"type":47,"value":162},{"type":41,"tag":132,"props":4979,"children":4980},{"style":175},[4981],{"type":47,"value":4982},"..",{"type":41,"tag":132,"props":4984,"children":4985},{"style":139},[4986],{"type":47,"value":162},{"type":41,"tag":132,"props":4988,"children":4989},{"style":139},[4990],{"type":47,"value":1997},{"type":41,"tag":132,"props":4992,"children":4993},{"style":139},[4994],{"type":47,"value":4995}," ]];",{"type":41,"tag":132,"props":4997,"children":4998},{"style":4736},[4999],{"type":47,"value":4802},{"type":41,"tag":132,"props":5001,"children":5002},{"class":134,"line":254},[5003,5007,5011,5016,5020],{"type":41,"tag":132,"props":5004,"children":5005},{"style":2777},[5006],{"type":47,"value":4810},{"type":41,"tag":132,"props":5008,"children":5009},{"style":139},[5010],{"type":47,"value":4701},{"type":41,"tag":132,"props":5012,"children":5013},{"style":175},[5014],{"type":47,"value":5015},"{\"decision\": \"deny\", \"reason\": \"Path traversal detected\"}",{"type":41,"tag":132,"props":5017,"children":5018},{"style":139},[5019],{"type":47,"value":4711},{"type":41,"tag":132,"props":5021,"children":5022},{"style":139},[5023],{"type":47,"value":4828},{"type":41,"tag":132,"props":5025,"children":5026},{"class":134,"line":639},[5027,5031],{"type":41,"tag":132,"props":5028,"children":5029},{"style":2777},[5030],{"type":47,"value":4836},{"type":41,"tag":132,"props":5032,"children":5033},{"style":248},[5034],{"type":47,"value":4841},{"type":41,"tag":132,"props":5036,"children":5037},{"class":134,"line":673},[5038],{"type":41,"tag":132,"props":5039,"children":5040},{"style":4736},[5041],{"type":47,"value":4849},{"type":41,"tag":132,"props":5043,"children":5044},{"class":134,"line":682},[5045],{"type":41,"tag":132,"props":5046,"children":5047},{"emptyLinePlaceholder":4437},[5048],{"type":47,"value":4440},{"type":41,"tag":132,"props":5050,"children":5051},{"class":134,"line":913},[5052],{"type":41,"tag":132,"props":5053,"children":5054},{"style":4365},[5055],{"type":47,"value":5056},"# Deny sensitive files\n",{"type":41,"tag":132,"props":5058,"children":5059},{"class":134,"line":951},[5060,5064,5068,5072,5076,5080,5084,5088,5092,5097,5101,5105,5109],{"type":41,"tag":132,"props":5061,"children":5062},{"style":4736},[5063],{"type":47,"value":4739},{"type":41,"tag":132,"props":5065,"children":5066},{"style":139},[5067],{"type":47,"value":4744},{"type":41,"tag":132,"props":5069,"children":5070},{"style":139},[5071],{"type":47,"value":172},{"type":41,"tag":132,"props":5073,"children":5074},{"style":596},[5075],{"type":47,"value":4959},{"type":41,"tag":132,"props":5077,"children":5078},{"style":139},[5079],{"type":47,"value":162},{"type":41,"tag":132,"props":5081,"children":5082},{"style":139},[5083],{"type":47,"value":4968},{"type":41,"tag":132,"props":5085,"children":5086},{"style":139},[5087],{"type":47,"value":4973},{"type":41,"tag":132,"props":5089,"children":5090},{"style":139},[5091],{"type":47,"value":162},{"type":41,"tag":132,"props":5093,"children":5094},{"style":175},[5095],{"type":47,"value":5096},".env",{"type":41,"tag":132,"props":5098,"children":5099},{"style":139},[5100],{"type":47,"value":162},{"type":41,"tag":132,"props":5102,"children":5103},{"style":139},[5104],{"type":47,"value":1997},{"type":41,"tag":132,"props":5106,"children":5107},{"style":139},[5108],{"type":47,"value":4995},{"type":41,"tag":132,"props":5110,"children":5111},{"style":4736},[5112],{"type":47,"value":4802},{"type":41,"tag":132,"props":5114,"children":5115},{"class":134,"line":985},[5116,5120,5124,5129,5133],{"type":41,"tag":132,"props":5117,"children":5118},{"style":2777},[5119],{"type":47,"value":4810},{"type":41,"tag":132,"props":5121,"children":5122},{"style":139},[5123],{"type":47,"value":4701},{"type":41,"tag":132,"props":5125,"children":5126},{"style":175},[5127],{"type":47,"value":5128},"{\"decision\": \"deny\", \"reason\": \"Sensitive file\"}",{"type":41,"tag":132,"props":5130,"children":5131},{"style":139},[5132],{"type":47,"value":4711},{"type":41,"tag":132,"props":5134,"children":5135},{"style":139},[5136],{"type":47,"value":4828},{"type":41,"tag":132,"props":5138,"children":5139},{"class":134,"line":994},[5140,5144],{"type":41,"tag":132,"props":5141,"children":5142},{"style":2777},[5143],{"type":47,"value":4836},{"type":41,"tag":132,"props":5145,"children":5146},{"style":248},[5147],{"type":47,"value":4841},{"type":41,"tag":132,"props":5149,"children":5150},{"class":134,"line":1003},[5151],{"type":41,"tag":132,"props":5152,"children":5153},{"style":4736},[5154],{"type":47,"value":4849},{"type":41,"tag":57,"props":5156,"children":5157},{},[5158,5159,5165,5167,5173],{"type":47,"value":2815},{"type":41,"tag":128,"props":5160,"children":5162},{"className":5161},[],[5163],{"type":47,"value":5164},"examples\u002Fvalidate-write.sh",{"type":47,"value":5166}," and ",{"type":41,"tag":128,"props":5168,"children":5170},{"className":5169},[],[5171],{"type":47,"value":5172},"examples\u002Fvalidate-bash.sh",{"type":47,"value":5174}," for complete examples.",{"type":41,"tag":108,"props":5176,"children":5178},{"id":5177},"quote-all-variables",[5179],{"type":47,"value":5180},"Quote All Variables",{"type":41,"tag":120,"props":5182,"children":5184},{"className":2765,"code":5183,"language":2767,"meta":125,"style":125},"# GOOD: Quoted\necho \"$file_path\"\ncd \"$CLAUDE_PROJECT_DIR\"\n\n# BAD: Unquoted (injection risk)\necho $file_path\ncd $CLAUDE_PROJECT_DIR\n",[5185],{"type":41,"tag":128,"props":5186,"children":5187},{"__ignoreMap":125},[5188,5196,5215,5235,5242,5250,5262],{"type":41,"tag":132,"props":5189,"children":5190},{"class":134,"line":135},[5191],{"type":41,"tag":132,"props":5192,"children":5193},{"style":4365},[5194],{"type":47,"value":5195},"# GOOD: Quoted\n",{"type":41,"tag":132,"props":5197,"children":5198},{"class":134,"line":145},[5199,5203,5207,5211],{"type":41,"tag":132,"props":5200,"children":5201},{"style":2777},[5202],{"type":47,"value":2780},{"type":41,"tag":132,"props":5204,"children":5205},{"style":139},[5206],{"type":47,"value":172},{"type":41,"tag":132,"props":5208,"children":5209},{"style":596},[5210],{"type":47,"value":4959},{"type":41,"tag":132,"props":5212,"children":5213},{"style":139},[5214],{"type":47,"value":982},{"type":41,"tag":132,"props":5216,"children":5217},{"class":134,"line":190},[5218,5223,5227,5231],{"type":41,"tag":132,"props":5219,"children":5220},{"style":2777},[5221],{"type":47,"value":5222},"cd",{"type":41,"tag":132,"props":5224,"children":5225},{"style":139},[5226],{"type":47,"value":172},{"type":41,"tag":132,"props":5228,"children":5229},{"style":596},[5230],{"type":47,"value":3373},{"type":41,"tag":132,"props":5232,"children":5233},{"style":139},[5234],{"type":47,"value":982},{"type":41,"tag":132,"props":5236,"children":5237},{"class":134,"line":227},[5238],{"type":41,"tag":132,"props":5239,"children":5240},{"emptyLinePlaceholder":4437},[5241],{"type":47,"value":4440},{"type":41,"tag":132,"props":5243,"children":5244},{"class":134,"line":254},[5245],{"type":41,"tag":132,"props":5246,"children":5247},{"style":4365},[5248],{"type":47,"value":5249},"# BAD: Unquoted (injection risk)\n",{"type":41,"tag":132,"props":5251,"children":5252},{"class":134,"line":639},[5253,5257],{"type":41,"tag":132,"props":5254,"children":5255},{"style":2777},[5256],{"type":47,"value":2780},{"type":41,"tag":132,"props":5258,"children":5259},{"style":596},[5260],{"type":47,"value":5261}," $file_path\n",{"type":41,"tag":132,"props":5263,"children":5264},{"class":134,"line":673},[5265,5269],{"type":41,"tag":132,"props":5266,"children":5267},{"style":2777},[5268],{"type":47,"value":5222},{"type":41,"tag":132,"props":5270,"children":5271},{"style":596},[5272],{"type":47,"value":5273}," $CLAUDE_PROJECT_DIR\n",{"type":41,"tag":108,"props":5275,"children":5277},{"id":5276},"set-appropriate-timeouts",[5278],{"type":47,"value":5279},"Set Appropriate Timeouts",{"type":41,"tag":120,"props":5281,"children":5283},{"className":122,"code":5282,"language":124,"meta":125,"style":125},"{\n  \"type\": \"command\",\n  \"command\": \"bash script.sh\",\n  \"timeout\": 10\n}\n",[5284],{"type":41,"tag":128,"props":5285,"children":5286},{"__ignoreMap":125},[5287,5294,5329,5365,5388],{"type":41,"tag":132,"props":5288,"children":5289},{"class":134,"line":135},[5290],{"type":41,"tag":132,"props":5291,"children":5292},{"style":139},[5293],{"type":47,"value":142},{"type":41,"tag":132,"props":5295,"children":5296},{"class":134,"line":145},[5297,5301,5305,5309,5313,5317,5321,5325],{"type":41,"tag":132,"props":5298,"children":5299},{"style":139},[5300],{"type":47,"value":151},{"type":41,"tag":132,"props":5302,"children":5303},{"style":154},[5304],{"type":47,"value":157},{"type":41,"tag":132,"props":5306,"children":5307},{"style":139},[5308],{"type":47,"value":162},{"type":41,"tag":132,"props":5310,"children":5311},{"style":139},[5312],{"type":47,"value":167},{"type":41,"tag":132,"props":5314,"children":5315},{"style":139},[5316],{"type":47,"value":172},{"type":41,"tag":132,"props":5318,"children":5319},{"style":175},[5320],{"type":47,"value":354},{"type":41,"tag":132,"props":5322,"children":5323},{"style":139},[5324],{"type":47,"value":162},{"type":41,"tag":132,"props":5326,"children":5327},{"style":139},[5328],{"type":47,"value":187},{"type":41,"tag":132,"props":5330,"children":5331},{"class":134,"line":190},[5332,5336,5340,5344,5348,5352,5357,5361],{"type":41,"tag":132,"props":5333,"children":5334},{"style":139},[5335],{"type":47,"value":151},{"type":41,"tag":132,"props":5337,"children":5338},{"style":154},[5339],{"type":47,"value":354},{"type":41,"tag":132,"props":5341,"children":5342},{"style":139},[5343],{"type":47,"value":162},{"type":41,"tag":132,"props":5345,"children":5346},{"style":139},[5347],{"type":47,"value":167},{"type":41,"tag":132,"props":5349,"children":5350},{"style":139},[5351],{"type":47,"value":172},{"type":41,"tag":132,"props":5353,"children":5354},{"style":175},[5355],{"type":47,"value":5356},"bash script.sh",{"type":41,"tag":132,"props":5358,"children":5359},{"style":139},[5360],{"type":47,"value":162},{"type":41,"tag":132,"props":5362,"children":5363},{"style":139},[5364],{"type":47,"value":187},{"type":41,"tag":132,"props":5366,"children":5367},{"class":134,"line":227},[5368,5372,5376,5380,5384],{"type":41,"tag":132,"props":5369,"children":5370},{"style":139},[5371],{"type":47,"value":151},{"type":41,"tag":132,"props":5373,"children":5374},{"style":154},[5375],{"type":47,"value":237},{"type":41,"tag":132,"props":5377,"children":5378},{"style":139},[5379],{"type":47,"value":162},{"type":41,"tag":132,"props":5381,"children":5382},{"style":139},[5383],{"type":47,"value":167},{"type":41,"tag":132,"props":5385,"children":5386},{"style":248},[5387],{"type":47,"value":4118},{"type":41,"tag":132,"props":5389,"children":5390},{"class":134,"line":254},[5391],{"type":41,"tag":132,"props":5392,"children":5393},{"style":139},[5394],{"type":47,"value":260},{"type":41,"tag":57,"props":5396,"children":5397},{},[5398,5403],{"type":41,"tag":66,"props":5399,"children":5400},{},[5401],{"type":47,"value":5402},"Defaults:",{"type":47,"value":5404}," Command hooks (60s), Prompt hooks (30s)",{"type":41,"tag":50,"props":5406,"children":5408},{"id":5407},"performance-considerations",[5409],{"type":47,"value":5410},"Performance Considerations",{"type":41,"tag":108,"props":5412,"children":5414},{"id":5413},"parallel-execution",[5415],{"type":47,"value":5416},"Parallel Execution",{"type":41,"tag":57,"props":5418,"children":5419},{},[5420,5422,5427],{"type":47,"value":5421},"All matching hooks run ",{"type":41,"tag":66,"props":5423,"children":5424},{},[5425],{"type":47,"value":5426},"in parallel",{"type":47,"value":167},{"type":41,"tag":120,"props":5429,"children":5431},{"className":122,"code":5430,"language":124,"meta":125,"style":125},"{\n  \"PreToolUse\": [\n    {\n      \"matcher\": \"Write\",\n      \"hooks\": [\n        {\"type\": \"command\", \"command\": \"check1.sh\"},  \u002F\u002F Parallel\n        {\"type\": \"command\", \"command\": \"check2.sh\"},  \u002F\u002F Parallel\n        {\"type\": \"prompt\", \"prompt\": \"Validate...\"}   \u002F\u002F Parallel\n      ]\n    }\n  ]\n}\n",[5432],{"type":41,"tag":128,"props":5433,"children":5434},{"__ignoreMap":125},[5435,5442,5465,5472,5507,5530,5610,5686,5764,5771,5778,5785],{"type":41,"tag":132,"props":5436,"children":5437},{"class":134,"line":135},[5438],{"type":41,"tag":132,"props":5439,"children":5440},{"style":139},[5441],{"type":47,"value":142},{"type":41,"tag":132,"props":5443,"children":5444},{"class":134,"line":145},[5445,5449,5453,5457,5461],{"type":41,"tag":132,"props":5446,"children":5447},{"style":139},[5448],{"type":47,"value":151},{"type":41,"tag":132,"props":5450,"children":5451},{"style":154},[5452],{"type":47,"value":580},{"type":41,"tag":132,"props":5454,"children":5455},{"style":139},[5456],{"type":47,"value":162},{"type":41,"tag":132,"props":5458,"children":5459},{"style":139},[5460],{"type":47,"value":167},{"type":41,"tag":132,"props":5462,"children":5463},{"style":139},[5464],{"type":47,"value":833},{"type":41,"tag":132,"props":5466,"children":5467},{"class":134,"line":190},[5468],{"type":41,"tag":132,"props":5469,"children":5470},{"style":139},[5471],{"type":47,"value":1287},{"type":41,"tag":132,"props":5473,"children":5474},{"class":134,"line":227},[5475,5479,5483,5487,5491,5495,5499,5503],{"type":41,"tag":132,"props":5476,"children":5477},{"style":139},[5478],{"type":47,"value":1295},{"type":41,"tag":132,"props":5480,"children":5481},{"style":577},[5482],{"type":47,"value":854},{"type":41,"tag":132,"props":5484,"children":5485},{"style":139},[5486],{"type":47,"value":162},{"type":41,"tag":132,"props":5488,"children":5489},{"style":139},[5490],{"type":47,"value":167},{"type":41,"tag":132,"props":5492,"children":5493},{"style":139},[5494],{"type":47,"value":172},{"type":41,"tag":132,"props":5496,"children":5497},{"style":175},[5498],{"type":47,"value":871},{"type":41,"tag":132,"props":5500,"children":5501},{"style":139},[5502],{"type":47,"value":162},{"type":41,"tag":132,"props":5504,"children":5505},{"style":139},[5506],{"type":47,"value":187},{"type":41,"tag":132,"props":5508,"children":5509},{"class":134,"line":254},[5510,5514,5518,5522,5526],{"type":41,"tag":132,"props":5511,"children":5512},{"style":139},[5513],{"type":47,"value":1295},{"type":41,"tag":132,"props":5515,"children":5516},{"style":577},[5517],{"type":47,"value":553},{"type":41,"tag":132,"props":5519,"children":5520},{"style":139},[5521],{"type":47,"value":162},{"type":41,"tag":132,"props":5523,"children":5524},{"style":139},[5525],{"type":47,"value":167},{"type":41,"tag":132,"props":5527,"children":5528},{"style":139},[5529],{"type":47,"value":833},{"type":41,"tag":132,"props":5531,"children":5532},{"class":134,"line":639},[5533,5538,5542,5546,5550,5554,5558,5562,5566,5571,5575,5579,5583,5587,5591,5596,5600,5605],{"type":41,"tag":132,"props":5534,"children":5535},{"style":139},[5536],{"type":47,"value":5537},"        {",{"type":41,"tag":132,"props":5539,"children":5540},{"style":139},[5541],{"type":47,"value":162},{"type":41,"tag":132,"props":5543,"children":5544},{"style":248},[5545],{"type":47,"value":157},{"type":41,"tag":132,"props":5547,"children":5548},{"style":139},[5549],{"type":47,"value":162},{"type":41,"tag":132,"props":5551,"children":5552},{"style":139},[5553],{"type":47,"value":167},{"type":41,"tag":132,"props":5555,"children":5556},{"style":139},[5557],{"type":47,"value":172},{"type":41,"tag":132,"props":5559,"children":5560},{"style":175},[5561],{"type":47,"value":354},{"type":41,"tag":132,"props":5563,"children":5564},{"style":139},[5565],{"type":47,"value":162},{"type":41,"tag":132,"props":5567,"children":5568},{"style":139},[5569],{"type":47,"value":5570},",",{"type":41,"tag":132,"props":5572,"children":5573},{"style":139},[5574],{"type":47,"value":172},{"type":41,"tag":132,"props":5576,"children":5577},{"style":248},[5578],{"type":47,"value":354},{"type":41,"tag":132,"props":5580,"children":5581},{"style":139},[5582],{"type":47,"value":162},{"type":41,"tag":132,"props":5584,"children":5585},{"style":139},[5586],{"type":47,"value":167},{"type":41,"tag":132,"props":5588,"children":5589},{"style":139},[5590],{"type":47,"value":172},{"type":41,"tag":132,"props":5592,"children":5593},{"style":175},[5594],{"type":47,"value":5595},"check1.sh",{"type":41,"tag":132,"props":5597,"children":5598},{"style":139},[5599],{"type":47,"value":162},{"type":41,"tag":132,"props":5601,"children":5602},{"style":139},[5603],{"type":47,"value":5604},"},",{"type":41,"tag":132,"props":5606,"children":5607},{"style":4365},[5608],{"type":47,"value":5609},"  \u002F\u002F Parallel\n",{"type":41,"tag":132,"props":5611,"children":5612},{"class":134,"line":673},[5613,5617,5621,5625,5629,5633,5637,5641,5645,5649,5653,5657,5661,5665,5669,5674,5678,5682],{"type":41,"tag":132,"props":5614,"children":5615},{"style":139},[5616],{"type":47,"value":5537},{"type":41,"tag":132,"props":5618,"children":5619},{"style":139},[5620],{"type":47,"value":162},{"type":41,"tag":132,"props":5622,"children":5623},{"style":248},[5624],{"type":47,"value":157},{"type":41,"tag":132,"props":5626,"children":5627},{"style":139},[5628],{"type":47,"value":162},{"type":41,"tag":132,"props":5630,"children":5631},{"style":139},[5632],{"type":47,"value":167},{"type":41,"tag":132,"props":5634,"children":5635},{"style":139},[5636],{"type":47,"value":172},{"type":41,"tag":132,"props":5638,"children":5639},{"style":175},[5640],{"type":47,"value":354},{"type":41,"tag":132,"props":5642,"children":5643},{"style":139},[5644],{"type":47,"value":162},{"type":41,"tag":132,"props":5646,"children":5647},{"style":139},[5648],{"type":47,"value":5570},{"type":41,"tag":132,"props":5650,"children":5651},{"style":139},[5652],{"type":47,"value":172},{"type":41,"tag":132,"props":5654,"children":5655},{"style":248},[5656],{"type":47,"value":354},{"type":41,"tag":132,"props":5658,"children":5659},{"style":139},[5660],{"type":47,"value":162},{"type":41,"tag":132,"props":5662,"children":5663},{"style":139},[5664],{"type":47,"value":167},{"type":41,"tag":132,"props":5666,"children":5667},{"style":139},[5668],{"type":47,"value":172},{"type":41,"tag":132,"props":5670,"children":5671},{"style":175},[5672],{"type":47,"value":5673},"check2.sh",{"type":41,"tag":132,"props":5675,"children":5676},{"style":139},[5677],{"type":47,"value":162},{"type":41,"tag":132,"props":5679,"children":5680},{"style":139},[5681],{"type":47,"value":5604},{"type":41,"tag":132,"props":5683,"children":5684},{"style":4365},[5685],{"type":47,"value":5609},{"type":41,"tag":132,"props":5687,"children":5688},{"class":134,"line":682},[5689,5693,5697,5701,5705,5709,5713,5717,5721,5725,5729,5733,5737,5741,5745,5750,5754,5759],{"type":41,"tag":132,"props":5690,"children":5691},{"style":139},[5692],{"type":47,"value":5537},{"type":41,"tag":132,"props":5694,"children":5695},{"style":139},[5696],{"type":47,"value":162},{"type":41,"tag":132,"props":5698,"children":5699},{"style":248},[5700],{"type":47,"value":157},{"type":41,"tag":132,"props":5702,"children":5703},{"style":139},[5704],{"type":47,"value":162},{"type":41,"tag":132,"props":5706,"children":5707},{"style":139},[5708],{"type":47,"value":167},{"type":41,"tag":132,"props":5710,"children":5711},{"style":139},[5712],{"type":47,"value":172},{"type":41,"tag":132,"props":5714,"children":5715},{"style":175},[5716],{"type":47,"value":178},{"type":41,"tag":132,"props":5718,"children":5719},{"style":139},[5720],{"type":47,"value":162},{"type":41,"tag":132,"props":5722,"children":5723},{"style":139},[5724],{"type":47,"value":5570},{"type":41,"tag":132,"props":5726,"children":5727},{"style":139},[5728],{"type":47,"value":172},{"type":41,"tag":132,"props":5730,"children":5731},{"style":248},[5732],{"type":47,"value":178},{"type":41,"tag":132,"props":5734,"children":5735},{"style":139},[5736],{"type":47,"value":162},{"type":41,"tag":132,"props":5738,"children":5739},{"style":139},[5740],{"type":47,"value":167},{"type":41,"tag":132,"props":5742,"children":5743},{"style":139},[5744],{"type":47,"value":172},{"type":41,"tag":132,"props":5746,"children":5747},{"style":175},[5748],{"type":47,"value":5749},"Validate...",{"type":41,"tag":132,"props":5751,"children":5752},{"style":139},[5753],{"type":47,"value":162},{"type":41,"tag":132,"props":5755,"children":5756},{"style":139},[5757],{"type":47,"value":5758},"}",{"type":41,"tag":132,"props":5760,"children":5761},{"style":4365},[5762],{"type":47,"value":5763},"   \u002F\u002F Parallel\n",{"type":41,"tag":132,"props":5765,"children":5766},{"class":134,"line":913},[5767],{"type":41,"tag":132,"props":5768,"children":5769},{"style":139},[5770],{"type":47,"value":1439},{"type":41,"tag":132,"props":5772,"children":5773},{"class":134,"line":951},[5774],{"type":41,"tag":132,"props":5775,"children":5776},{"style":139},[5777],{"type":47,"value":1447},{"type":41,"tag":132,"props":5779,"children":5780},{"class":134,"line":985},[5781],{"type":41,"tag":132,"props":5782,"children":5783},{"style":139},[5784],{"type":47,"value":1455},{"type":41,"tag":132,"props":5786,"children":5787},{"class":134,"line":994},[5788],{"type":41,"tag":132,"props":5789,"children":5790},{"style":139},[5791],{"type":47,"value":260},{"type":41,"tag":57,"props":5793,"children":5794},{},[5795],{"type":41,"tag":66,"props":5796,"children":5797},{},[5798],{"type":47,"value":5799},"Design implications:",{"type":41,"tag":72,"props":5801,"children":5802},{},[5803,5808,5813],{"type":41,"tag":76,"props":5804,"children":5805},{},[5806],{"type":47,"value":5807},"Hooks don't see each other's output",{"type":41,"tag":76,"props":5809,"children":5810},{},[5811],{"type":47,"value":5812},"Non-deterministic ordering",{"type":41,"tag":76,"props":5814,"children":5815},{},[5816],{"type":47,"value":5817},"Design for independence",{"type":41,"tag":108,"props":5819,"children":5821},{"id":5820},"optimization",[5822],{"type":47,"value":5823},"Optimization",{"type":41,"tag":5825,"props":5826,"children":5827},"ol",{},[5828,5833,5838,5843],{"type":41,"tag":76,"props":5829,"children":5830},{},[5831],{"type":47,"value":5832},"Use command hooks for quick deterministic checks",{"type":41,"tag":76,"props":5834,"children":5835},{},[5836],{"type":47,"value":5837},"Use prompt hooks for complex reasoning",{"type":41,"tag":76,"props":5839,"children":5840},{},[5841],{"type":47,"value":5842},"Cache validation results in temp files",{"type":41,"tag":76,"props":5844,"children":5845},{},[5846],{"type":47,"value":5847},"Minimize I\u002FO in hot paths",{"type":41,"tag":50,"props":5849,"children":5851},{"id":5850},"temporarily-active-hooks",[5852],{"type":47,"value":5853},"Temporarily Active Hooks",{"type":41,"tag":57,"props":5855,"children":5856},{},[5857],{"type":47,"value":5858},"Create hooks that activate conditionally by checking for a flag file or configuration:",{"type":41,"tag":57,"props":5860,"children":5861},{},[5862],{"type":41,"tag":66,"props":5863,"children":5864},{},[5865],{"type":47,"value":5866},"Pattern: Flag file activation",{"type":41,"tag":120,"props":5868,"children":5870},{"className":2765,"code":5869,"language":2767,"meta":125,"style":125},"#!\u002Fbin\u002Fbash\n# Only active when flag file exists\nFLAG_FILE=\"$CLAUDE_PROJECT_DIR\u002F.enable-strict-validation\"\n\nif [ ! -f \"$FLAG_FILE\" ]; then\n  # Flag not present, skip validation\n  exit 0\nfi\n\n# Flag present, run validation\ninput=$(cat)\n# ... validation logic ...\n",[5871],{"type":41,"tag":128,"props":5872,"children":5873},{"__ignoreMap":125},[5874,5881,5889,5919,5926,5968,5976,5988,5995,6002,6010,6029],{"type":41,"tag":132,"props":5875,"children":5876},{"class":134,"line":135},[5877],{"type":41,"tag":132,"props":5878,"children":5879},{"style":4365},[5880],{"type":47,"value":4605},{"type":41,"tag":132,"props":5882,"children":5883},{"class":134,"line":145},[5884],{"type":41,"tag":132,"props":5885,"children":5886},{"style":4365},[5887],{"type":47,"value":5888},"# Only active when flag file exists\n",{"type":41,"tag":132,"props":5890,"children":5891},{"class":134,"line":190},[5892,5897,5902,5906,5910,5915],{"type":41,"tag":132,"props":5893,"children":5894},{"style":596},[5895],{"type":47,"value":5896},"FLAG_FILE",{"type":41,"tag":132,"props":5898,"children":5899},{"style":139},[5900],{"type":47,"value":5901},"=",{"type":41,"tag":132,"props":5903,"children":5904},{"style":139},[5905],{"type":47,"value":162},{"type":41,"tag":132,"props":5907,"children":5908},{"style":596},[5909],{"type":47,"value":3373},{"type":41,"tag":132,"props":5911,"children":5912},{"style":175},[5913],{"type":47,"value":5914},"\u002F.enable-strict-validation",{"type":41,"tag":132,"props":5916,"children":5917},{"style":139},[5918],{"type":47,"value":982},{"type":41,"tag":132,"props":5920,"children":5921},{"class":134,"line":227},[5922],{"type":41,"tag":132,"props":5923,"children":5924},{"emptyLinePlaceholder":4437},[5925],{"type":47,"value":4440},{"type":41,"tag":132,"props":5927,"children":5928},{"class":134,"line":254},[5929,5933,5937,5941,5946,5950,5955,5959,5964],{"type":41,"tag":132,"props":5930,"children":5931},{"style":4736},[5932],{"type":47,"value":4739},{"type":41,"tag":132,"props":5934,"children":5935},{"style":139},[5936],{"type":47,"value":593},{"type":41,"tag":132,"props":5938,"children":5939},{"style":139},[5940],{"type":47,"value":4749},{"type":41,"tag":132,"props":5942,"children":5943},{"style":139},[5944],{"type":47,"value":5945}," -f",{"type":41,"tag":132,"props":5947,"children":5948},{"style":139},[5949],{"type":47,"value":172},{"type":41,"tag":132,"props":5951,"children":5952},{"style":596},[5953],{"type":47,"value":5954},"$FLAG_FILE",{"type":41,"tag":132,"props":5956,"children":5957},{"style":139},[5958],{"type":47,"value":162},{"type":41,"tag":132,"props":5960,"children":5961},{"style":139},[5962],{"type":47,"value":5963}," ];",{"type":41,"tag":132,"props":5965,"children":5966},{"style":4736},[5967],{"type":47,"value":4802},{"type":41,"tag":132,"props":5969,"children":5970},{"class":134,"line":639},[5971],{"type":41,"tag":132,"props":5972,"children":5973},{"style":4365},[5974],{"type":47,"value":5975},"  # Flag not present, skip validation\n",{"type":41,"tag":132,"props":5977,"children":5978},{"class":134,"line":673},[5979,5983],{"type":41,"tag":132,"props":5980,"children":5981},{"style":2777},[5982],{"type":47,"value":4836},{"type":41,"tag":132,"props":5984,"children":5985},{"style":248},[5986],{"type":47,"value":5987}," 0\n",{"type":41,"tag":132,"props":5989,"children":5990},{"class":134,"line":682},[5991],{"type":41,"tag":132,"props":5992,"children":5993},{"style":4736},[5994],{"type":47,"value":4849},{"type":41,"tag":132,"props":5996,"children":5997},{"class":134,"line":913},[5998],{"type":41,"tag":132,"props":5999,"children":6000},{"emptyLinePlaceholder":4437},[6001],{"type":47,"value":4440},{"type":41,"tag":132,"props":6003,"children":6004},{"class":134,"line":951},[6005],{"type":41,"tag":132,"props":6006,"children":6007},{"style":4365},[6008],{"type":47,"value":6009},"# Flag present, run validation\n",{"type":41,"tag":132,"props":6011,"children":6012},{"class":134,"line":985},[6013,6017,6021,6025],{"type":41,"tag":132,"props":6014,"children":6015},{"style":596},[6016],{"type":47,"value":4638},{"type":41,"tag":132,"props":6018,"children":6019},{"style":139},[6020],{"type":47,"value":4643},{"type":41,"tag":132,"props":6022,"children":6023},{"style":577},[6024],{"type":47,"value":4648},{"type":41,"tag":132,"props":6026,"children":6027},{"style":139},[6028],{"type":47,"value":4653},{"type":41,"tag":132,"props":6030,"children":6031},{"class":134,"line":994},[6032],{"type":41,"tag":132,"props":6033,"children":6034},{"style":4365},[6035],{"type":47,"value":6036},"# ... validation logic ...\n",{"type":41,"tag":57,"props":6038,"children":6039},{},[6040],{"type":41,"tag":66,"props":6041,"children":6042},{},[6043],{"type":47,"value":6044},"Pattern: Configuration-based activation",{"type":41,"tag":120,"props":6046,"children":6048},{"className":2765,"code":6047,"language":2767,"meta":125,"style":125},"#!\u002Fbin\u002Fbash\n# Check configuration for activation\nCONFIG_FILE=\"$CLAUDE_PROJECT_DIR\u002F.claude\u002Fplugin-config.json\"\n\nif [ -f \"$CONFIG_FILE\" ]; then\n  enabled=$(jq -r '.strictMode \u002F\u002F false' \"$CONFIG_FILE\")\n  if [ \"$enabled\" != \"true\" ]; then\n    exit 0  # Not enabled, skip\n  fi\nfi\n\n# Enabled, run hook logic\ninput=$(cat)\n# ... hook logic ...\n",[6049],{"type":41,"tag":128,"props":6050,"children":6051},{"__ignoreMap":125},[6052,6059,6067,6096,6103,6139,6189,6240,6258,6266,6273,6280,6288,6307],{"type":41,"tag":132,"props":6053,"children":6054},{"class":134,"line":135},[6055],{"type":41,"tag":132,"props":6056,"children":6057},{"style":4365},[6058],{"type":47,"value":4605},{"type":41,"tag":132,"props":6060,"children":6061},{"class":134,"line":145},[6062],{"type":41,"tag":132,"props":6063,"children":6064},{"style":4365},[6065],{"type":47,"value":6066},"# Check configuration for activation\n",{"type":41,"tag":132,"props":6068,"children":6069},{"class":134,"line":190},[6070,6075,6079,6083,6087,6092],{"type":41,"tag":132,"props":6071,"children":6072},{"style":596},[6073],{"type":47,"value":6074},"CONFIG_FILE",{"type":41,"tag":132,"props":6076,"children":6077},{"style":139},[6078],{"type":47,"value":5901},{"type":41,"tag":132,"props":6080,"children":6081},{"style":139},[6082],{"type":47,"value":162},{"type":41,"tag":132,"props":6084,"children":6085},{"style":596},[6086],{"type":47,"value":3373},{"type":41,"tag":132,"props":6088,"children":6089},{"style":175},[6090],{"type":47,"value":6091},"\u002F.claude\u002Fplugin-config.json",{"type":41,"tag":132,"props":6093,"children":6094},{"style":139},[6095],{"type":47,"value":982},{"type":41,"tag":132,"props":6097,"children":6098},{"class":134,"line":227},[6099],{"type":41,"tag":132,"props":6100,"children":6101},{"emptyLinePlaceholder":4437},[6102],{"type":47,"value":4440},{"type":41,"tag":132,"props":6104,"children":6105},{"class":134,"line":254},[6106,6110,6114,6118,6122,6127,6131,6135],{"type":41,"tag":132,"props":6107,"children":6108},{"style":4736},[6109],{"type":47,"value":4739},{"type":41,"tag":132,"props":6111,"children":6112},{"style":139},[6113],{"type":47,"value":593},{"type":41,"tag":132,"props":6115,"children":6116},{"style":139},[6117],{"type":47,"value":5945},{"type":41,"tag":132,"props":6119,"children":6120},{"style":139},[6121],{"type":47,"value":172},{"type":41,"tag":132,"props":6123,"children":6124},{"style":596},[6125],{"type":47,"value":6126},"$CONFIG_FILE",{"type":41,"tag":132,"props":6128,"children":6129},{"style":139},[6130],{"type":47,"value":162},{"type":41,"tag":132,"props":6132,"children":6133},{"style":139},[6134],{"type":47,"value":5963},{"type":41,"tag":132,"props":6136,"children":6137},{"style":4736},[6138],{"type":47,"value":4802},{"type":41,"tag":132,"props":6140,"children":6141},{"class":134,"line":639},[6142,6147,6151,6156,6160,6164,6169,6173,6177,6181,6185],{"type":41,"tag":132,"props":6143,"children":6144},{"style":596},[6145],{"type":47,"value":6146},"  enabled",{"type":41,"tag":132,"props":6148,"children":6149},{"style":139},[6150],{"type":47,"value":4643},{"type":41,"tag":132,"props":6152,"children":6153},{"style":577},[6154],{"type":47,"value":6155},"jq",{"type":41,"tag":132,"props":6157,"children":6158},{"style":175},[6159],{"type":47,"value":4696},{"type":41,"tag":132,"props":6161,"children":6162},{"style":139},[6163],{"type":47,"value":4701},{"type":41,"tag":132,"props":6165,"children":6166},{"style":175},[6167],{"type":47,"value":6168},".strictMode \u002F\u002F false",{"type":41,"tag":132,"props":6170,"children":6171},{"style":139},[6172],{"type":47,"value":4711},{"type":41,"tag":132,"props":6174,"children":6175},{"style":139},[6176],{"type":47,"value":172},{"type":41,"tag":132,"props":6178,"children":6179},{"style":596},[6180],{"type":47,"value":6126},{"type":41,"tag":132,"props":6182,"children":6183},{"style":139},[6184],{"type":47,"value":162},{"type":41,"tag":132,"props":6186,"children":6187},{"style":139},[6188],{"type":47,"value":4653},{"type":41,"tag":132,"props":6190,"children":6191},{"class":134,"line":673},[6192,6197,6201,6205,6210,6214,6219,6223,6228,6232,6236],{"type":41,"tag":132,"props":6193,"children":6194},{"style":4736},[6195],{"type":47,"value":6196},"  if",{"type":41,"tag":132,"props":6198,"children":6199},{"style":139},[6200],{"type":47,"value":593},{"type":41,"tag":132,"props":6202,"children":6203},{"style":139},[6204],{"type":47,"value":172},{"type":41,"tag":132,"props":6206,"children":6207},{"style":596},[6208],{"type":47,"value":6209},"$enabled",{"type":41,"tag":132,"props":6211,"children":6212},{"style":139},[6213],{"type":47,"value":162},{"type":41,"tag":132,"props":6215,"children":6216},{"style":139},[6217],{"type":47,"value":6218}," !=",{"type":41,"tag":132,"props":6220,"children":6221},{"style":139},[6222],{"type":47,"value":172},{"type":41,"tag":132,"props":6224,"children":6225},{"style":175},[6226],{"type":47,"value":6227},"true",{"type":41,"tag":132,"props":6229,"children":6230},{"style":139},[6231],{"type":47,"value":162},{"type":41,"tag":132,"props":6233,"children":6234},{"style":139},[6235],{"type":47,"value":5963},{"type":41,"tag":132,"props":6237,"children":6238},{"style":4736},[6239],{"type":47,"value":4802},{"type":41,"tag":132,"props":6241,"children":6242},{"class":134,"line":682},[6243,6248,6253],{"type":41,"tag":132,"props":6244,"children":6245},{"style":2777},[6246],{"type":47,"value":6247},"    exit",{"type":41,"tag":132,"props":6249,"children":6250},{"style":248},[6251],{"type":47,"value":6252}," 0",{"type":41,"tag":132,"props":6254,"children":6255},{"style":4365},[6256],{"type":47,"value":6257},"  # Not enabled, skip\n",{"type":41,"tag":132,"props":6259,"children":6260},{"class":134,"line":913},[6261],{"type":41,"tag":132,"props":6262,"children":6263},{"style":4736},[6264],{"type":47,"value":6265},"  fi\n",{"type":41,"tag":132,"props":6267,"children":6268},{"class":134,"line":951},[6269],{"type":41,"tag":132,"props":6270,"children":6271},{"style":4736},[6272],{"type":47,"value":4849},{"type":41,"tag":132,"props":6274,"children":6275},{"class":134,"line":985},[6276],{"type":41,"tag":132,"props":6277,"children":6278},{"emptyLinePlaceholder":4437},[6279],{"type":47,"value":4440},{"type":41,"tag":132,"props":6281,"children":6282},{"class":134,"line":994},[6283],{"type":41,"tag":132,"props":6284,"children":6285},{"style":4365},[6286],{"type":47,"value":6287},"# Enabled, run hook logic\n",{"type":41,"tag":132,"props":6289,"children":6290},{"class":134,"line":1003},[6291,6295,6299,6303],{"type":41,"tag":132,"props":6292,"children":6293},{"style":596},[6294],{"type":47,"value":4638},{"type":41,"tag":132,"props":6296,"children":6297},{"style":139},[6298],{"type":47,"value":4643},{"type":41,"tag":132,"props":6300,"children":6301},{"style":577},[6302],{"type":47,"value":4648},{"type":41,"tag":132,"props":6304,"children":6305},{"style":139},[6306],{"type":47,"value":4653},{"type":41,"tag":132,"props":6308,"children":6309},{"class":134,"line":1012},[6310],{"type":41,"tag":132,"props":6311,"children":6312},{"style":4365},[6313],{"type":47,"value":6314},"# ... hook logic ...\n",{"type":41,"tag":57,"props":6316,"children":6317},{},[6318],{"type":41,"tag":66,"props":6319,"children":6320},{},[6321],{"type":47,"value":6322},"Use cases:",{"type":41,"tag":72,"props":6324,"children":6325},{},[6326,6331,6336,6341],{"type":41,"tag":76,"props":6327,"children":6328},{},[6329],{"type":47,"value":6330},"Enable strict validation only when needed",{"type":41,"tag":76,"props":6332,"children":6333},{},[6334],{"type":47,"value":6335},"Temporary debugging hooks",{"type":41,"tag":76,"props":6337,"children":6338},{},[6339],{"type":47,"value":6340},"Project-specific hook behavior",{"type":41,"tag":76,"props":6342,"children":6343},{},[6344],{"type":47,"value":6345},"Feature flags for hooks",{"type":41,"tag":57,"props":6347,"children":6348},{},[6349,6354],{"type":41,"tag":66,"props":6350,"children":6351},{},[6352],{"type":47,"value":6353},"Best practice:",{"type":47,"value":6355}," Document activation mechanism in plugin README so users know how to enable\u002Fdisable temporary hooks.",{"type":41,"tag":50,"props":6357,"children":6359},{"id":6358},"hook-lifecycle-and-limitations",[6360],{"type":47,"value":6361},"Hook Lifecycle and Limitations",{"type":41,"tag":108,"props":6363,"children":6365},{"id":6364},"hooks-load-at-session-start",[6366],{"type":47,"value":6367},"Hooks Load at Session Start",{"type":41,"tag":57,"props":6369,"children":6370},{},[6371,6375],{"type":41,"tag":66,"props":6372,"children":6373},{},[6374],{"type":47,"value":1208},{"type":47,"value":6376}," Hooks are loaded when Claude Code session starts. Changes to hook configuration require restarting Claude Code.",{"type":41,"tag":57,"props":6378,"children":6379},{},[6380],{"type":41,"tag":66,"props":6381,"children":6382},{},[6383],{"type":47,"value":6384},"Cannot hot-swap hooks:",{"type":41,"tag":72,"props":6386,"children":6387},{},[6388,6400,6405,6410],{"type":41,"tag":76,"props":6389,"children":6390},{},[6391,6393,6398],{"type":47,"value":6392},"Editing ",{"type":41,"tag":128,"props":6394,"children":6396},{"className":6395},[],[6397],{"type":47,"value":488},{"type":47,"value":6399}," won't affect current session",{"type":41,"tag":76,"props":6401,"children":6402},{},[6403],{"type":47,"value":6404},"Adding new hook scripts won't be recognized",{"type":41,"tag":76,"props":6406,"children":6407},{},[6408],{"type":47,"value":6409},"Changing hook commands\u002Fprompts won't update",{"type":41,"tag":76,"props":6411,"children":6412},{},[6413,6415,6421],{"type":47,"value":6414},"Must restart Claude Code: exit and run ",{"type":41,"tag":128,"props":6416,"children":6418},{"className":6417},[],[6419],{"type":47,"value":6420},"claude",{"type":47,"value":6422}," again",{"type":41,"tag":57,"props":6424,"children":6425},{},[6426],{"type":41,"tag":66,"props":6427,"children":6428},{},[6429],{"type":47,"value":6430},"To test hook changes:",{"type":41,"tag":5825,"props":6432,"children":6433},{},[6434,6439,6444,6462,6467],{"type":41,"tag":76,"props":6435,"children":6436},{},[6437],{"type":47,"value":6438},"Edit hook configuration or scripts",{"type":41,"tag":76,"props":6440,"children":6441},{},[6442],{"type":47,"value":6443},"Exit Claude Code session",{"type":41,"tag":76,"props":6445,"children":6446},{},[6447,6449,6454,6456],{"type":47,"value":6448},"Restart: ",{"type":41,"tag":128,"props":6450,"children":6452},{"className":6451},[],[6453],{"type":47,"value":6420},{"type":47,"value":6455}," or ",{"type":41,"tag":128,"props":6457,"children":6459},{"className":6458},[],[6460],{"type":47,"value":6461},"cc",{"type":41,"tag":76,"props":6463,"children":6464},{},[6465],{"type":47,"value":6466},"New hook configuration loads",{"type":41,"tag":76,"props":6468,"children":6469},{},[6470,6472],{"type":47,"value":6471},"Test hooks with ",{"type":41,"tag":128,"props":6473,"children":6475},{"className":6474},[],[6476],{"type":47,"value":6477},"claude --debug",{"type":41,"tag":108,"props":6479,"children":6481},{"id":6480},"hook-validation-at-startup",[6482],{"type":47,"value":6483},"Hook Validation at Startup",{"type":41,"tag":57,"props":6485,"children":6486},{},[6487],{"type":47,"value":6488},"Hooks are validated when Claude Code starts:",{"type":41,"tag":72,"props":6490,"children":6491},{},[6492,6497,6502],{"type":41,"tag":76,"props":6493,"children":6494},{},[6495],{"type":47,"value":6496},"Invalid JSON in hooks.json causes loading failure",{"type":41,"tag":76,"props":6498,"children":6499},{},[6500],{"type":47,"value":6501},"Missing scripts cause warnings",{"type":41,"tag":76,"props":6503,"children":6504},{},[6505],{"type":47,"value":6506},"Syntax errors reported in debug mode",{"type":41,"tag":57,"props":6508,"children":6509},{},[6510,6512,6518],{"type":47,"value":6511},"Use ",{"type":41,"tag":128,"props":6513,"children":6515},{"className":6514},[],[6516],{"type":47,"value":6517},"\u002Fhooks",{"type":47,"value":6519}," command to review loaded hooks in current session.",{"type":41,"tag":50,"props":6521,"children":6523},{"id":6522},"debugging-hooks",[6524],{"type":47,"value":6525},"Debugging Hooks",{"type":41,"tag":108,"props":6527,"children":6529},{"id":6528},"enable-debug-mode",[6530],{"type":47,"value":6531},"Enable Debug Mode",{"type":41,"tag":120,"props":6533,"children":6535},{"className":2765,"code":6534,"language":2767,"meta":125,"style":125},"claude --debug\n",[6536],{"type":41,"tag":128,"props":6537,"children":6538},{"__ignoreMap":125},[6539],{"type":41,"tag":132,"props":6540,"children":6541},{"class":134,"line":135},[6542,6546],{"type":41,"tag":132,"props":6543,"children":6544},{"style":577},[6545],{"type":47,"value":6420},{"type":41,"tag":132,"props":6547,"children":6548},{"style":175},[6549],{"type":47,"value":6550}," --debug\n",{"type":41,"tag":57,"props":6552,"children":6553},{},[6554],{"type":47,"value":6555},"Look for hook registration, execution logs, input\u002Foutput JSON, and timing information.",{"type":41,"tag":108,"props":6557,"children":6559},{"id":6558},"test-hook-scripts",[6560],{"type":47,"value":6561},"Test Hook Scripts",{"type":41,"tag":57,"props":6563,"children":6564},{},[6565],{"type":47,"value":6566},"Test command hooks directly:",{"type":41,"tag":120,"props":6568,"children":6570},{"className":2765,"code":6569,"language":2767,"meta":125,"style":125},"echo '{\"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"\u002Ftest\"}}' | \\\n  bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate.sh\n\necho \"Exit code: $?\"\n",[6571],{"type":41,"tag":128,"props":6572,"children":6573},{"__ignoreMap":125},[6574,6603,6630,6637],{"type":41,"tag":132,"props":6575,"children":6576},{"class":134,"line":135},[6577,6581,6585,6590,6594,6598],{"type":41,"tag":132,"props":6578,"children":6579},{"style":2777},[6580],{"type":47,"value":2780},{"type":41,"tag":132,"props":6582,"children":6583},{"style":139},[6584],{"type":47,"value":4701},{"type":41,"tag":132,"props":6586,"children":6587},{"style":175},[6588],{"type":47,"value":6589},"{\"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"\u002Ftest\"}}",{"type":41,"tag":132,"props":6591,"children":6592},{"style":139},[6593],{"type":47,"value":4711},{"type":41,"tag":132,"props":6595,"children":6596},{"style":139},[6597],{"type":47,"value":4686},{"type":41,"tag":132,"props":6599,"children":6600},{"style":596},[6601],{"type":47,"value":6602}," \\\n",{"type":41,"tag":132,"props":6604,"children":6605},{"class":134,"line":145},[6606,6611,6616,6621,6625],{"type":41,"tag":132,"props":6607,"children":6608},{"style":577},[6609],{"type":47,"value":6610},"  bash",{"type":41,"tag":132,"props":6612,"children":6613},{"style":139},[6614],{"type":47,"value":6615}," ${",{"type":41,"tag":132,"props":6617,"children":6618},{"style":596},[6619],{"type":47,"value":6620},"CLAUDE_PLUGIN_ROOT",{"type":41,"tag":132,"props":6622,"children":6623},{"style":139},[6624],{"type":47,"value":5758},{"type":41,"tag":132,"props":6626,"children":6627},{"style":175},[6628],{"type":47,"value":6629},"\u002Fscripts\u002Fvalidate.sh\n",{"type":41,"tag":132,"props":6631,"children":6632},{"class":134,"line":190},[6633],{"type":41,"tag":132,"props":6634,"children":6635},{"emptyLinePlaceholder":4437},[6636],{"type":47,"value":4440},{"type":41,"tag":132,"props":6638,"children":6639},{"class":134,"line":227},[6640,6644,6648,6653,6658],{"type":41,"tag":132,"props":6641,"children":6642},{"style":2777},[6643],{"type":47,"value":2780},{"type":41,"tag":132,"props":6645,"children":6646},{"style":139},[6647],{"type":47,"value":172},{"type":41,"tag":132,"props":6649,"children":6650},{"style":175},[6651],{"type":47,"value":6652},"Exit code: ",{"type":41,"tag":132,"props":6654,"children":6655},{"style":596},[6656],{"type":47,"value":6657},"$?",{"type":41,"tag":132,"props":6659,"children":6660},{"style":139},[6661],{"type":47,"value":982},{"type":41,"tag":108,"props":6663,"children":6665},{"id":6664},"validate-json-output",[6666],{"type":47,"value":6667},"Validate JSON Output",{"type":41,"tag":57,"props":6669,"children":6670},{},[6671],{"type":47,"value":6672},"Ensure hooks output valid JSON:",{"type":41,"tag":120,"props":6674,"children":6676},{"className":2765,"code":6675,"language":2767,"meta":125,"style":125},"output=$(.\u002Fyour-hook.sh \u003C test-input.json)\necho \"$output\" | jq .\n",[6677],{"type":41,"tag":128,"props":6678,"children":6679},{"__ignoreMap":125},[6680,6711],{"type":41,"tag":132,"props":6681,"children":6682},{"class":134,"line":135},[6683,6688,6692,6697,6702,6707],{"type":41,"tag":132,"props":6684,"children":6685},{"style":596},[6686],{"type":47,"value":6687},"output",{"type":41,"tag":132,"props":6689,"children":6690},{"style":139},[6691],{"type":47,"value":4643},{"type":41,"tag":132,"props":6693,"children":6694},{"style":577},[6695],{"type":47,"value":6696},".\u002Fyour-hook.sh",{"type":41,"tag":132,"props":6698,"children":6699},{"style":139},[6700],{"type":47,"value":6701}," \u003C",{"type":41,"tag":132,"props":6703,"children":6704},{"style":175},[6705],{"type":47,"value":6706}," test-input.json",{"type":41,"tag":132,"props":6708,"children":6709},{"style":139},[6710],{"type":47,"value":4653},{"type":41,"tag":132,"props":6712,"children":6713},{"class":134,"line":145},[6714,6718,6722,6727,6731,6735,6739],{"type":41,"tag":132,"props":6715,"children":6716},{"style":2777},[6717],{"type":47,"value":2780},{"type":41,"tag":132,"props":6719,"children":6720},{"style":139},[6721],{"type":47,"value":172},{"type":41,"tag":132,"props":6723,"children":6724},{"style":596},[6725],{"type":47,"value":6726},"$output",{"type":41,"tag":132,"props":6728,"children":6729},{"style":139},[6730],{"type":47,"value":162},{"type":41,"tag":132,"props":6732,"children":6733},{"style":139},[6734],{"type":47,"value":4686},{"type":41,"tag":132,"props":6736,"children":6737},{"style":577},[6738],{"type":47,"value":4691},{"type":41,"tag":132,"props":6740,"children":6741},{"style":175},[6742],{"type":47,"value":6743}," .\n",{"type":41,"tag":50,"props":6745,"children":6747},{"id":6746},"quick-reference",[6748],{"type":47,"value":6749},"Quick Reference",{"type":41,"tag":108,"props":6751,"children":6753},{"id":6752},"hook-events-summary",[6754],{"type":47,"value":6755},"Hook Events Summary",{"type":41,"tag":6757,"props":6758,"children":6759},"table",{},[6760,6784],{"type":41,"tag":6761,"props":6762,"children":6763},"thead",{},[6764],{"type":41,"tag":6765,"props":6766,"children":6767},"tr",{},[6768,6774,6779],{"type":41,"tag":6769,"props":6770,"children":6771},"th",{},[6772],{"type":47,"value":6773},"Event",{"type":41,"tag":6769,"props":6775,"children":6776},{},[6777],{"type":47,"value":6778},"When",{"type":41,"tag":6769,"props":6780,"children":6781},{},[6782],{"type":47,"value":6783},"Use For",{"type":41,"tag":6785,"props":6786,"children":6787},"tbody",{},[6788,6806,6823,6840,6857,6874,6891,6908,6925],{"type":41,"tag":6765,"props":6789,"children":6790},{},[6791,6796,6801],{"type":41,"tag":6792,"props":6793,"children":6794},"td",{},[6795],{"type":47,"value":580},{"type":41,"tag":6792,"props":6797,"children":6798},{},[6799],{"type":47,"value":6800},"Before tool",{"type":41,"tag":6792,"props":6802,"children":6803},{},[6804],{"type":47,"value":6805},"Validation, modification",{"type":41,"tag":6765,"props":6807,"children":6808},{},[6809,6813,6818],{"type":41,"tag":6792,"props":6810,"children":6811},{},[6812],{"type":47,"value":1658},{"type":41,"tag":6792,"props":6814,"children":6815},{},[6816],{"type":47,"value":6817},"After tool",{"type":41,"tag":6792,"props":6819,"children":6820},{},[6821],{"type":47,"value":6822},"Feedback, logging",{"type":41,"tag":6765,"props":6824,"children":6825},{},[6826,6830,6835],{"type":41,"tag":6792,"props":6827,"children":6828},{},[6829],{"type":47,"value":2294},{"type":41,"tag":6792,"props":6831,"children":6832},{},[6833],{"type":47,"value":6834},"User input",{"type":41,"tag":6792,"props":6836,"children":6837},{},[6838],{"type":47,"value":6839},"Context, validation",{"type":41,"tag":6765,"props":6841,"children":6842},{},[6843,6847,6852],{"type":41,"tag":6792,"props":6844,"children":6845},{},[6846],{"type":47,"value":616},{"type":41,"tag":6792,"props":6848,"children":6849},{},[6850],{"type":47,"value":6851},"Agent stopping",{"type":41,"tag":6792,"props":6853,"children":6854},{},[6855],{"type":47,"value":6856},"Completeness check",{"type":41,"tag":6765,"props":6858,"children":6859},{},[6860,6864,6869],{"type":41,"tag":6792,"props":6861,"children":6862},{},[6863],{"type":47,"value":2278},{"type":41,"tag":6792,"props":6865,"children":6866},{},[6867],{"type":47,"value":6868},"Subagent done",{"type":41,"tag":6792,"props":6870,"children":6871},{},[6872],{"type":47,"value":6873},"Task validation",{"type":41,"tag":6765,"props":6875,"children":6876},{},[6877,6881,6886],{"type":41,"tag":6792,"props":6878,"children":6879},{},[6880],{"type":47,"value":649},{"type":41,"tag":6792,"props":6882,"children":6883},{},[6884],{"type":47,"value":6885},"Session begins",{"type":41,"tag":6792,"props":6887,"children":6888},{},[6889],{"type":47,"value":6890},"Context loading",{"type":41,"tag":6765,"props":6892,"children":6893},{},[6894,6898,6903],{"type":41,"tag":6792,"props":6895,"children":6896},{},[6897],{"type":47,"value":2829},{"type":41,"tag":6792,"props":6899,"children":6900},{},[6901],{"type":47,"value":6902},"Session ends",{"type":41,"tag":6792,"props":6904,"children":6905},{},[6906],{"type":47,"value":6907},"Cleanup, logging",{"type":41,"tag":6765,"props":6909,"children":6910},{},[6911,6915,6920],{"type":41,"tag":6792,"props":6912,"children":6913},{},[6914],{"type":47,"value":2840},{"type":41,"tag":6792,"props":6916,"children":6917},{},[6918],{"type":47,"value":6919},"Before compact",{"type":41,"tag":6792,"props":6921,"children":6922},{},[6923],{"type":47,"value":6924},"Preserve context",{"type":41,"tag":6765,"props":6926,"children":6927},{},[6928,6932,6937],{"type":41,"tag":6792,"props":6929,"children":6930},{},[6931],{"type":47,"value":2851},{"type":41,"tag":6792,"props":6933,"children":6934},{},[6935],{"type":47,"value":6936},"User notified",{"type":41,"tag":6792,"props":6938,"children":6939},{},[6940],{"type":47,"value":6941},"Logging, reactions",{"type":41,"tag":108,"props":6943,"children":6945},{"id":6944},"best-practices",[6946],{"type":47,"value":6947},"Best Practices",{"type":41,"tag":57,"props":6949,"children":6950},{},[6951],{"type":41,"tag":66,"props":6952,"children":6953},{},[6954],{"type":47,"value":6955},"DO:",{"type":41,"tag":72,"props":6957,"children":6958},{},[6959,6964,6969,6974,6979,6984,6989],{"type":41,"tag":76,"props":6960,"children":6961},{},[6962],{"type":47,"value":6963},"✅ Use prompt-based hooks for complex logic",{"type":41,"tag":76,"props":6965,"children":6966},{},[6967],{"type":47,"value":6968},"✅ Use ${CLAUDE_PLUGIN_ROOT} for portability",{"type":41,"tag":76,"props":6970,"children":6971},{},[6972],{"type":47,"value":6973},"✅ Validate all inputs in command hooks",{"type":41,"tag":76,"props":6975,"children":6976},{},[6977],{"type":47,"value":6978},"✅ Quote all bash variables",{"type":41,"tag":76,"props":6980,"children":6981},{},[6982],{"type":47,"value":6983},"✅ Set appropriate timeouts",{"type":41,"tag":76,"props":6985,"children":6986},{},[6987],{"type":47,"value":6988},"✅ Return structured JSON output",{"type":41,"tag":76,"props":6990,"children":6991},{},[6992],{"type":47,"value":6993},"✅ Test hooks thoroughly",{"type":41,"tag":57,"props":6995,"children":6996},{},[6997],{"type":41,"tag":66,"props":6998,"children":6999},{},[7000],{"type":47,"value":7001},"DON'T:",{"type":41,"tag":72,"props":7003,"children":7004},{},[7005,7010,7015,7020,7025,7030],{"type":41,"tag":76,"props":7006,"children":7007},{},[7008],{"type":47,"value":7009},"❌ Use hardcoded paths",{"type":41,"tag":76,"props":7011,"children":7012},{},[7013],{"type":47,"value":7014},"❌ Trust user input without validation",{"type":41,"tag":76,"props":7016,"children":7017},{},[7018],{"type":47,"value":7019},"❌ Create long-running hooks",{"type":41,"tag":76,"props":7021,"children":7022},{},[7023],{"type":47,"value":7024},"❌ Rely on hook execution order",{"type":41,"tag":76,"props":7026,"children":7027},{},[7028],{"type":47,"value":7029},"❌ Modify global state unpredictably",{"type":41,"tag":76,"props":7031,"children":7032},{},[7033],{"type":47,"value":7034},"❌ Log sensitive information",{"type":41,"tag":50,"props":7036,"children":7038},{"id":7037},"additional-resources",[7039],{"type":47,"value":7040},"Additional Resources",{"type":41,"tag":108,"props":7042,"children":7044},{"id":7043},"reference-files",[7045],{"type":47,"value":7046},"Reference Files",{"type":41,"tag":57,"props":7048,"children":7049},{},[7050],{"type":47,"value":7051},"For detailed patterns and advanced techniques, consult:",{"type":41,"tag":72,"props":7053,"children":7054},{},[7055,7069,7083],{"type":41,"tag":76,"props":7056,"children":7057},{},[7058,7067],{"type":41,"tag":66,"props":7059,"children":7060},{},[7061],{"type":41,"tag":128,"props":7062,"children":7064},{"className":7063},[],[7065],{"type":47,"value":7066},"references\u002Fpatterns.md",{"type":47,"value":7068}," - Common hook patterns (8+ proven patterns)",{"type":41,"tag":76,"props":7070,"children":7071},{},[7072,7081],{"type":41,"tag":66,"props":7073,"children":7074},{},[7075],{"type":41,"tag":128,"props":7076,"children":7078},{"className":7077},[],[7079],{"type":47,"value":7080},"references\u002Fmigration.md",{"type":47,"value":7082}," - Migrating from basic to advanced hooks",{"type":41,"tag":76,"props":7084,"children":7085},{},[7086,7095],{"type":41,"tag":66,"props":7087,"children":7088},{},[7089],{"type":41,"tag":128,"props":7090,"children":7092},{"className":7091},[],[7093],{"type":47,"value":7094},"references\u002Fadvanced.md",{"type":47,"value":7096}," - Advanced use cases and techniques",{"type":41,"tag":108,"props":7098,"children":7100},{"id":7099},"example-hook-scripts",[7101],{"type":47,"value":7102},"Example Hook Scripts",{"type":41,"tag":57,"props":7104,"children":7105},{},[7106,7108,7114],{"type":47,"value":7107},"Working examples in ",{"type":41,"tag":128,"props":7109,"children":7111},{"className":7110},[],[7112],{"type":47,"value":7113},"examples\u002F",{"type":47,"value":167},{"type":41,"tag":72,"props":7116,"children":7117},{},[7118,7132,7146],{"type":41,"tag":76,"props":7119,"children":7120},{},[7121,7130],{"type":41,"tag":66,"props":7122,"children":7123},{},[7124],{"type":41,"tag":128,"props":7125,"children":7127},{"className":7126},[],[7128],{"type":47,"value":7129},"validate-write.sh",{"type":47,"value":7131}," - File write validation example",{"type":41,"tag":76,"props":7133,"children":7134},{},[7135,7144],{"type":41,"tag":66,"props":7136,"children":7137},{},[7138],{"type":41,"tag":128,"props":7139,"children":7141},{"className":7140},[],[7142],{"type":47,"value":7143},"validate-bash.sh",{"type":47,"value":7145}," - Bash command validation example",{"type":41,"tag":76,"props":7147,"children":7148},{},[7149,7158],{"type":41,"tag":66,"props":7150,"children":7151},{},[7152],{"type":41,"tag":128,"props":7153,"children":7155},{"className":7154},[],[7156],{"type":47,"value":7157},"load-context.sh",{"type":47,"value":7159}," - SessionStart context loading example",{"type":41,"tag":108,"props":7161,"children":7163},{"id":7162},"utility-scripts",[7164],{"type":47,"value":7165},"Utility Scripts",{"type":41,"tag":57,"props":7167,"children":7168},{},[7169,7171,7177],{"type":47,"value":7170},"Development tools in ",{"type":41,"tag":128,"props":7172,"children":7174},{"className":7173},[],[7175],{"type":47,"value":7176},"scripts\u002F",{"type":47,"value":167},{"type":41,"tag":72,"props":7179,"children":7180},{},[7181,7195,7209],{"type":41,"tag":76,"props":7182,"children":7183},{},[7184,7193],{"type":41,"tag":66,"props":7185,"children":7186},{},[7187],{"type":41,"tag":128,"props":7188,"children":7190},{"className":7189},[],[7191],{"type":47,"value":7192},"validate-hook-schema.sh",{"type":47,"value":7194}," - Validate hooks.json structure and syntax",{"type":41,"tag":76,"props":7196,"children":7197},{},[7198,7207],{"type":41,"tag":66,"props":7199,"children":7200},{},[7201],{"type":41,"tag":128,"props":7202,"children":7204},{"className":7203},[],[7205],{"type":47,"value":7206},"test-hook.sh",{"type":47,"value":7208}," - Test hooks with sample input before deployment",{"type":41,"tag":76,"props":7210,"children":7211},{},[7212,7221],{"type":41,"tag":66,"props":7213,"children":7214},{},[7215],{"type":41,"tag":128,"props":7216,"children":7218},{"className":7217},[],[7219],{"type":47,"value":7220},"hook-linter.sh",{"type":47,"value":7222}," - Check hook scripts for common issues and best practices",{"type":41,"tag":108,"props":7224,"children":7226},{"id":7225},"external-resources",[7227],{"type":47,"value":7228},"External Resources",{"type":41,"tag":72,"props":7230,"children":7231},{},[7232,7249,7259,7276],{"type":41,"tag":76,"props":7233,"children":7234},{},[7235,7240,7241],{"type":41,"tag":66,"props":7236,"children":7237},{},[7238],{"type":47,"value":7239},"Official Docs",{"type":47,"value":4210},{"type":41,"tag":7242,"props":7243,"children":7247},"a",{"href":7244,"rel":7245},"https:\u002F\u002Fdocs.claude.com\u002Fen\u002Fdocs\u002Fclaude-code\u002Fhooks",[7246],"nofollow",[7248],{"type":47,"value":7244},{"type":41,"tag":76,"props":7250,"children":7251},{},[7252,7257],{"type":41,"tag":66,"props":7253,"children":7254},{},[7255],{"type":47,"value":7256},"Examples",{"type":47,"value":7258},": See security-guidance plugin in marketplace",{"type":41,"tag":76,"props":7260,"children":7261},{},[7262,7267,7269,7274],{"type":41,"tag":66,"props":7263,"children":7264},{},[7265],{"type":47,"value":7266},"Testing",{"type":47,"value":7268},": Use ",{"type":41,"tag":128,"props":7270,"children":7272},{"className":7271},[],[7273],{"type":47,"value":6477},{"type":47,"value":7275}," for detailed logs",{"type":41,"tag":76,"props":7277,"children":7278},{},[7279,7283,7284,7289],{"type":41,"tag":66,"props":7280,"children":7281},{},[7282],{"type":47,"value":14},{"type":47,"value":7268},{"type":41,"tag":128,"props":7285,"children":7287},{"className":7286},[],[7288],{"type":47,"value":6155},{"type":47,"value":7290}," to validate hook JSON output",{"type":41,"tag":50,"props":7292,"children":7294},{"id":7293},"implementation-workflow",[7295],{"type":47,"value":7296},"Implementation Workflow",{"type":41,"tag":57,"props":7298,"children":7299},{},[7300],{"type":47,"value":7301},"To implement hooks in a plugin:",{"type":41,"tag":5825,"props":7303,"children":7304},{},[7305,7310,7315,7325,7330,7335,7346,7358,7368],{"type":41,"tag":76,"props":7306,"children":7307},{},[7308],{"type":47,"value":7309},"Identify events to hook into (PreToolUse, Stop, SessionStart, etc.)",{"type":41,"tag":76,"props":7311,"children":7312},{},[7313],{"type":47,"value":7314},"Decide between prompt-based (flexible) or command (deterministic) hooks",{"type":41,"tag":76,"props":7316,"children":7317},{},[7318,7320],{"type":47,"value":7319},"Write hook configuration in ",{"type":41,"tag":128,"props":7321,"children":7323},{"className":7322},[],[7324],{"type":47,"value":488},{"type":41,"tag":76,"props":7326,"children":7327},{},[7328],{"type":47,"value":7329},"For command hooks, create hook scripts",{"type":41,"tag":76,"props":7331,"children":7332},{},[7333],{"type":47,"value":7334},"Use ${CLAUDE_PLUGIN_ROOT} for all file references",{"type":41,"tag":76,"props":7336,"children":7337},{},[7338,7340],{"type":47,"value":7339},"Validate configuration with ",{"type":41,"tag":128,"props":7341,"children":7343},{"className":7342},[],[7344],{"type":47,"value":7345},"scripts\u002Fvalidate-hook-schema.sh hooks\u002Fhooks.json",{"type":41,"tag":76,"props":7347,"children":7348},{},[7349,7350,7356],{"type":47,"value":6471},{"type":41,"tag":128,"props":7351,"children":7353},{"className":7352},[],[7354],{"type":47,"value":7355},"scripts\u002Ftest-hook.sh",{"type":47,"value":7357}," before deployment",{"type":41,"tag":76,"props":7359,"children":7360},{},[7361,7363],{"type":47,"value":7362},"Test in Claude Code with ",{"type":41,"tag":128,"props":7364,"children":7366},{"className":7365},[],[7367],{"type":47,"value":6477},{"type":41,"tag":76,"props":7369,"children":7370},{},[7371],{"type":47,"value":7372},"Document hooks in plugin README",{"type":41,"tag":57,"props":7374,"children":7375},{},[7376],{"type":47,"value":7377},"Focus on prompt-based hooks for most use cases. Reserve command hooks for performance-critical or deterministic checks.",{"type":41,"tag":7379,"props":7380,"children":7381},"style",{},[7382],{"type":47,"value":7383},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":7385,"total":7571},[7386,7407,7421,7433,7452,7465,7486,7506,7520,7534,7542,7555],{"slug":7387,"name":7387,"fn":7388,"description":7389,"org":7390,"tags":7391,"stars":7404,"repoUrl":7405,"updatedAt":7406},"algorithmic-art","create algorithmic art with p5.js","Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7392,7395,7398,7401],{"name":7393,"slug":7394,"type":16},"Creative","creative",{"name":7396,"slug":7397,"type":16},"Design","design",{"name":7399,"slug":7400,"type":16},"Generative Art","generative-art",{"name":7402,"slug":7403,"type":16},"JavaScript","javascript",161831,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fskills","2026-04-06T17:56:15.455818",{"slug":7408,"name":7408,"fn":7409,"description":7410,"org":7411,"tags":7412,"stars":7404,"repoUrl":7405,"updatedAt":7420},"brand-guidelines","apply Anthropic brand colors and typography","Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7413,7416,7417],{"name":7414,"slug":7415,"type":16},"Branding","branding",{"name":7396,"slug":7397,"type":16},{"name":7418,"slug":7419,"type":16},"Typography","typography","2026-04-06T17:56:05.042852",{"slug":7422,"name":7422,"fn":7423,"description":7424,"org":7425,"tags":7426,"stars":7404,"repoUrl":7405,"updatedAt":7432},"canvas-design","create posters and visual art as PNG or PDF","Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7427,7428,7429],{"name":7393,"slug":7394,"type":16},{"name":7396,"slug":7397,"type":16},{"name":7430,"slug":7431,"type":16},"PDF","pdf","2026-04-06T17:56:03.794732",{"slug":7434,"name":7434,"fn":7435,"description":7436,"org":7437,"tags":7438,"stars":7404,"repoUrl":7405,"updatedAt":7451},"claude-api","build apps with the Claude API","Reference for the Claude API \u002F Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration.\nTRIGGER — read BEFORE opening the target file; don't skip because it \"looks like a one-liner\" — whenever: the prompt names Claude\u002FAnthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing\u002Fmodel choice\u002Flimits\u002Fcaching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent\u002FMCP\u002Ftool-definition\u002Fmulti-agent\u002FRAG\u002FLLM-judge\u002Fcomputer-use; generate\u002Fsummarize\u002Fextract\u002Fclassify\u002Frewrite\u002Fconverse over NL; debugging refusals\u002Fcutoffs\u002Fstreaming\u002Ftool-calls\u002Ftokens).\nSKIP only when another provider is being worked on (overrides all triggers): OpenAI\u002FGPT\u002FGemini\u002FLlama\u002FMistral\u002FCohere\u002FOllama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7439,7442,7443,7446,7448],{"name":7440,"slug":7441,"type":16},"Agents","agents",{"name":9,"slug":8,"type":16},{"name":7444,"slug":7445,"type":16},"Anthropic SDK","anthropic-sdk",{"name":7447,"slug":7434,"type":16},"Claude API",{"name":7449,"slug":7450,"type":16},"LLM","llm","2026-07-28T05:36:08.213335",{"slug":7453,"name":7453,"fn":7454,"description":7455,"org":7456,"tags":7457,"stars":7404,"repoUrl":7405,"updatedAt":7464},"doc-coauthoring","co-author documentation and technical specs","Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7458,7461],{"name":7459,"slug":7460,"type":16},"Documentation","documentation",{"name":7462,"slug":7463,"type":16},"Technical Writing","technical-writing","2026-04-06T17:56:14.18897",{"slug":7466,"name":7466,"fn":7467,"description":7468,"org":7469,"tags":7470,"stars":7404,"repoUrl":7405,"updatedAt":7485},"docx","create and edit Word documents","Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7471,7474,7476,7479,7482],{"name":7472,"slug":7473,"type":16},"Documents","documents",{"name":7475,"slug":7466,"type":16},"DOCX",{"name":7477,"slug":7478,"type":16},"Office","office",{"name":7480,"slug":7481,"type":16},"Templates","templates",{"name":7483,"slug":7484,"type":16},"Word","word","2026-07-18T05:16:23.136271",{"slug":7487,"name":7487,"fn":7488,"description":7489,"org":7490,"tags":7491,"stars":7404,"repoUrl":7405,"updatedAt":7505},"frontend-design","design production-grade frontend interfaces","Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7492,7493,7496,7499,7502],{"name":7396,"slug":7397,"type":16},{"name":7494,"slug":7495,"type":16},"Frontend","frontend",{"name":7497,"slug":7498,"type":16},"React","react",{"name":7500,"slug":7501,"type":16},"Tailwind CSS","tailwind-css",{"name":7503,"slug":7504,"type":16},"UI Components","ui-components","2026-04-06T17:56:16.723469",{"slug":7507,"name":7507,"fn":7508,"description":7509,"org":7510,"tags":7511,"stars":7404,"repoUrl":7405,"updatedAt":7519},"internal-comms","write internal company communications","A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7512,7515,7516],{"name":7513,"slug":7514,"type":16},"Communications","communications",{"name":7480,"slug":7481,"type":16},{"name":7517,"slug":7518,"type":16},"Writing","writing","2026-04-06T17:56:20.695522",{"slug":7521,"name":7521,"fn":7522,"description":7523,"org":7524,"tags":7525,"stars":7404,"repoUrl":7405,"updatedAt":7533},"mcp-builder","build MCP servers","Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node\u002FTypeScript (MCP SDK).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7526,7527,7530,7531],{"name":7440,"slug":7441,"type":16},{"name":7528,"slug":7529,"type":16},"API Development","api-development",{"name":7449,"slug":7450,"type":16},{"name":7532,"slug":27,"type":16},"MCP","2026-04-06T17:56:10.357665",{"slug":7431,"name":7431,"fn":7535,"description":7536,"org":7537,"tags":7538,"stars":7404,"repoUrl":7405,"updatedAt":7541},"read edit and manipulate PDF files","Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text\u002Ftables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting\u002Fdecrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7539,7540],{"name":7472,"slug":7473,"type":16},{"name":7430,"slug":7431,"type":16},"2026-04-06T17:56:02.483316",{"slug":7543,"name":7543,"fn":7544,"description":7545,"org":7546,"tags":7547,"stars":7404,"repoUrl":7405,"updatedAt":7554},"pptx","create and edit PowerPoint presentations","Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7548,7551],{"name":7549,"slug":7550,"type":16},"PowerPoint","powerpoint",{"name":7552,"slug":7553,"type":16},"Presentations","presentations","2026-07-18T05:16:24.1471",{"slug":7556,"name":7556,"fn":7557,"description":7558,"org":7559,"tags":7560,"stars":7404,"repoUrl":7405,"updatedAt":7570},"skill-creator","create and optimize agent skills","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7561,7562,7563,7566,7569],{"name":7440,"slug":7441,"type":16},{"name":7459,"slug":7460,"type":16},{"name":7564,"slug":7565,"type":16},"Evals","evals",{"name":7567,"slug":7568,"type":16},"Performance","performance",{"name":7462,"slug":7463,"type":16},"2026-04-19T06:45:40.804",490,{"items":7573,"total":3948},[7574,7590,7601,7613,7623,7636,7655],{"slug":7575,"name":7575,"fn":7576,"description":7577,"org":7578,"tags":7579,"stars":20,"repoUrl":21,"updatedAt":7589},"access","manage iMessage channel access and permissions","Manage iMessage channel access — approve pairings, edit allowlists, set DM\u002Fgroup policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the iMessage channel.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7580,7583,7586],{"name":7581,"slug":7582,"type":16},"Access Control","access-control",{"name":7584,"slug":7585,"type":16},"iMessage","imessage",{"name":7587,"slug":7588,"type":16},"Messaging","messaging","2026-04-12T04:54:55.917969",{"slug":7591,"name":7591,"fn":7592,"description":7593,"org":7594,"tags":7595,"stars":20,"repoUrl":21,"updatedAt":7600},"agent-development","develop and configure AI agents","This skill should be used when the user asks to \"create an agent\", \"add an agent\", \"write a subagent\", \"agent frontmatter\", \"when to use description\", \"agent examples\", \"agent tools\", \"agent colors\", \"autonomous agent\", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7596,7597,7598,7599],{"name":7440,"slug":7441,"type":16},{"name":9,"slug":8,"type":16},{"name":7459,"slug":7460,"type":16},{"name":18,"slug":19,"type":16},"2026-04-10T04:55:41.251084",{"slug":7602,"name":7602,"fn":7603,"description":7604,"org":7605,"tags":7606,"stars":20,"repoUrl":21,"updatedAt":7612},"build-mcp-app","build MCP apps with interactive UI","This skill should be used when the user wants to build an \"MCP app\", add \"interactive UI\" or \"widgets\" to an MCP server, \"render components in chat\", build \"MCP UI resources\", make a tool that shows a \"form\", \"picker\", \"dashboard\" or \"confirmation dialog\" inline in the conversation, or mentions \"apps SDK\" in the context of MCP. Use AFTER the build-mcp-server skill has settled the deployment model, or when the user already knows they want UI widgets.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7607,7608,7610,7611],{"name":7440,"slug":7441,"type":16},{"name":7609,"slug":26,"type":16},"Claude Code",{"name":7532,"slug":27,"type":16},{"name":7503,"slug":7504,"type":16},"2026-04-06T17:59:32.421865",{"slug":7614,"name":7614,"fn":7522,"description":7615,"org":7616,"tags":7617,"stars":20,"repoUrl":21,"updatedAt":7622},"build-mcp-server","This skill should be used when the user asks to \"build an MCP server\", \"create an MCP\", \"make an MCP integration\", \"wrap an API for Claude\", \"expose tools to Claude\", \"make an MCP app\", or discusses building something with the Model Context Protocol. It is the entry point for MCP server development — it interrogates the user about their use case, determines the right deployment model (remote HTTP, MCPB, local stdio), picks a tool-design pattern, and hands off to specialized skills.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7618,7619,7620,7621],{"name":7440,"slug":7441,"type":16},{"name":7528,"slug":7529,"type":16},{"name":7609,"slug":26,"type":16},{"name":7532,"slug":27,"type":16},"2026-04-06T17:59:33.744601",{"slug":7624,"name":7624,"fn":7625,"description":7626,"org":7627,"tags":7628,"stars":20,"repoUrl":21,"updatedAt":7635},"build-mcpb","package and distribute MCP servers","This skill should be used when the user wants to \"package an MCP server\", \"bundle an MCP\", \"make an MCPB\", \"ship a local MCP server\", \"distribute a local MCP\", discusses \".mcpb files\", mentions bundling a Node or Python runtime with their MCP server, or needs an MCP server that interacts with the local filesystem, desktop apps, or OS and must be installable without the user having Node\u002FPython set up.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7629,7630,7631,7632],{"name":7440,"slug":7441,"type":16},{"name":7609,"slug":26,"type":16},{"name":7532,"slug":27,"type":16},{"name":7633,"slug":7634,"type":16},"Packaging","packaging","2026-04-06T17:59:31.159961",{"slug":7637,"name":7637,"fn":7638,"description":7639,"org":7640,"tags":7641,"stars":20,"repoUrl":21,"updatedAt":7654},"cardputer-buddy","develop MicroPython apps for Cardputer","Iterate on the Cardputer-Adv MicroPython app bundle (Claude Buddy, Snake, Hello) after the device is already provisioned via m5-onboard. Use when the user wants to add a new app, push a single changed .py without re-flashing, watch device serial logs, or run a one-shot REPL command. Trigger on \"add an app\", \"push to the cardputer\", \"tail the device\", \"run on the device\", or follow-up work after \u002Fmaker-setup.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7642,7645,7648,7651],{"name":7643,"slug":7644,"type":16},"Hardware","hardware",{"name":7646,"slug":7647,"type":16},"M5Stack","m5stack",{"name":7649,"slug":7650,"type":16},"MicroPython","micropython",{"name":7652,"slug":7653,"type":16},"Python","python","2026-05-06T05:39:00.134385",{"slug":7656,"name":7656,"fn":7657,"description":7658,"org":7659,"tags":7660,"stars":20,"repoUrl":21,"updatedAt":7666},"claude-automation-recommender","recommend Claude Code automations","Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what Claude Code features they should use.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[7661,7664,7665],{"name":7662,"slug":7663,"type":16},"Agent Context","agent-context",{"name":7609,"slug":26,"type":16},{"name":7532,"slug":27,"type":16},"2026-04-06T18:00:34.049624"]