Slash-command picker shows the wrong project's skill description when two projects define a same-named skill

Resolved 💬 0 comments Opened Jul 13, 2026 by ianbrandt Closed Jul 14, 2026

Slash-command picker shows the wrong project's skill description when two projects define a same-named skill

Summary

When two different projects each define a project skill with the same name, the
new-session composer's slash-command autocomplete resolves that name to a single
copy globally instead of scoping it to the selected target folder. The tooltip
then shows the wrong project's description, even though the folder chip points
at the other project.

Environment

  • Claude Code (desktop app) 2.1.207
  • Platform: macOS (Darwin 25.5.0)

Repro

  1. Have two projects, project-a (path sorts first) and project-b, each with

.claude/skills/shared-skill/SKILL.md using the same name: shared-skill but
a different description (each references its own project by name).

  1. On the welcome screen, set the target folder to project-b.
  2. Type the start of the skill name in the composer and hover the shared-skill

suggestion.

Expected

The tooltip shows project-b's copy of the description.

Actual

The tooltip shows project-a's copy of the description, despite the folder chip
being set to project-b.

Notes / likely cause

  • Both SKILL.md files are correct on disk; each contains only its own project's

text. The wrong text shown in the tooltip exists only in the other project's
copy.

  • The picker appears to build a global skill registry keyed by name and, on

collision, keep one copy. The project whose path sorts first wins, which matches
which description is shown.

  • Impact appears cosmetic: within an actual project-b session the correct copy

loads and runs. Only the pre-session composer tooltip shows the wrong copy.
(Worth confirming the picker doesn't also invoke the wrong copy when a
same-named collision exists.)

Suggested fix

Scope slash-command resolution in the composer to the selected target
folder/project rather than deduping same-named project skills globally, so each
project's copy of a same-named skill shows and runs its own version.

View original on GitHub ↗