permission-hook
Installation
SKILL.md
Set up the Claude Code permission hook that uses Haiku to auto-approve safe tool invocations based on a per-repo security policy.
Authentication: The hook automatically reuses your Claude Code login (OAuth).
Steps
Step 1 — Install hook script into project
The hook script is distributed with this skill. Copy it into the target project so it works without any global dependencies.
- Read the hook source from
~/.claude/skills/permission-hook/permission-hook.ts. - Create
.claude/hooks/in the current project root if it doesn't exist. - Write the contents to
.claude/hooks/permission-hook.ts— always overwrite to ensure the latest version. - Tell the user: "Hook script installed/updated at
.claude/hooks/permission-hook.ts."
Step 2 — Create repo security policy
Related skills