Show custom slash commands from .claude/commands/*.md in the slash menu#205
Open
leonidasbarkas98-cpu wants to merge 2 commits into
Open
Show custom slash commands from .claude/commands/*.md in the slash menu#205leonidasbarkas98-cpu wants to merge 2 commits into
leonidasbarkas98-cpu wants to merge 2 commits into
Conversation
Scan workspace and global .claude/commands/ directories when the slash commands modal opens and render matches as a dynamic section, using frontmatter description if present; clicking inserts "/name " into the input without sending. Workspace commands take precedence over global ones on name collisions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…pimenta#11) Set the command name via dataset assignment instead of interpolating it into an HTML attribute string, since escapeHtml does not escape double quotes and a crafted filename could break out of data-command and inject handlers. Also decode command file contents fully before truncating the frontmatter preview, avoiding a corrupted trailing multi-byte character. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
The "/" popup was a static list. This scans workspace and home
.claude/commands/(top level, missing dirs tolerated), parses the frontmatterdescription:, dedupes with workspace precedence, and shows a "Project & User Commands" section. Clicking inserts/nameinto the input.Fixes #135
Also covers the custom-commands part of #70.
🤖 Generated with Claude Code