Autocomplete suggestions missing commands from .claude/commands/
Description
When typing a slash command prefix (e.g., /gi), the autocomplete dropdown shows skills from .claude/skills/ but does not show commands from .claude/commands/.
Steps to Reproduce
- Create a command file in
.claude/commands/git.md:
``yaml``
---
name: git
description: Git operations (commit, PR, issues, branches)
allowed-tools: Skill, Bash, AskUserQuestion
---
- Have a skill with similar name (e.g.,
git-workflowin.claude/skills/) - Type
/giin the CLI prompt - Observe autocomplete suggestions
Expected Behavior
Both should appear in autocomplete:
/git(command from.claude/commands/git.md)git-workflow(skill from.claude/skills/)
Actual Behavior
Only skills appear in the autocomplete suggestions. Commands are not suggested.
The command works when typed fully (/git), but users have no discoverability for their custom commands.
Environment
- Claude Code version: 2.1.7
- OS: Linux (WSL2)
- Shell: bash
Impact
Users who create custom commands in .claude/commands/ cannot discover them via autocomplete, making the feature less useful and creating confusion between commands and skills.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗