claude-code - 💡(How to fix) Fix Plugin command/skill named "doctor" is invoked instead of built-in /doctor

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

#15065 ("Skill takes precedence over slash command when both have the same name", closed) documents an analogous precedence collision where a same-named skill won over a command. Because cc-suite defines doctor as both a command and a skill, this may be the skill-precedence path winning over the built-in rather than a plain plugin-vs-built-in issue.

RAW_BUFFERClick to expand / collapse

What happened

A plugin that ships a slash command (and skill) named doctor is invoked when I type the built-in /doctor. Selecting the bare /doctor entry in the command picker still runs the plugin's cc-suite:doctor instead of Claude Code's built-in /doctor health check.

The plugin (cc-suite) ships both a command and a skill named doctor:

  • commands/doctor.md → frontmatter name: doctor → registers as /cc-suite:doctor
  • skills/cc-suite/doctor/SKILL.md → frontmatter name: doctor → registers as cc-suite:doctor

So three things compete for the token doctor: the built-in /doctor command, the plugin command cc-suite:doctor, and the plugin skill cc-suite:doctor.

What I expected

Per the slash-commands docs, built-in commands take precedence and cannot be overridden, and plugin commands are namespaced (plugin:command) specifically so they don't collide with bare built-ins. Typing/selecting bare /doctor should always run the built-in.

What actually happened

Bare /doctor resolves to the plugin's cc-suite:doctor instead of the built-in.

Possibly related

#15065 ("Skill takes precedence over slash command when both have the same name", closed) documents an analogous precedence collision where a same-named skill won over a command. Because cc-suite defines doctor as both a command and a skill, this may be the skill-precedence path winning over the built-in rather than a plain plugin-vs-built-in issue.

Questions

  1. What is the documented resolution precedence among (a) a built-in command, (b) a plugin command, and (c) a plugin skill that all share the bare name doctor?
  2. Should a plugin command/skill ever be reachable via a bare built-in name? If not, this is a resolver bug.

Environment

  • Claude Code 2.1.150
  • macOS (darwin)
  • Plugin: cc-suite (installed from a marketplace)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING