Follow Discord
Sweep 24 Nov 2026 · 22:58Z Build v2.1.332 549 read Stable v2.1.325 Latest v2.1.331 Next v2.1.332 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.332 ·

New PreSkillShellCommand hook can block shell commands inside skills

A new PreSkillShellCommand hook runs before each shell command a skill or slash command runs, and can block it or stop the skill

Group of 3 Use it now Notable No documentation found New Features
JSON All of v2.1.332
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
HooksArea: what it touches
New FeaturesKind: in v2.1.332,
What probably matters to youSection of the release

Unclear It is not confirmed whether the hook settings accept PreSkillShellCommand as an event name in this build.

What

Hooks are scripts you set up to run at certain points in Claude Code. A new hook event, PreSkillShellCommand, runs before each shell command that a skill or slash command includes. A skill is a packaged set of instructions Claude can use.

  • The hook's input carries hook_event_name, tool_name, tool_input, command_name, command_source and invoked_by. Hooks are matched on tool_name.
  • Exit code 0 lets the command run, unless the hook's JSON output denies, asks, defers or changes it.
  • Exit code 2 blocks the command and shows the error output to Claude and to you.
  • Other exit codes show the error output to you only, and the command still runs.
  • A blocked command is reported as "[not run: blocked by hook ...]". A hook can also stop the whole skill with a stop reason.
  • A skill can't wait for approval, so a hook that asks for approval, defers, changes the input or changes permissions is treated as a block, with a reason such as "the hook asked for approval, which a skill can't wait for".
  • If the hooks give no answer, the command runs anyway and you are told. Messages include "Not run in" and "Ran anyway in".
  • Only command-type hooks run for this event: "prompt and agent hooks don't run on PreSkillShellCommand".
  • It accepts permission-style decisions like PreToolUse and PermissionRequest.

Why

Users and admins can now check, block or log the shell commands built into skills before they run. A missing answer lets the command through, so a policy hook that must block things needs to answer every time.

Read from
Names in the bundlePreSkillShellCommand
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not confirmed whether the hook settings accept `PreSkillShellCommand` as an event name in this build.

See this entry in the whole of v2.1.332 →

Feedback