fix: add allowed-tools frontmatter so AskUserQuestion works in Claude Code#66
Open
MageByte-Zero wants to merge 1 commit into
Open
fix: add allowed-tools frontmatter so AskUserQuestion works in Claude Code#66MageByte-Zero wants to merge 1 commit into
MageByte-Zero wants to merge 1 commit into
Conversation
… Code In newer versions of Claude Code, tools like AskUserQuestion are not available to skills unless explicitly listed in the allowed-tools frontmatter field. Without it, the skill cannot prompt users with multiple-choice questions during the presentation design phase. Differs from PR zarazhangrui#37: that PR only clarifies text — this PR adds the required YAML frontmatter that Claude Code enforces at the runtime level.
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.
Problem
In newer versions of Claude Code, skills cannot use tools like
AskUserQuestionunless they are explicitly declared in theallowed-toolsfrontmatter field. Without this, the skill runs in a restricted environment where interactive questions silently fail.This means the presentation design phase — where the skill asks users to choose themes, color schemes, and visual styles — stops working entirely.
Fix
Add one line to the
SKILL.mdfrontmatter:Relation to PR #37
PR #37 (open) addresses the same symptom by clarifying text references in the skill body. This PR takes the correct approach: adding the YAML frontmatter that Claude Code enforces at the runtime permission level. Both could coexist but this fix addresses the root cause.
Testing
Tested locally: after adding this frontmatter,
AskUserQuestioninvocations in the skill correctly present multiple-choice prompts to the user. Without it, the tool calls are silently skipped.