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.

  1. Read the hook source from ~/.claude/skills/permission-hook/permission-hook.ts.
  2. Create .claude/hooks/ in the current project root if it doesn't exist.
  3. Write the contents to .claude/hooks/permission-hook.ts — always overwrite to ensure the latest version.
  4. Tell the user: "Hook script installed/updated at .claude/hooks/permission-hook.ts."

Step 2 — Create repo security policy

Related skills
Installs
1
GitHub Stars
3
First Seen
Mar 3, 2026