claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Custom slash commands docs are incorrect

Open moltar opened this issue 5 months ago • 1 comments

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.

moltar avatar Jun 24 '25 16:06 moltar

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.

AnhQuanTrl avatar Jun 25 '25 03:06 AnhQuanTrl

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.

dicksontsai avatar Aug 15 '25 15:08 dicksontsai

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.

github-actions[bot] avatar Aug 23 '25 14:08 github-actions[bot]