scaffold_hook
Installs a selected Claude Code hook from the toolkit's template catalog to automate workflows like auto-fix-on-start and log-bash-commands.
Instructions
Install a Claude Code hook from the toolkit's template catalog. Templates: auto-fix-on-start, block-claude-md-write, log-bash-commands, redact-secrets-on-stop, delete-old-traces, snapshot-pre-compact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes | Template id from list_hooks. | |
| scope | No | Where to install the hook. Default: user. | |
| cwd | No | Working directory used to resolve project/local scopes. |