Custom slash commands docs are incorrect

Status Fixed / completed
Maintainer reply ✓ Yes — dicksontsai
Activity 3 comments · opened Jun 24, 2025 · closed Aug 15, 2025
💡 Likely answer: A maintainer (dicksontsai, collaborator) responded on this thread — see the highlighted reply below.

Docs: https://docs.anthropic.com/en/docs/claude-code/slash-commands#custom-slash-commands

!Image

The documentation states that commands will be prefixed and will be in a namespace.

I have a command in:

.claude/commands/foo/commit.md

And in the TUI, it shows up as:

  /commit             Make a git commit (project:foo)

So, as you can see, there's no actual namespacing of the command itself.

But it does mention the project:foo in the description for some reason.

View original on GitHub ↗

3 Comments

AnhQuanTrl · 1 year ago

I think there was some changes made to the slash commands to make them easier to use. But the Claude Code team have not updated the doc yet.

dicksontsai collaborator · 1 year ago

Late reply, but we restored namespacing in v1.0.51. The documentation in https://docs.anthropic.com/en/docs/claude-code/slash-commands#namespacing should be up-to-date.

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.