[BUG] Plugin enable/disable ignored - all skills loaded regardless of settings
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] I can reproduce this bug with the latest version of Claude Code
Bug Description
tl;dr - plugins need individual folders and individual .claude-plugin/plugin.json to be respected.
When a marketplace defines multiple plugins from the same source directory, disabling one plugin has no effect - all skills from the entire directory are loaded regardless of enable/disable settings.
Reproduction
marketplace.json (from anthropic-agent-skills):
{
"plugins": [
{
"name": "document-skills",
"source": "./",
"skills": ["./skills/xlsx", "./skills/docx", "./skills/pptx", "./skills/pdf"]
},
{
"name": "example-skills",
"source": "./",
"skills": [
"./skills/algorithmic-art",
"./skills/brand-guidelines",
"./skills/canvas-design",
... (12 skills total)
]
}
]
}
settings.json:
{
"enabledPlugins": {
"example-skills@anthropic-agent-skills": false, // DISABLED
"document-skills@anthropic-agent-skills": true
}
}
Expected: Only xlsx, docx, pptx, pdf skills loaded (the 4 from document-skills)
Actual: ALL 16 skills loaded, including document-skills:algorithmic-art, document-skills:canvas-design, etc. from the disabled example-skills plugin
Root Cause Analysis
The skills array in marketplace.json appears to be completely ignored. Claude Code seems to:
- See that
document-skillsis enabled withsource: "./" - Recursively scan the entire
./directory for anySKILL.mdfiles - Load everything it finds, ignoring the explicit
skillsarray whitelist
Impact
- Plugin settings are meaningless - Users can't control which skills are loaded
- Contributes to skill truncation - Extra unwanted skills push useful skills past the 30-skill limit (see #13343)
- Confusing UI - Plugins appear as separate items in the UI but toggling them does nothing
- Broken architecture - The marketplace.json schema implies fine-grained control that doesn't exist
Environment
- Claude Code version: 2.0.60 (Homebrew)
- OS: macOS
- Affected marketplace: anthropic-agent-skills (but likely affects any marketplace with multiple plugins sharing a source directory)
Expected Behavior
Either:
-
Respect the
skillsarray - Only load skills explicitly listed for enabled plugins - Or require separate source directories - If sharing source directories isn't supported, enforce separate directories per plugin
Workaround
None currently. Disabling plugins in settings.json has no effect.
Found 2 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/9996
- https://github.com/anthropics/claude-code/issues/13311
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
cc @ant-andi @klazuka