vinta/update-allowed-tools
Use when creating or editing a skill that uses Bash commands, external tools, or skill invocations and the allowed-tools frontmatter may be incomplete
npx skills add https://github.com/vinta/hal-9000 --skill update-allowed-tools
Invoking this skill IS the request. If the user message looks empty, that is normal and expected, the task is fully specified here. Never ask what to do.
Analyzes a skill's full content, SKILL.md and any sibling files in the same directory, to find tools it references or requires, then compares against the skill's allowed-tools frontmatter to find missing entries.
/update-allowed-tools <skill name>
/update-allowed-tools @path/to/SKILL.md
/skills//<name>/SKILL.md). If there is no argument at all, run git status and target the most recently modified skill file in the working tree.allowed-tools: in the frontmatter.Read, Write, Edit, Bash, WebFetch, WebSearch, Task, AskUserQuestion, Skill, etc.git diff, git commit, make, npm, docker, python, curl, etc.Bash(<command>:*) (e.g., git stash push needs Bash(git stash:*))/tmp/ needs Read(//tmp/**))commit, Use the commit skill, Skill(commit). The required allowed-tool format is Skill(<name>) (e.g., commit needs Skill(commit))allowed-tools. Rules:Glob, Grep, and Read are permission-free within the project directory. Only add read rules for files outside the project (e.g., Read(//tmp/**)).Write and Edit prompt for approval by default, inside the project too. allowed-tools grants permission rather than restricting tools, so add entries scoped to the paths the skill is meant to modify (e.g., Edit(CLAUDE.md), Write(~/.config/**)).Bash commands always need explicit Bash(<command>:*) entries.Bash(git stash:*) covers git stash push).WebSearch matches WebSearch).allowed-tools list in the skill's YAML frontmatter using the Edit tool. Then report what was added.Take vinta/update-allowed-tools from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.