Claude Code
Claude Code's PreToolUse Hooks Don't See a Skill's Own Commands
Claude Code runs a skill's injected shell commands while the skill loads, and PreToolUse hooks never see them. In 20 runs on 2.1.331 and 2.1.332, a hook that blocks curl let a skill's curl through every time. The new PreSkillShellCommand event in 2.1.332 blocks them, but lets them run when the guard script crashes, times out or is missing.
26 Nov 20267 min read