Skill takes precedence over slash command when both have the same name
Resolved 💬 3 comments Opened Dec 22, 2025 by rridngs Closed Feb 28, 2026
Description
When a global slash command and a global skill share the same name, invoking the slash command with /name finds the skill instead of the command.
Steps to Reproduce
- Create a global slash command:
~/.claude/commands/code-review.md - Create a global skill:
~/.claude/skills/code-review/SKILL.md - Type
/code-reviewin Claude Code
Expected Behavior
/code-review should invoke the slash command since:
- The
/prefix is the explicit invocation syntax for slash commands - Skills are meant to be model-invoked (Claude decides when to use them)
- Commands and skills are stored in separate directories
Actual Behavior
Claude finds the skill instead and responds with a message indicating that only Claude can invoke skills (not the user). The slash command is never reached.
Workaround
Rename either the command or the skill so they don't share the same name.
Environment
- Claude Code version: 2.0.75
- Model: claude-opus-4-5-20251101
- OS: macOS (Darwin 25.2.0)
🤖 Generated with Claude Code
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗