[BUG] Claude creates slash commands in .claude/skills/ instead of .claude/commands/, making them uninvocable
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
During a session, Claude created a custom slash command called /brevet-app and
told me to invoke it in my next session to resume work. However, the command
file was placed in .claude/skills/brevet-app/SKILL.md instead of
.claude/commands/brevet-app.md.
When I started a new session and typed /brevet-app, it was not recognized
because Claude Code looks for user-invocable slash commands in
.claude/commands/, not .claude/skills/.
What Should Happen?
Expected Behavior:
Either:
- Claude should create slash command files in .claude/commands/<name>.md (the
documented location), or
- .claude/skills/ should be a recognized lookup path for slash commands
Actual Behavior:
- Claude creates the file at .claude/skills/<name>/SKILL.md
- Tells the user to invoke /<name> in the next session
- The command doesn't resolve, leaving the user stuck
Workaround:
Manually copy the file:
mkdir -p .claude/commands
cp .claude/skills/brevet-app/SKILL.md .claude/commands/brevet-app.md
Environment:
- macOS (Darwin 24.6.0)
- Claude Code v2.1.27
- Model: Opus 4.5
Error Messages/Logs
Steps to Reproduce
Steps to Reproduce:
- Have a multi-session project where Claude suggests creating a custom slash
command for resuming work
- Claude creates the file at .claude/skills/<command-name>/SKILL.md
- End the session
- Start a new session and try to invoke /<command-name>
- Command is not found
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
macOS (Darwin 24.6.0) - Claude Code v2.1.27 - Model: Opus 4.5
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗