claude-code - 💡(How to fix) Fix [BUG] `/reload-plugins` output mislabels `command_count` as "skills" and omits actual skill count [1 participants]

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…
GitHub stats
anthropics/claude-code#46435Fetched 2026-04-11 06:20:22
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Error Message

Error Messages/Logs

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

Root Cause

The root cause is in the reload output formatter:

Code Example

[
  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(" · ")

---

[
    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(" · ")

---

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).
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

extent analysis

TL;DR

  • The issue can be fixed by updating the reload output formatter to use the correct labels and include all component types.

Guidance

  • Identify the incorrect label in the reload output formatter: sYH(q.command_count, "skill") should be sYH(q.skill_count, "skill").
  • Add a new label for commands: sYH(q.command_count, "command").
  • Verify the fix by checking the output of the /reload-plugins command to ensure it displays the correct counts for skills and commands.
  • Test the fix with different plugin configurations to ensure it works as expected.

Example

[
  sYH(q.enabled_count, "plugin"),
  sYH(q.skill_count,   "skill"),
  sYH(q.command_count, "command"),
  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(" · ")

Notes

  • The fix assumes that the skill_count field is already computed and available in the q object.
  • The issue is not a regression, and the fix should work for the current version of Claude Code (2.1.89).

Recommendation

  • Apply the suggested fix to update the reload output formatter, as it correctly addresses the issue and provides the expected output.

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