[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F67YJ46PMEE4YETPHMPS1E":3,"skill-same:01M7F67YJ46PMEE4YETPHMPS1E":44},{"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},"01M7F67YJ46PMEE4YETPHMPS1E","settings-hooks",null,"Construct overlay on the official hook-development skill. Current hook semantics (exec form, `if`, exit codes, JSON output, limits, timeouts, onFailure, permission precedence), corrections where hook-development is out of date, and how construct's hooks\u002Fscripts\u002F*.mjs use them. Use together with hook-development before adding, changing, or debugging a construct hook, gate, or guard.","carsimax\u002Fconstruct","carsimax","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42248429?v=4","01M7F6660B38RMTKRYJ2DQM39T","Maximiliano Carsi","01M7F6661MDPBN2351WPZNV6CT",1,"MIT","https:\u002F\u002Fgithub.com\u002Fcarsimax\u002Fconstruct\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsettings-hooks\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: settings-hooks\ndescription: Construct overlay on the official hook-development skill. Current hook semantics (exec form, `if`, exit codes, JSON output, limits, timeouts, onFailure, permission precedence), corrections where hook-development is out of date, and how construct's hooks\u002Fscripts\u002F*.mjs use them. Use together with hook-development before adding, changing, or debugging a construct hook, gate, or guard.\n---\n\n# Settings hooks in construct\n\n**Load the official `hook-development` skill first** (anthropics\u002Fclaude-code plugin-dev) for how to write a hook, its patterns, and its scripts (`scripts\u002Fvalidate-hook-schema.sh`, `scripts\u002Ftest-hook.sh`, `scripts\u002Fhook-linter.sh`). This file adds what it lacks and corrects what is stale. Order of authority: the live docs, then this file, then `hook-development`.\n\nSources (read 2026-10-23): \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks.md>, \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fpermissions.md>. Mods (`hooks\u002Fregister.js`) are a different mechanism: see the `mods` skill.\n\n## Corrections to hook-development\n\n| hook-development says | Current docs |\n| :- | :- |\n| `UserPromptSubmit` input `user_prompt`; Stop input `reason`; PostToolUse `tool_result` | `prompt`; Stop has `stop_hook_active`, `last_assistant_message`; PostToolUse has `tool_response` |\n| `permission_mode: \"ask\\|allow\"` | `default`, `plan`, `acceptEdits`, `auto`, `dontAsk`, `bypassPermissions` |\n| exit 0 \"stdout shown in transcript\" | stdout becomes context only on `UserPromptSubmit`, `UserPromptExpansion`, `SessionStart`, `PostModelSwitch`; elsewhere debug log |\n| `suppressOutput` hides output | has no effect |\n| `systemMessage` is shown to Claude | shown to the user as a warning |\n| `\"command\": \"bash ${CLAUDE_PLUGIN_ROOT}\u002F...\"` unquoted | shell form must double-quote the path; construct uses exec form (`command: \"node\"`, `args: [...]`) |\n| command timeout example 60, implied default | default 600 s; 30 s on `UserPromptSubmit` |\n| event list ends at `Notification` | many more: `SubagentStart`, `PostToolUseFailure`, `PostToolBatch`, `PermissionRequest`, `PostCompact`, `InstructionsLoaded`, `ConfigChange`, `FileChanged`, `WorktreeCreate`, `PreModelSwitch`, ... |\n| no `if`, `onFailure`, `args`, output cap | all exist; see below |\n\n## Rules that bite construct\n\n- **Exit 2 blocks; anything else non-zero does not.** Exit 1 (an uncaught throw) is a non-blocking `hook error` and the action proceeds. That is why our hooks \"fail open\". `onFailure: \"block\"` (v2.1.295+) turns failure\u002Ftimeout into a block, but has no effect on `Stop`, `SubagentStop`, `TaskCompleted`, `TeammateIdle`, or async hooks.\n- **Valid JSON with a non-0\u002F2 exit counts as success** and its fields decide (unless `onFailure: \"block\"`).\n- **stdout is JSON only if it is exactly one JSON object** with nothing but whitespace around it. A stray `console.log` breaks the decision.\n- **stdout becomes Claude's context only** on `UserPromptSubmit`, `UserPromptExpansion`, `SessionStart`, `PostModelSwitch`; elsewhere it goes to the debug log. Stderr of an exit-0 hook is never seen by Claude.\n- **10,000-character cap** on `additionalContext`, `systemMessage`, `initialUserMessage`, and plain stdout; not raisable. Over it, the text is replaced by a file path plus a 2,000-character preview. Our contract budgets (8,000 session) sit under this.\n- `\u003Csystem-reminder>` inside `additionalContext` is escaped (`\u003C` → `&lt;`).\n- `suppressOutput` has **no effect**.\n- **Timeout = no decision.** Default 600 s for command hooks; 30 s on `UserPromptSubmit`, `PreModelSwitch`, `PostModelSwitch`; 10 s on `MessageDisplay`. A `PreToolUse` timeout does not block (unless `onFailure: \"block\"`); a `UserPromptSubmit` timeout proceeds without context.\n- **All matching hooks run in parallel.** Never assume ordering between two construct hooks on the same event; share state through files (the review store), not sequence.\n- **Plugin hooks also run inside subagents.** Check `agent_id`\u002F`agent_type` in the input to tell the main thread from a subagent.\n- **Plugin `UserPromptSubmit`, `Stop`, `SubagentStop`, `TaskCompleted`**: exit 2 with empty stdout and stderr containing \"No such file or directory\" is treated as non-blocking (a missing script after uninstall does not wedge the session).\n\n## Permission precedence (gates)\n\n- Deny and ask **rules** still apply after a hook's `\"allow\"`, including managed deny rules. `updatedInput` is re-evaluated against rules.\n- **Exit 2 stops the call before rules are evaluated**, so it blocks even when an allow rule matches.\n- Across hooks: `deny` > `defer` > `ask` > `allow`.\n- `permissionDecisionReason`: shown to the user for `ask`, to Claude for `deny`, debug log only for `allow`\u002F`defer`.\n- `\"ask\"` prompts carry a source label (`[plugin:\u003Cname>]`) and force a prompt even in auto mode.\n- `\"defer\"` works only in `-p` with a single tool call; ignored with a warning interactively.\n- In plan mode a `PreToolUse` `\"allow\"` has no effect on a non-read-only call (except `ExitPlanMode`).\n- A mod's `tool.check` answers **after** `PreToolUse` hooks. With managed settings or a Team\u002FEnterprise login, a mod approval cannot unblock a hook block; without them it can. Our gates are discipline, not a security boundary.\n\n## Events construct uses\n\n| Event | What it can do | Notes |\n| :- | :- | :- |\n| `SessionStart` | context only (`additionalContext`, plain stdout, `sessionTitle`, `watchPaths`, `reloadSkills`) | matcher `startup\\|resume\\|clear\\|compact\\|fork`; exit 2 shows stderr to user only; first response waits for it |\n| `UserPromptSubmit` | block (`decision:\"block\"`, `reason` shown to user, not context), `additionalContext`, `suppressOriginalPrompt` | also fires for `\u002Floop`, scheduled tasks, background subagents reporting back, cross-session messages; cannot replace the prompt |\n| `PreToolUse` | `permissionDecision`, `updatedInput` (replaces the whole input), `additionalContext`; exit 2 blocks | not fired for `@` mentions |\n| `PostToolUseFailure` | `additionalContext`; exit 2 shows stderr to Claude | input `error`, `is_interrupt`, `duration_ms`; Bash error first line is `Exit code N`; not fired for validation rejections or permission denials |\n| `SubagentStart` | `additionalContext` for the subagent; cannot block | matcher is the agent type; plugin agents are `construct:\u003Cname>`, so anchor: `^construct:review-risk$` |\n| `SubagentStop` | same as `Stop`; `block` sends `reason` to the subagent as its next instruction | input `agent_id`, `agent_type`, `agent_transcript_path`, `last_assistant_message`; also fires for internal agents with `agent_type: \"\"`, which a named matcher does not match |\n| `Stop` | `decision:\"block\"` (needs `reason`) or `additionalContext` | not run on user interrupt; input `stop_hook_active`, `last_assistant_message`, `background_tasks`, `session_crons` |\n\n`stop_hook_active` is true while Claude continues because of a stop hook. After **8 consecutive continuations** the next block is overridden (resets when Claude calls a tool; `CLAUDE_CODE_STOP_HOOK_BLOCK_CAP` raises it). The Risk-line gate blocks once per turn; keep it that way.\n\nUnused events worth knowing before adding prompt text: `PostToolUse` (block\u002F`additionalContext`\u002F`updatedToolOutput`), `PostToolBatch` (once per parallel batch), `PermissionRequest`, `PreCompact`\u002F`PostCompact` (`compact_summary`), `InstructionsLoaded`, `ConfigChange`, `FileChanged`, `CwdChanged`, `WorktreeCreate`\u002F`WorktreeRemove`, `TaskCreated`\u002F`TaskCompleted`, `PreModelSwitch` (v2.1.251+).\n\n## Matchers and `if`\n\n- `\"*\"`, `\"\"`, or omitted matches all. Only letters, digits, `_`, `-`, spaces, `,`, `|` → exact names. Anything else is an **unanchored** JS regex: `Edit.*` also matches `NotebookEdit`; write `^Edit$`.\n- A matcher on an event without matcher support is silently ignored.\n- Plugin MCP tools: `mcp__plugin_\u003Cplugin>_\u003Cserver>__\u003Ctool>`; a whole server needs `.*`.\n- `if` takes one permission rule (`\"Bash(git push*)\"`, `\"Edit(**\u002Fsrc\u002F**)\"`), only on `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, `PermissionDenied`. **On any other event a hook with `if` never runs.** No `&&`\u002F`||`. Bash matching checks each subcommand, including `$()` and backticks, and runs the hook anyway when it cannot tell. It is a cheap pre-filter; the script must still parse the command (`shell-words.mjs`).\n\n## Input fields\n\nCommon: `session_id`, `prompt_id`, `transcript_path` (written async, may lag; prefer `last_assistant_message`), `cwd` (follows worktrees and `cd`), `permission_mode`, `effort.level`, `hook_event_name`, `agent_id`\u002F`agent_type` inside subagents. Tool events: `tool_name`, `tool_input`, `tool_use_id`. `file_path` is always absolute.\n\n`tool_input`: Bash `command`, `description`, `timeout`, `run_in_background`; Write `file_path`, `content`; Edit `file_path`, `old_string`, `new_string`, `replace_all`; Agent `prompt`, `description`, `subagent_type`, `model`.\n\n## Plugin hooks and environment\n\n- Exec form (`command` + `args`, what our tests require): spawned directly, no shell, placeholders substituted as plain strings. Use `node` plus the script path (Windows `.cmd` shims cannot be spawned).\n- `${user_config.*}` is substituted **only in exec form**; in shell form use `$CLAUDE_PLUGIN_OPTION_\u003CKEY>`.\n- `${CLAUDE_PROJECT_DIR}` is the session-start root and does **not** follow worktrees or `\u002Fcd`; use the input `cwd`. `${CLAUDE_PLUGIN_ROOT}`, `${CLAUDE_PLUGIN_DATA}` are exported too. There is no `$CLAUDE_MODEL`.\n- Identical handlers across settings files are deduplicated; a plugin's copy stays separate.\n- If a hook starts a background process, print the decision first and redirect the process output, or the call fails with `refusing to honor the suspect capture`.\n\n## What disables hooks\n\n- `disableAllHooks: true` (settings precedence applies: a project `false` overrides a user `true`; `--settings` wins), `--bare` (no project hooks), `--safe-mode`.\n- Managed `allowManagedHooksOnly` blocks plugin hooks unless the plugin is force-enabled in managed `enabledPlugins`.\n- Interactive sessions hold settings hooks until the folder is trusted; `-p` and SDK treat it as trusted.\n\n## Debugging\n\n`CLAUDE_CODE_DEBUG_LOG_LEVEL=verbose`, `\u002Fhooks` to see what loaded, and the \"Debug your configuration\" page: \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fdebug-your-config.md>.\n","# Settings hooks in construct\n\n**Load the official `hook-development` skill first** (anthropics\u002Fclaude-code plugin-dev) for how to write a hook, its patterns, and its scripts (`scripts\u002Fvalidate-hook-schema.sh`, `scripts\u002Ftest-hook.sh`, `scripts\u002Fhook-linter.sh`). This file adds what it lacks and corrects what is stale. Order of authority: the live docs, then this file, then `hook-development`.\n\nSources (read 2026-10-23): \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fhooks.md>, \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fpermissions.md>. Mods (`hooks\u002Fregister.js`) are a different mechanism: see the `mods` skill.\n\n## Corrections to hook-development\n\n| hook-development says | Current docs |\n| :- | :- |\n| `UserPromptSubmit` input `user_prompt`; Stop input `reason`; PostToolUse `tool_result` | `prompt`; Stop has `stop_hook_active`, `last_assistant_message`; PostToolUse has `tool_response` |\n| `permission_mode: \"ask\\|allow\"` | `default`, `plan`, `acceptEdits`, `auto`, `dontAsk`, `bypassPermissions` |\n| exit 0 \"stdout shown in transcript\" | stdout becomes context only on `UserPromptSubmit`, `UserPromptExpansion`, `SessionStart`, `PostModelSwitch`; elsewhere debug log |\n| `suppressOutput` hides output | has no effect |\n| `systemMessage` is shown to Claude | shown to the user as a warning |\n| `\"command\": \"bash ${CLAUDE_PLUGIN_ROOT}\u002F...\"` unquoted | shell form must double-quote the path; construct uses exec form (`command: \"node\"`, `args: [...]`) |\n| command timeout example 60, implied default | default 600 s; 30 s on `UserPromptSubmit` |\n| event list ends at `Notification` | many more: `SubagentStart`, `PostToolUseFailure`, `PostToolBatch`, `PermissionRequest`, `PostCompact`, `InstructionsLoaded`, `ConfigChange`, `FileChanged`, `WorktreeCreate`, `PreModelSwitch`, ... |\n| no `if`, `onFailure`, `args`, output cap | all exist; see below |\n\n## Rules that bite construct\n\n- **Exit 2 blocks; anything else non-zero does not.** Exit 1 (an uncaught throw) is a non-blocking `hook error` and the action proceeds. That is why our hooks \"fail open\". `onFailure: \"block\"` (v2.1.295+) turns failure\u002Ftimeout into a block, but has no effect on `Stop`, `SubagentStop`, `TaskCompleted`, `TeammateIdle`, or async hooks.\n- **Valid JSON with a non-0\u002F2 exit counts as success** and its fields decide (unless `onFailure: \"block\"`).\n- **stdout is JSON only if it is exactly one JSON object** with nothing but whitespace around it. A stray `console.log` breaks the decision.\n- **stdout becomes Claude's context only** on `UserPromptSubmit`, `UserPromptExpansion`, `SessionStart`, `PostModelSwitch`; elsewhere it goes to the debug log. Stderr of an exit-0 hook is never seen by Claude.\n- **10,000-character cap** on `additionalContext`, `systemMessage`, `initialUserMessage`, and plain stdout; not raisable. Over it, the text is replaced by a file path plus a 2,000-character preview. Our contract budgets (8,000 session) sit under this.\n- `\u003Csystem-reminder>` inside `additionalContext` is escaped (`\u003C` → `&lt;`).\n- `suppressOutput` has **no effect**.\n- **Timeout = no decision.** Default 600 s for command hooks; 30 s on `UserPromptSubmit`, `PreModelSwitch`, `PostModelSwitch`; 10 s on `MessageDisplay`. A `PreToolUse` timeout does not block (unless `onFailure: \"block\"`); a `UserPromptSubmit` timeout proceeds without context.\n- **All matching hooks run in parallel.** Never assume ordering between two construct hooks on the same event; share state through files (the review store), not sequence.\n- **Plugin hooks also run inside subagents.** Check `agent_id`\u002F`agent_type` in the input to tell the main thread from a subagent.\n- **Plugin `UserPromptSubmit`, `Stop`, `SubagentStop`, `TaskCompleted`**: exit 2 with empty stdout and stderr containing \"No such file or directory\" is treated as non-blocking (a missing script after uninstall does not wedge the session).\n\n## Permission precedence (gates)\n\n- Deny and ask **rules** still apply after a hook's `\"allow\"`, including managed deny rules. `updatedInput` is re-evaluated against rules.\n- **Exit 2 stops the call before rules are evaluated**, so it blocks even when an allow rule matches.\n- Across hooks: `deny` > `defer` > `ask` > `allow`.\n- `permissionDecisionReason`: shown to the user for `ask`, to Claude for `deny`, debug log only for `allow`\u002F`defer`.\n- `\"ask\"` prompts carry a source label (`[plugin:\u003Cname>]`) and force a prompt even in auto mode.\n- `\"defer\"` works only in `-p` with a single tool call; ignored with a warning interactively.\n- In plan mode a `PreToolUse` `\"allow\"` has no effect on a non-read-only call (except `ExitPlanMode`).\n- A mod's `tool.check` answers **after** `PreToolUse` hooks. With managed settings or a Team\u002FEnterprise login, a mod approval cannot unblock a hook block; without them it can. Our gates are discipline, not a security boundary.\n\n## Events construct uses\n\n| Event | What it can do | Notes |\n| :- | :- | :- |\n| `SessionStart` | context only (`additionalContext`, plain stdout, `sessionTitle`, `watchPaths`, `reloadSkills`) | matcher `startup\\|resume\\|clear\\|compact\\|fork`; exit 2 shows stderr to user only; first response waits for it |\n| `UserPromptSubmit` | block (`decision:\"block\"`, `reason` shown to user, not context), `additionalContext`, `suppressOriginalPrompt` | also fires for `\u002Floop`, scheduled tasks, background subagents reporting back, cross-session messages; cannot replace the prompt |\n| `PreToolUse` | `permissionDecision`, `updatedInput` (replaces the whole input), `additionalContext`; exit 2 blocks | not fired for `@` mentions |\n| `PostToolUseFailure` | `additionalContext`; exit 2 shows stderr to Claude | input `error`, `is_interrupt`, `duration_ms`; Bash error first line is `Exit code N`; not fired for validation rejections or permission denials |\n| `SubagentStart` | `additionalContext` for the subagent; cannot block | matcher is the agent type; plugin agents are `construct:\u003Cname>`, so anchor: `^construct:review-risk$` |\n| `SubagentStop` | same as `Stop`; `block` sends `reason` to the subagent as its next instruction | input `agent_id`, `agent_type`, `agent_transcript_path`, `last_assistant_message`; also fires for internal agents with `agent_type: \"\"`, which a named matcher does not match |\n| `Stop` | `decision:\"block\"` (needs `reason`) or `additionalContext` | not run on user interrupt; input `stop_hook_active`, `last_assistant_message`, `background_tasks`, `session_crons` |\n\n`stop_hook_active` is true while Claude continues because of a stop hook. After **8 consecutive continuations** the next block is overridden (resets when Claude calls a tool; `CLAUDE_CODE_STOP_HOOK_BLOCK_CAP` raises it). The Risk-line gate blocks once per turn; keep it that way.\n\nUnused events worth knowing before adding prompt text: `PostToolUse` (block\u002F`additionalContext`\u002F`updatedToolOutput`), `PostToolBatch` (once per parallel batch), `PermissionRequest`, `PreCompact`\u002F`PostCompact` (`compact_summary`), `InstructionsLoaded`, `ConfigChange`, `FileChanged`, `CwdChanged`, `WorktreeCreate`\u002F`WorktreeRemove`, `TaskCreated`\u002F`TaskCompleted`, `PreModelSwitch` (v2.1.251+).\n\n## Matchers and `if`\n\n- `\"*\"`, `\"\"`, or omitted matches all. Only letters, digits, `_`, `-`, spaces, `,`, `|` → exact names. Anything else is an **unanchored** JS regex: `Edit.*` also matches `NotebookEdit`; write `^Edit$`.\n- A matcher on an event without matcher support is silently ignored.\n- Plugin MCP tools: `mcp__plugin_\u003Cplugin>_\u003Cserver>__\u003Ctool>`; a whole server needs `.*`.\n- `if` takes one permission rule (`\"Bash(git push*)\"`, `\"Edit(**\u002Fsrc\u002F**)\"`), only on `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, `PermissionDenied`. **On any other event a hook with `if` never runs.** No `&&`\u002F`||`. Bash matching checks each subcommand, including `$()` and backticks, and runs the hook anyway when it cannot tell. It is a cheap pre-filter; the script must still parse the command (`shell-words.mjs`).\n\n## Input fields\n\nCommon: `session_id`, `prompt_id`, `transcript_path` (written async, may lag; prefer `last_assistant_message`), `cwd` (follows worktrees and `cd`), `permission_mode`, `effort.level`, `hook_event_name`, `agent_id`\u002F`agent_type` inside subagents. Tool events: `tool_name`, `tool_input`, `tool_use_id`. `file_path` is always absolute.\n\n`tool_input`: Bash `command`, `description`, `timeout`, `run_in_background`; Write `file_path`, `content`; Edit `file_path`, `old_string`, `new_string`, `replace_all`; Agent `prompt`, `description`, `subagent_type`, `model`.\n\n## Plugin hooks and environment\n\n- Exec form (`command` + `args`, what our tests require): spawned directly, no shell, placeholders substituted as plain strings. Use `node` plus the script path (Windows `.cmd` shims cannot be spawned).\n- `${user_config.*}` is substituted **only in exec form**; in shell form use `$CLAUDE_PLUGIN_OPTION_\u003CKEY>`.\n- `${CLAUDE_PROJECT_DIR}` is the session-start root and does **not** follow worktrees or `\u002Fcd`; use the input `cwd`. `${CLAUDE_PLUGIN_ROOT}`, `${CLAUDE_PLUGIN_DATA}` are exported too. There is no `$CLAUDE_MODEL`.\n- Identical handlers across settings files are deduplicated; a plugin's copy stays separate.\n- If a hook starts a background process, print the decision first and redirect the process output, or the call fails with `refusing to honor the suspect capture`.\n\n## What disables hooks\n\n- `disableAllHooks: true` (settings precedence applies: a project `false` overrides a user `true`; `--settings` wins), `--bare` (no project hooks), `--safe-mode`.\n- Managed `allowManagedHooksOnly` blocks plugin hooks unless the plugin is force-enabled in managed `enabledPlugins`.\n- Interactive sessions hold settings hooks until the folder is trusted; `-p` and SDK treat it as trusted.\n\n## Debugging\n\n`CLAUDE_CODE_DEBUG_LOG_LEVEL=verbose`, `\u002Fhooks` to see what loaded, and the \"Debug your configuration\" page: \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fdebug-your-config.md>.\n",{"name":5,"description":7},"main","22badcb55851e82eb81a14d18204460bd3881d4a",".claude\u002Fskills\u002Fsettings-hooks","https:\u002F\u002Fgithub.com\u002Fcarsimax\u002Fconstruct","https:\u002F\u002Fgithub.com\u002Fcarsimax","2026-10-30 09:50:40",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add carsimax\u002Fconstruct --skill settings-hooks",{"tool":36,"command":37},"bunx","bunx skills add carsimax\u002Fconstruct --skill settings-hooks",{"tool":39,"command":40},"pnpm","pnpm dlx skills add carsimax\u002Fconstruct --skill settings-hooks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcarsimax\u002Fconstruct\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsettings-hooks\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M7F69PT3SMFA4AEETFGW0WFH","workflow","The ADD protocol for every implementation request, feature plan, resume, task sizing, and the closing Risk line.","https:\u002F\u002Fgithub.com\u002Fcarsimax\u002Fconstruct\u002Fblob\u002Fmain\u002Fplugins\u002Fconstruct\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7F69J7R3HG57HMVY7QNQNX8","sources","Ground version-dependent code in official documentation. Use when you name a specific uncertainty about a library or framework API, a version-dependent pattern, or a deprecation. Skip when the repository already shows the pattern.","https:\u002F\u002Fgithub.com\u002Fcarsimax\u002Fconstruct\u002Fblob\u002Fmain\u002Fplugins\u002Fconstruct\u002Fskills\u002Fsources\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7F69CZ1YC0WHK90EV82CB1M","review","Mandatory outside review of high-risk work units, by lens agents the hooks feed and record, plus the dual blind review on request. Trigger: a unit whose Risk names an item is ready to publish, the publication gate denied a push, PR, or release, or the user asks for a review, a dual review, or an adversarial review.","https:\u002F\u002Fgithub.com\u002Fcarsimax\u002Fconstruct\u002Fblob\u002Fmain\u002Fplugins\u002Fconstruct\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7F699XTX8F3PNZB0P86XH44","migration","Plan and verify risky migrations and removals. Use when changing a schema or stored data, removing or renaming a public API, flag, config format, or export, replacing a system, or when the task's Risk names item 1 or 3.","https:\u002F\u002Fgithub.com\u002Fcarsimax\u002Fconstruct\u002Fblob\u002Fmain\u002Fplugins\u002Fconstruct\u002Fskills\u002Fmigration\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7F6953SF387B7GX75V6MXE0","delivery","Plan commits, branches, and pull requests as reviewable units. Use when deciding commit contents, opening or preparing a PR, splitting large work into sub-branches of a feature branch, or preparing a release.","https:\u002F\u002Fgithub.com\u002Fcarsimax\u002Fconstruct\u002Fblob\u002Fmain\u002Fplugins\u002Fconstruct\u002Fskills\u002Fdelivery\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7F68YK43AQ6BM0KQPN0BVP4","delegation","When and how the ADD orchestrator delegates to construct agents: role mapping, allowed edit surfaces, parallel writers, verifier timing, handoff prompts, and relaying a subagent's blocking question or choice menu. Trigger: deciding to delegate, launching an agent, writing a handoff, or a subagent or tool returns a question, menu, or consent request.","https:\u002F\u002Fgithub.com\u002Fcarsimax\u002Fconstruct\u002Fblob\u002Fmain\u002Fplugins\u002Fconstruct\u002Fskills\u002Fdelegation\u002FSKILL.md",[],[]]