trigger: field in SKILL.md causes exponential slash command menu duplication across multiple running sessions
Resolved 💬 2 comments Opened Jun 23, 2026 by lballaty Closed Jun 27, 2026
Bug Description
When a skill (~/.claude/skills/<name>/SKILL.md) has a trigger: /<name> field in its frontmatter, the slash command /name appears multiple times in the autocomplete menu — multiplied across running Claude Code sessions and/or CLAUDE.md files found walking up the directory tree.
Environment
- Claude Code version: 2.1.145.249
- Platform: macOS Darwin 24.6.0
- Installation: Homebrew cask
Steps to Reproduce
- Create ~/.claude/skills/troubleshoot/SKILL.md with
trigger: /troubleshootin frontmatter - Create ~/.claude/commands/troubleshoot.md (a slash command wrapper for the same skill)
- Start 5 Claude Code sessions from different working directories
- In any session, type
/troubleshootto open the slash command menu
Observed
14 duplicate entries for /troubleshoot in the slash menu:
- 13 entries with the SKILL.md description, no tag
- 1 entry with the commands file description, tagged (user)
Expected
/troubleshoot appears once (from the commands file) or at most twice if both mechanisms are active.
Notes
- The 13 untagged entries correlate with the number of running sessions (5) and CLAUDE.md files found walking up the cwd hierarchy (27 in this case)
- Removing the
trigger:field from SKILL.md eliminates the duplicates - Skills without
trigger:do not appear in the slash menu at all (correct) - The
trigger:field appears to have no documented effect other than causing this duplication
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗