[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77JM24CKAEFEZFZJW38H2ZS":3,"skill-same:01M77JM24CKAEFEZFZJW38H2ZS":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M77JM24CKAEFEZFZJW38H2ZS","create-hooks",null,"Expert guidance for creating, configuring, and using Claude Code hooks. Use when working with hooks, setting up event listeners, validating commands, automating workflows, adding notifications, or understanding hook types (PreToolUse, PostToolUse, Stop, SessionStart, UserPromptSubmit, etc).","Elad73\u002Fagentic-base-layer","Elad73","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11886649?v=4","01M77JKHHH0GYX9ZBKNJ38QRAJ","EladRon","01M77JKHJNDTJ53993X2QNMHSG",0,"MIT","https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fcreate-hooks\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: create-hooks\ndescription: Expert guidance for creating, configuring, and using Claude Code hooks. Use when working with hooks, setting up event listeners, validating commands, automating workflows, adding notifications, or understanding hook types (PreToolUse, PostToolUse, Stop, SessionStart, UserPromptSubmit, etc).\n---\n\n\u003Cobjective>\nHooks are event-driven automation for Claude Code that execute shell commands or LLM prompts in response to tool usage, session events, and user interactions. This skill teaches you how to create, configure, and debug hooks for validating commands, automating workflows, injecting context, and implementing custom completion criteria.\n\nHooks provide programmatic control over Claude's behavior without modifying core code, enabling project-specific automation, safety checks, and workflow customization.\n\u003C\u002Fobjective>\n\n\u003Ccontext>\nHooks are shell commands or LLM-evaluated prompts that execute in response to Claude Code events. They operate within an event hierarchy: events (PreToolUse, PostToolUse, Stop, etc.) trigger matchers (tool patterns) which fire hooks (commands or prompts). Hooks can block actions, modify tool inputs, inject context, or simply observe and log Claude's operations.\n\u003C\u002Fcontext>\n\n\u003Cquick_start>\n\u003Cworkflow>\n1. Create hooks config file:\n   - Project: `.claude\u002Fhooks.json`\n   - User: `~\u002F.claude\u002Fhooks.json`\n2. Choose hook event (when it fires)\n3. Choose hook type (command or prompt)\n4. Configure matcher (which tools trigger it)\n5. Test with `claude --debug`\n\u003C\u002Fworkflow>\n\n\u003Cexample>\n**Log all bash commands**:\n\n`.claude\u002Fhooks.json`:\n```json\n{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"jq -r '\\\"\\\\(.tool_input.command) - \\\\(.tool_input.description \u002F\u002F \\\\\\\"No description\\\\\\\")\\\"' >> ~\u002F.claude\u002Fbash-log.txt\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\nThis hook:\n- Fires before (`PreToolUse`) every `Bash` tool use\n- Executes a `command` (not an LLM prompt)\n- Logs command + description to a file\n\u003C\u002Fexample>\n\u003C\u002Fquick_start>\n\n\u003Chook_types>\n| Event | When it fires | Can block? |\n|-------|---------------|------------|\n| **PreToolUse** | Before tool execution | Yes |\n| **PostToolUse** | After tool execution | No |\n| **UserPromptSubmit** | User submits a prompt | Yes |\n| **Stop** | Claude attempts to stop | Yes |\n| **SubagentStop** | Subagent attempts to stop | Yes |\n| **SessionStart** | Session begins | No |\n| **SessionEnd** | Session ends | No |\n| **PreCompact** | Before context compaction | Yes |\n| **Notification** | Claude needs input | No |\n\nBlocking hooks can return `\"decision\": \"block\"` to prevent the action. See [references\u002Fhook-types.md](references\u002Fhook-types.md) for detailed use cases.\n\u003C\u002Fhook_types>\n\n\u003Chook_anatomy>\n\u003Chook_type name=\"command\">\n**Type**: Executes a shell command\n\n**Use when**:\n- Simple validation (check file exists)\n- Logging (append to file)\n- External tools (formatters, linters)\n- Desktop notifications\n\n**Input**: JSON via stdin\n**Output**: JSON via stdout (optional)\n\n```json\n{\n  \"type\": \"command\",\n  \"command\": \"\u002Fpath\u002Fto\u002Fscript.sh\",\n  \"timeout\": 30000\n}\n```\n\u003C\u002Fhook_type>\n\n\u003Chook_type name=\"prompt\">\n**Type**: LLM evaluates a prompt\n\n**Use when**:\n- Complex decision logic\n- Natural language validation\n- Context-aware checks\n- Reasoning required\n\n**Input**: Prompt with `$ARGUMENTS` placeholder\n**Output**: JSON with `decision` and `reason`\n\n```json\n{\n  \"type\": \"prompt\",\n  \"prompt\": \"Evaluate if this command is safe: $ARGUMENTS\\n\\nReturn JSON: {\\\"decision\\\": \\\"approve\\\" or \\\"block\\\", \\\"reason\\\": \\\"explanation\\\"}\"\n}\n```\n\u003C\u002Fhook_type>\n\u003C\u002Fhook_anatomy>\n\n\u003Cmatchers>\nMatchers filter which tools trigger the hook:\n\n```json\n{\n  \"matcher\": \"Bash\",           \u002F\u002F Exact match\n  \"matcher\": \"Write|Edit\",     \u002F\u002F Multiple tools (regex OR)\n  \"matcher\": \"mcp__.*\",        \u002F\u002F All MCP tools\n  \"matcher\": \"mcp__memory__.*\" \u002F\u002F Specific MCP server\n}\n```\n\n**No matcher**: Hook fires for all tools\n```json\n{\n  \"hooks\": {\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [...]  \u002F\u002F No matcher - fires on every user prompt\n      }\n    ]\n  }\n}\n```\n\u003C\u002Fmatchers>\n\n\u003Cinput_output>\nHooks receive JSON via stdin with session info, current directory, and event-specific data. Blocking hooks can return JSON to approve\u002Fblock actions or modify inputs.\n\n**Example output** (blocking hooks):\n```json\n{\n  \"decision\": \"approve\" | \"block\",\n  \"reason\": \"Why this decision was made\"\n}\n```\n\nSee [references\u002Finput-output-schemas.md](references\u002Finput-output-schemas.md) for complete schemas for each hook type.\n\u003C\u002Finput_output>\n\n\u003Cenvironment_variables>\nAvailable in hook commands:\n\n| Variable | Value |\n|----------|-------|\n| `$CLAUDE_PROJECT_DIR` | Project root directory |\n| `${CLAUDE_PLUGIN_ROOT}` | Plugin directory (plugin hooks only) |\n| `$ARGUMENTS` | Hook input JSON (prompt hooks only) |\n\n**Example**:\n```json\n{\n  \"command\": \"$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Fvalidate.sh\"\n}\n```\n\u003C\u002Fenvironment_variables>\n\n\u003Ccommon_patterns>\n**Desktop notification when input needed** (use a notifier for your platform — `notify-send` on Linux, `osascript`\u002F`terminal-notifier` on macOS, `msg`\u002FPowerShell on Windows):\n```json\n{\n  \"hooks\": {\n    \"Notification\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"notify-send 'Claude Code' 'Claude needs input'\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n**Block destructive git commands**:\n```json\n{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"prompt\",\n            \"prompt\": \"Check if this command is destructive: $ARGUMENTS\\n\\nBlock if it contains: 'git push --force', 'rm -rf', 'git reset --hard'\\n\\nReturn: {\\\"decision\\\": \\\"approve\\\" or \\\"block\\\", \\\"reason\\\": \\\"explanation\\\"}\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n**Auto-format code after edits**:\n```json\n{\n  \"hooks\": {\n    \"PostToolUse\": [\n      {\n        \"matcher\": \"Write|Edit\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"prettier --write $CLAUDE_PROJECT_DIR\",\n            \"timeout\": 10000\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n**Add context at session start**:\n```json\n{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"echo '{\\\"hookSpecificOutput\\\": {\\\"hookEventName\\\": \\\"SessionStart\\\", \\\"additionalContext\\\": \\\"Current sprint: Sprint 23. Focus: User authentication\\\"}}'\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\u003C\u002Fcommon_patterns>\n\n\u003Cdebugging>\nAlways test hooks with the debug flag:\n```bash\nclaude --debug\n```\n\nThis shows which hooks matched, command execution, and output. See [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for common issues and solutions.\n\u003C\u002Fdebugging>\n\n\u003Creference_guides>\n**Hook types and events**: [references\u002Fhook-types.md](references\u002Fhook-types.md)\n- Complete list of hook events\n- When each event fires\n- Input\u002Foutput schemas for each\n- Blocking vs non-blocking hooks\n\n**Command vs Prompt hooks**: [references\u002Fcommand-vs-prompt.md](references\u002Fcommand-vs-prompt.md)\n- Decision tree: which type to use\n- Command hook patterns and examples\n- Prompt hook patterns and examples\n- Performance considerations\n\n**Matchers and patterns**: [references\u002Fmatchers.md](references\u002Fmatchers.md)\n- Regex patterns for tool matching\n- MCP tool matching patterns\n- Multiple tool matching\n- Debugging matcher issues\n\n**Input\u002FOutput schemas**: [references\u002Finput-output-schemas.md](references\u002Finput-output-schemas.md)\n- Complete schema for each hook type\n- Field descriptions and types\n- Hook-specific output fields\n- Example JSON for each event\n\n**Working examples**: [references\u002Fexamples.md](references\u002Fexamples.md)\n- Desktop notifications\n- Command validation\n- Auto-formatting workflows\n- Logging and audit trails\n- Stop logic patterns\n- Session context injection\n\n**Troubleshooting**: [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md)\n- Hooks not triggering\n- Command execution failures\n- Prompt hook issues\n- Permission problems\n- Timeout handling\n- Debug workflow\n\u003C\u002Freference_guides>\n\n\u003Csecurity_checklist>\n**Critical safety requirements**:\n\n- **Infinite loop prevention**: Check `stop_hook_active` flag in Stop hooks to prevent recursive triggering\n- **Timeout configuration**: Set reasonable timeouts (default: 60s) to prevent hanging\n- **Permission validation**: Ensure hook scripts have executable permissions (`chmod +x`)\n- **Path safety**: Use absolute paths with `$CLAUDE_PROJECT_DIR` to avoid path injection\n- **JSON validation**: Validate hook config with `jq` before use to catch syntax errors\n- **Selective blocking**: Be conservative with blocking hooks to avoid workflow disruption\n\n**Testing protocol**:\n```bash\n# Always test with debug flag first\nclaude --debug\n\n# Validate JSON config\njq . .claude\u002Fhooks.json\n```\n\u003C\u002Fsecurity_checklist>\n\n\u003Csuccess_criteria>\nA working hook configuration has:\n\n- Valid JSON in `.claude\u002Fhooks.json` (validated with `jq`)\n- Appropriate hook event selected for the use case\n- Correct matcher pattern that matches target tools\n- Command or prompt that executes without errors\n- Proper output schema (decision\u002Freason for blocking hooks)\n- Tested with `--debug` flag showing expected behavior\n- No infinite loops in Stop hooks (checks `stop_hook_active` flag)\n- Reasonable timeout set (especially for external commands)\n- Executable permissions on script files if using file paths\n\u003C\u002Fsuccess_criteria>\n","\u003Cobjective>\nHooks are event-driven automation for Claude Code that execute shell commands or LLM prompts in response to tool usage, session events, and user interactions. This skill teaches you how to create, configure, and debug hooks for validating commands, automating workflows, injecting context, and implementing custom completion criteria.\n\nHooks provide programmatic control over Claude's behavior without modifying core code, enabling project-specific automation, safety checks, and workflow customization.\n\u003C\u002Fobjective>\n\n\u003Ccontext>\nHooks are shell commands or LLM-evaluated prompts that execute in response to Claude Code events. They operate within an event hierarchy: events (PreToolUse, PostToolUse, Stop, etc.) trigger matchers (tool patterns) which fire hooks (commands or prompts). Hooks can block actions, modify tool inputs, inject context, or simply observe and log Claude's operations.\n\u003C\u002Fcontext>\n\n\u003Cquick_start>\n\u003Cworkflow>\n1. Create hooks config file:\n   - Project: `.claude\u002Fhooks.json`\n   - User: `~\u002F.claude\u002Fhooks.json`\n2. Choose hook event (when it fires)\n3. Choose hook type (command or prompt)\n4. Configure matcher (which tools trigger it)\n5. Test with `claude --debug`\n\u003C\u002Fworkflow>\n\n\u003Cexample>\n**Log all bash commands**:\n\n`.claude\u002Fhooks.json`:\n```json\n{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"jq -r '\\\"\\\\(.tool_input.command) - \\\\(.tool_input.description \u002F\u002F \\\\\\\"No description\\\\\\\")\\\"' >> ~\u002F.claude\u002Fbash-log.txt\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\nThis hook:\n- Fires before (`PreToolUse`) every `Bash` tool use\n- Executes a `command` (not an LLM prompt)\n- Logs command + description to a file\n\u003C\u002Fexample>\n\u003C\u002Fquick_start>\n\n\u003Chook_types>\n| Event | When it fires | Can block? |\n|-------|---------------|------------|\n| **PreToolUse** | Before tool execution | Yes |\n| **PostToolUse** | After tool execution | No |\n| **UserPromptSubmit** | User submits a prompt | Yes |\n| **Stop** | Claude attempts to stop | Yes |\n| **SubagentStop** | Subagent attempts to stop | Yes |\n| **SessionStart** | Session begins | No |\n| **SessionEnd** | Session ends | No |\n| **PreCompact** | Before context compaction | Yes |\n| **Notification** | Claude needs input | No |\n\nBlocking hooks can return `\"decision\": \"block\"` to prevent the action. See [references\u002Fhook-types.md](references\u002Fhook-types.md) for detailed use cases.\n\u003C\u002Fhook_types>\n\n\u003Chook_anatomy>\n\u003Chook_type name=\"command\">\n**Type**: Executes a shell command\n\n**Use when**:\n- Simple validation (check file exists)\n- Logging (append to file)\n- External tools (formatters, linters)\n- Desktop notifications\n\n**Input**: JSON via stdin\n**Output**: JSON via stdout (optional)\n\n```json\n{\n  \"type\": \"command\",\n  \"command\": \"\u002Fpath\u002Fto\u002Fscript.sh\",\n  \"timeout\": 30000\n}\n```\n\u003C\u002Fhook_type>\n\n\u003Chook_type name=\"prompt\">\n**Type**: LLM evaluates a prompt\n\n**Use when**:\n- Complex decision logic\n- Natural language validation\n- Context-aware checks\n- Reasoning required\n\n**Input**: Prompt with `$ARGUMENTS` placeholder\n**Output**: JSON with `decision` and `reason`\n\n```json\n{\n  \"type\": \"prompt\",\n  \"prompt\": \"Evaluate if this command is safe: $ARGUMENTS\\n\\nReturn JSON: {\\\"decision\\\": \\\"approve\\\" or \\\"block\\\", \\\"reason\\\": \\\"explanation\\\"}\"\n}\n```\n\u003C\u002Fhook_type>\n\u003C\u002Fhook_anatomy>\n\n\u003Cmatchers>\nMatchers filter which tools trigger the hook:\n\n```json\n{\n  \"matcher\": \"Bash\",           \u002F\u002F Exact match\n  \"matcher\": \"Write|Edit\",     \u002F\u002F Multiple tools (regex OR)\n  \"matcher\": \"mcp__.*\",        \u002F\u002F All MCP tools\n  \"matcher\": \"mcp__memory__.*\" \u002F\u002F Specific MCP server\n}\n```\n\n**No matcher**: Hook fires for all tools\n```json\n{\n  \"hooks\": {\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [...]  \u002F\u002F No matcher - fires on every user prompt\n      }\n    ]\n  }\n}\n```\n\u003C\u002Fmatchers>\n\n\u003Cinput_output>\nHooks receive JSON via stdin with session info, current directory, and event-specific data. Blocking hooks can return JSON to approve\u002Fblock actions or modify inputs.\n\n**Example output** (blocking hooks):\n```json\n{\n  \"decision\": \"approve\" | \"block\",\n  \"reason\": \"Why this decision was made\"\n}\n```\n\nSee [references\u002Finput-output-schemas.md](references\u002Finput-output-schemas.md) for complete schemas for each hook type.\n\u003C\u002Finput_output>\n\n\u003Cenvironment_variables>\nAvailable in hook commands:\n\n| Variable | Value |\n|----------|-------|\n| `$CLAUDE_PROJECT_DIR` | Project root directory |\n| `${CLAUDE_PLUGIN_ROOT}` | Plugin directory (plugin hooks only) |\n| `$ARGUMENTS` | Hook input JSON (prompt hooks only) |\n\n**Example**:\n```json\n{\n  \"command\": \"$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Fvalidate.sh\"\n}\n```\n\u003C\u002Fenvironment_variables>\n\n\u003Ccommon_patterns>\n**Desktop notification when input needed** (use a notifier for your platform — `notify-send` on Linux, `osascript`\u002F`terminal-notifier` on macOS, `msg`\u002FPowerShell on Windows):\n```json\n{\n  \"hooks\": {\n    \"Notification\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"notify-send 'Claude Code' 'Claude needs input'\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n**Block destructive git commands**:\n```json\n{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"prompt\",\n            \"prompt\": \"Check if this command is destructive: $ARGUMENTS\\n\\nBlock if it contains: 'git push --force', 'rm -rf', 'git reset --hard'\\n\\nReturn: {\\\"decision\\\": \\\"approve\\\" or \\\"block\\\", \\\"reason\\\": \\\"explanation\\\"}\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n**Auto-format code after edits**:\n```json\n{\n  \"hooks\": {\n    \"PostToolUse\": [\n      {\n        \"matcher\": \"Write|Edit\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"prettier --write $CLAUDE_PROJECT_DIR\",\n            \"timeout\": 10000\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n**Add context at session start**:\n```json\n{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"echo '{\\\"hookSpecificOutput\\\": {\\\"hookEventName\\\": \\\"SessionStart\\\", \\\"additionalContext\\\": \\\"Current sprint: Sprint 23. Focus: User authentication\\\"}}'\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\u003C\u002Fcommon_patterns>\n\n\u003Cdebugging>\nAlways test hooks with the debug flag:\n```bash\nclaude --debug\n```\n\nThis shows which hooks matched, command execution, and output. See [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for common issues and solutions.\n\u003C\u002Fdebugging>\n\n\u003Creference_guides>\n**Hook types and events**: [references\u002Fhook-types.md](references\u002Fhook-types.md)\n- Complete list of hook events\n- When each event fires\n- Input\u002Foutput schemas for each\n- Blocking vs non-blocking hooks\n\n**Command vs Prompt hooks**: [references\u002Fcommand-vs-prompt.md](references\u002Fcommand-vs-prompt.md)\n- Decision tree: which type to use\n- Command hook patterns and examples\n- Prompt hook patterns and examples\n- Performance considerations\n\n**Matchers and patterns**: [references\u002Fmatchers.md](references\u002Fmatchers.md)\n- Regex patterns for tool matching\n- MCP tool matching patterns\n- Multiple tool matching\n- Debugging matcher issues\n\n**Input\u002FOutput schemas**: [references\u002Finput-output-schemas.md](references\u002Finput-output-schemas.md)\n- Complete schema for each hook type\n- Field descriptions and types\n- Hook-specific output fields\n- Example JSON for each event\n\n**Working examples**: [references\u002Fexamples.md](references\u002Fexamples.md)\n- Desktop notifications\n- Command validation\n- Auto-formatting workflows\n- Logging and audit trails\n- Stop logic patterns\n- Session context injection\n\n**Troubleshooting**: [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md)\n- Hooks not triggering\n- Command execution failures\n- Prompt hook issues\n- Permission problems\n- Timeout handling\n- Debug workflow\n\u003C\u002Freference_guides>\n\n\u003Csecurity_checklist>\n**Critical safety requirements**:\n\n- **Infinite loop prevention**: Check `stop_hook_active` flag in Stop hooks to prevent recursive triggering\n- **Timeout configuration**: Set reasonable timeouts (default: 60s) to prevent hanging\n- **Permission validation**: Ensure hook scripts have executable permissions (`chmod +x`)\n- **Path safety**: Use absolute paths with `$CLAUDE_PROJECT_DIR` to avoid path injection\n- **JSON validation**: Validate hook config with `jq` before use to catch syntax errors\n- **Selective blocking**: Be conservative with blocking hooks to avoid workflow disruption\n\n**Testing protocol**:\n```bash\n# Always test with debug flag first\nclaude --debug\n\n# Validate JSON config\njq . .claude\u002Fhooks.json\n```\n\u003C\u002Fsecurity_checklist>\n\n\u003Csuccess_criteria>\nA working hook configuration has:\n\n- Valid JSON in `.claude\u002Fhooks.json` (validated with `jq`)\n- Appropriate hook event selected for the use case\n- Correct matcher pattern that matches target tools\n- Command or prompt that executes without errors\n- Proper output schema (decision\u002Freason for blocking hooks)\n- Tested with `--debug` flag showing expected behavior\n- No infinite loops in Stop hooks (checks `stop_hook_active` flag)\n- Reasonable timeout set (especially for external commands)\n- Executable permissions on script files if using file paths\n\u003C\u002Fsuccess_criteria>\n",{"name":5,"description":7},"main","49131d07c65f27037f747a6e0ae748ff6f082fc1","global\u002Fskills\u002Fcreate-hooks","https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer","https:\u002F\u002Fgithub.com\u002FElad73","2026-06-23 00:00:33",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add Elad73\u002Fagentic-base-layer --skill create-hooks",{"tool":36,"command":37},"bunx","bunx skills add Elad73\u002Fagentic-base-layer --skill create-hooks",{"tool":39,"command":40},"pnpm","pnpm dlx skills add Elad73\u002Fagentic-base-layer --skill create-hooks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fcreate-hooks\u002FSKILL.md",true,[44,50,54,58,62,66],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Fcommand-vs-prompt.md","REFERENCE","参考文档",6823,"https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fcreate-hooks\u002Freferences\u002Fcommand-vs-prompt.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fexamples.md",12723,"https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fcreate-hooks\u002Freferences\u002Fexamples.md",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fhook-types.md",9094,"https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fcreate-hooks\u002Freferences\u002Fhook-types.md",{"path":59,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Finput-output-schemas.md",9134,"https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fcreate-hooks\u002Freferences\u002Finput-output-schemas.md",{"path":63,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fmatchers.md",7497,"https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fcreate-hooks\u002Freferences\u002Fmatchers.md",{"path":67,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Ftroubleshooting.md",9581,"https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fcreate-hooks\u002Freferences\u002Ftroubleshooting.md",[71,78,85,92,99,106],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M77JNFJ3FH3RRX9PBVZKWDNG","wrap-up","Session-end safe closeout. Updates STATUS, verifies you are on a feature branch (never main), security-greps the diff for secrets, makes a conventional commit (no AI-tool mentions), then asks for approval before pushing and opening a PR. Use this to properly close a development session. Side-effecting and gated on explicit user approval; run explicitly.","https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fwrap-up\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M77JNBV46D0G35X0BPMQ69TY","wake-up","Session-start context sync. Reads project STATUS, git state, and runs a quick health check, then emits a short (\u003C15 line) announcement of where things stand and the single best next step. Use this at the beginning of a working session to re-establish context fast. Does NOT re-read CLAUDE.md (already in the system prompt). Read-only and fast.","https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fwake-up\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M77JN6N1R6M90B9BX5FAQGK7","station","End-of-session composition that chains retrospect → document → cleanup → wrap-up into one closeout pipeline. Use this to fully close a working session — capture learnings, sync docs, prune artifacts, then commit and open a PR — without forgetting a step. Side-effecting; honors each sub-skill's confirmation and approval gates. Run explicitly.","https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fstation\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M77JN0GC9BTN7EZ68PSHRJHK","retrospect","Post-session learning capture. Mines the current conversation for reusable patterns, pitfalls, architecture decisions, performance and security insights, then appends them to the project knowledge registry. Use this at the end of a working session, after a bug is fixed, or after a non-obvious decision is made — so the next session starts smarter. Writes structured entries to .claude\u002Fknowledge\u002FREGISTRY.md.","https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fretrospect\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M77JMWMCKNK9ZSK36X4T86V5","pre-ship","Mandatory pre-commit quality gates — type-check, lint, test, build — run in order and halting on the first failure. Use this BEFORE committing any change that touches application code, so failures are caught while context is still fresh instead of by CI. Surfaces the failing tool's verbatim error and refuses to proceed until gates pass.","https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fpre-ship\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M77JMQT8VRMA5H73X9887PJ4","document","Code-is-truth documentation sync. Detects drift between the codebase and project docs (STATUS.md, CLAUDE.md, README), then applies targeted edits so docs describe what the code actually is. Use this after shipping features, before a release, or when docs feel stale. Secret-scans every doc before writing. Makes small surgical edits, never wholesale rewrites.","https:\u002F\u002Fgithub.com\u002FElad73\u002Fagentic-base-layer\u002Fblob\u002Fmain\u002Fglobal\u002Fskills\u002Fdocument\u002FSKILL.md",[],[]]