Add /list-slash-commands for workspace command discovery#43166
Open
V0latix wants to merge 4 commits intoanthropics:mainfrom
Open
Add /list-slash-commands for workspace command discovery#43166V0latix wants to merge 4 commits intoanthropics:mainfrom
V0latix wants to merge 4 commits intoanthropics:mainfrom
Conversation
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.
Context
Users currently need to know slash command names in advance. This change adds an explicit discovery command for commands that are actually introspectable from this repository/workspace.
Problem
There was no dedicated command to list currently detectable slash commands in the active workspace. This hurts discoverability, especially for project and plugin commands.
Solution
/list-slash-commands.scripts/list-slash-commands.shas a single collection/normalization point..claude/commands(Project)plugins/*/commands(Plugins)Project, thenPlugins)name,source,description,usage(fromargument-hint), andoriginSome command sources could not be introspected.python3withjqfallback)Scope and honesty
This command reports detected slash commands in current workspace. It does not claim to list all runtime Claude Code commands (for example built-ins or non-introspectable MCP-backed runtime commands).
Tests
Added
scripts/test-list-slash-commands.shcovering:Run:
Documentation
Updated README with a short
Local slash command discoverysection documenting both supported sources and explicit non-guarantees.