fix: add missing allowed-tools to 5 commands that need tool access#185
Open
xiaolai wants to merge 1 commit intoComposioHQ:masterfrom
Open
fix: add missing allowed-tools to 5 commands that need tool access#185xiaolai wants to merge 1 commit intoComposioHQ:masterfrom
xiaolai wants to merge 1 commit intoComposioHQ:masterfrom
Conversation
Five commands declared no allowed-tools in their frontmatter, meaning Claude Code would deny all tool calls within those commands. Each command describes operations that require specific tools to function: - pr-review: reads git diff and gh PR data — needs Bash(git:*), Bash(gh:*), Read, Glob, Grep - commit: runs linting/build pre-hooks and git commit — needs Bash(git:*), Bash(npm:*), Bash(yarn:*), Bash(pnpm:*) - create-pr: creates branch, formats with Biome, pushes, opens PR — needs Bash(git:*), Bash(gh:*), Bash(biome:*), Read, Glob - documentation-generator: reads source files to generate docs — needs Read, Write, Edit, Glob, Grep - bug-fix: creates GH issue, checks out branch, commits, pushes, opens PR — needs Bash(git:*), Bash(gh:*), Read, Write, Edit, Glob, Grep Co-Authored-By: Claude Code <noreply@anthropic.com>
This was referenced Apr 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Five commands declared no
allowed-toolsin their frontmatter. In Claude Code, a command with noallowed-toolscannot make any tool calls — all tool use is denied. This means each of these commands is broken: their described workflows silently fail at the first tool call.pr-review/commands/pr-review.mdBash(git:*),Bash(gh:*),Read,Glob,Grepcommit/commands/commit.mdBash(git:*),Bash(npm:*),Bash(yarn:*),Bash(pnpm:*)create-pr/commands/create-pr.mdBash(git:*),Bash(gh:*),Bash(biome:*),Read,Globdocumentation-generator/commands/documentation-generator.mdRead,Write,Edit,Glob,Grepbug-fix/commands/bug-fix.mdBash(git:*),Bash(gh:*),Read,Write,Edit,Glob,GrepFix
Added
allowed-toolsto each command's frontmatter, scoped to the tools their body actually requires:The tool lists are minimal — each entry is justified by a concrete operation described in the command body.
Impact
Without this fix, users invoking any of these commands get silent failures: the command body runs but all tool calls are rejected. With
allowed-toolsdeclared, the permissions contract is explicit and the commands can actually perform their described workflows.