# [BUG] Slash command namespacing with subdirectories not working as documented
Description
According to the official documentation, slash commands should support namespacing through subdirectories:
Organize commands in subdirectories to create namespaced commands. Structure:<prefix>:<namespace>:<command>For example, a file at.claude/commands/frontend/component.mdcreates the command/project:frontend:component
However, this feature doesn't work in practice. Commands placed in subdirectories are not accessible using the documented namespace syntax.
Steps to Reproduce
- Create a namespaced command structure:
``bash``
mkdir -p ~/.claude/commands/test-namespace
echo "Test namespaced command" > ~/.claude/commands/test-namespace/test-command.md
- Start Claude Code and try to use the command:
````
/user:test-namespace:test-command
- The command is not recognized or available in autocomplete
Expected Behavior
Based on the documentation, the command should be accessible as /user:test-namespace:test-command
Actual Behavior
The namespaced command is not recognized. The autocomplete doesn't show the command, and attempting to use it results in the command not being found.
Environment
- Claude Code version: 1.0.31
- OS: macOS Darwin 24.5.0
- Installation method: npm install -g @anthropic-ai/claude-code
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗