[BUG]Subdirectory slash commands in ~/.claude/commands/<dir>/ broken in 2.1.88
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?
Version: 2.1.88 (regression from 2.1.87)
Describe the bug:
Custom slash commands stored in subdirectories of ~/.claude/commands/ (e.g., ~/.claude/commands/gsd/help.md) are no
longer recognized. Invoking /gsd:help returns Unknown skill: gsd:help. These commands worked correctly in 2.1.87.
Steps to reproduce:
- Create ~/.claude/commands/foo/bar.md with valid frontmatter (name: foo:bar)
- Run Claude Code and type /foo:bar
- Observe: Unknown skill: foo:bar
Expected: Command loads from ~/.claude/commands/foo/bar.md
Actual: Unknown skill: foo:bar
Workaround: Downgrade to 2.1.87 restores functionality.
What Should Happen?
Nothing should be broken - test by installing this
Error Messages/Logs
Steps to Reproduce
Steps to reproduce:
- Create ~/.claude/commands/foo/bar.md with valid frontmatter (name: foo:bar)
- Run Claude Code and type /foo:bar
- Observe: Unknown skill: foo:bar
Expected: Command loads from ~/.claude/commands/foo/bar.md
Actual: Unknown skill: foo:bar
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.87
Claude Code Version
2.1.88
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗