[BUG] `/reload-plugins` output mislabels `command_count` as "skills" and omits actual skill count

Resolved 💬 5 comments Opened Apr 10, 2026 by islanderman Closed Jun 21, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The /reload-plugins summary output mislabels command_count as "skills" and never displays the actual skill_count. When you see Reloaded: 53 plugins · 45 skills · 36 agents · ..., the "45 skills" are actually 45 slash commands — the real 122 skills are loaded correctly but not shown in the output.

The root cause is in the reload output formatter:

[
  sYH(q.enabled_count, "plugin"),
  sYH(q.command_count, "skill"),   // BUG: command_count labeled as "skill"
  sYH(q.agent_count,   "agent"),
  sYH(q.hook_count,    "hook"),
  sYH(q.mcp_count,     "plugin MCP server"),
  sYH(q.lsp_count,     "plugin LSP server")
].join(" · ")

What Should Happen?

The output should use correct labels and include all component types:

Reloaded: 53 plugins · 122 skills · 45 commands · 36 agents · 4 hooks · 2 plugin MCP servers · 11 plugin LSP servers

Suggested fix:

  [
    sYH(q.enabled_count, "plugin"),
    sYH(q.skill_count,   "skill"),    // use skill_count
    sYH(q.command_count, "command"),   // add commands with correct label
    sYH(q.agent_count,   "agent"),
    sYH(q.hook_count,    "hook"),
    sYH(q.mcp_count,     "plugin MCP server"),
    sYH(q.lsp_count,     "plugin LSP server")
  ].join(" · ")

Error Messages/Logs

Reloaded: 53 plugins · 45 skills · 36 agents · 4 hooks · 2 plugin MCP servers · 11 plugin LSP servers

No error — the output succeeds but with incorrect labels. The number shown as "skills" (45) matches command_count, not skill_count (122).

Steps to Reproduce

  1. Install plugins that define skills, commands, and agents (e.g., a marketplace with 7 plugins declaring 91+ skills and 24+ commands)
  2. Run /reload-plugins
  3. Observe the "skills" count in the output — it matches the number of commands, not skills

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.89

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

  • The skill_count field is already computed and available in the q object — it's just not wired into the output formatter
  • Skills themselves load and function correctly; only the summary display is wrong

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗