Anthropic · Claude Code 2.1.332
Claude Code can block shell commands when loading skills
A new control point can reject a shell command embedded in a skill or custom command before execution. It complements checks on ordinary tool calls.
What changes
The PreSkillShellCommand hook runs after permission checks. It can block a command but cannot approve or modify it. To cover later tool calls as well, the documentation recommends retaining PreToolUse. Hook failure handling must be configured to block by default where required.