allowed-tools stays narrow

allowed-tools pre-approves unrestricted Bash (or Shell) or every tool.

WarningFails on 188 of 4462 indexed skills
share

Pre-approved tools run without asking the user

The allowed-tools field lets a skill pre-approve tools, so the agent can use them without asking you each time. That's convenient for a skill that runs git log a dozen times. In Claude Code the approval lasts for the turn that invokes the skill and clears when you send your next message.

Listing Bash on its own approves every shell command for that turn: deleting files, pushing code, calling the network. Claude Code's docs warn that a skill can grant itself broad access this way, and ask you to review the field in any skill checked into a repository before you run Claude Code there.

"A skill can grant itself broad tool access, so review the allowed-tools of skills checked into a repository before you run Claude Code there."
Claude Code: pre-approve tools for a skill
"Are permissions limited to what the skill or plugin actually needs?"
NVIDIA: a trust pipeline for agent skills, review questions

Scope Bash to the commands the skill needs

List the command patterns the skill needs instead of the whole tool.

This fails:

allowed-tools: Bash Read

This passes:

allowed-tools: Bash(git diff *) Bash(git log *) Read