spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

slash commands not working on claude code cli

Open WinstonTG opened this issue 1 year ago β€’ 10 comments

I'm trying to use GitHub Spec Kit for spec-driven development with Claude Code, but cannot access the /specify, /plan, and /tasks slash commands that should be available after initialization. Setup:

Installed GitHub Spec Kit using: uvx --from git+https://github.com/github/spec-kit.git specify init mealmanager --ai claude Installation completed successfully and created the required files in .claude/commands/:

specify.md plan.md tasks.md

Files have correct permissions (644) and contain valid content Running Claude Code v1.0.113 on macOS

Problem:

Custom slash commands don't appear when typing /help - only built-in commands are shown Commands don't work when typed directly (e.g., /specify returns "Unknown command") No autocomplete suggestions when typing /

What I've tried:

Restarting Claude Code sessions Verifying file structure and permissions Running from correct directory (where .claude/commands/ exists) Commands are readable and properly formatted

Expected behavior: The /specify, /plan, and /tasks commands should appear in /help and be executable for spec-driven development workflow.

WinstonTG avatar Sep 16 '25 20:09 WinstonTG

+1 for the same issue

jordanbrogden avatar Sep 17 '25 08:09 jordanbrogden

+1 for the same issue

selmanalpdundarhyntelo avatar Sep 17 '25 10:09 selmanalpdundarhyntelo

+1 for the same issue… I tried a new project acter release 45 with the same results. I also tried a second mac where this had worked before and i even created a complete project but for some reason something broke the /specify command.

adarkazanli avatar Sep 20 '25 10:09 adarkazanli

i have two versions of claude installed. may or may not be relevant:

1.0.81 (Claude Code) - commands show up 1.0.120 (Claude Code) - commands do not show up πŸ€”

cdaringe avatar Sep 20 '25 19:09 cdaringe

@WinstonTG are you running the slash commands from claude cli after running specify init? After you run specify init you need to invoke claude by simply typing "claude". Then you should see new slash commands in claude cli, /constitution, /specify etc.

elagerway avatar Sep 26 '25 22:09 elagerway

@WinstonTG are you running the slash commands from claude cli after running specify init? After you run specify init you need to invoke claude by simply typing "claude". Then you should see new slash commands in claude cli, /constitution, /specify etc.

❯ cat .claude/settings.local.json
{
  "permissions": {
    "allow": [
      "Bash(python:*)",
      "Bash(pip install:*)",
      "Bash(uv sync:*)",
      "Bash(uv run:*)",
      "Bash(curl:*)"
    ],
    "deny": [],
    "ask": []
  }
}%                                                                                                                      
❯ ls .claude/commands/
analyze.md  clarify.md  constitution.md  implement.md  plan.md  specify.md  tasks.md
❯ claude

 β–β–›β–ˆβ–ˆβ–ˆβ–œβ–Œ   Claude Code v2.0.8
β–β–œβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–›β–˜  Sonnet 4.5 Β· API Usage Billing
  β–˜β–˜ ▝▝    /home/xmccln/workspace/dify-automation

> Unknown slash command: plan

it like claude code bug?

NebulaMao avatar Oct 06 '25 02:10 NebulaMao

+1 - global init, see it's installed, but can't invoke slash commands in CC

HenryThriver avatar Oct 23 '25 15:10 HenryThriver

+1 - global init, see it's installed, but can't invoke slash commands in CC

Actually, figured out that it was installing into a sub-directory so had to go one folder up and re-init to see. Check the project path it's creating for folks who are slow like me πŸ˜‰

HenryThriver avatar Oct 23 '25 15:10 HenryThriver

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Apr 03 '26 14:04 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar May 08 '26 01:05 github-actions[bot]