Optimizes this Claude Code marketplace using specialized sub-agents. Each agent is an expert for one element type (skills, commands, agents, hooks, mcp) and loads only relevant documentation...
Orchestrates specialized sub-agents to optimize Claude Code marketplaces efficiently. Each agent loads only the documentation it needs, keeping context usage minimal.
marketplace-optimizer (this skill)
β
βββ optimizer-skills β skills.md, github-skills-readme.md
βββ optimizer-commands β slash-commands.md
βββ optimizer-agents β sub-agents.md
βββ optimizer-hooks β hooks.md
βββ optimizer-mcp β mcp.md
β
βββ optimizer-marketplace β plugins.md, plugins-reference.md,
github-*.md, CHANGELOG
.claude/ elementsProject-level (.claude/):
Marketplace (plugins/):
Flags:
--update-cache: Force update, skip check--skip-cache: Skip update entirelyWithout flags:
bun .claude/scripts/check-cache-version.ts
| recommendation | Action |
|---|---|
"skip" |
Skip (updateBehavior: never) |
"update" |
Auto-update cache |
"ask" |
Ask user |
"current" |
Skip (cache is current) |
bun .claude/scripts/update-docs-cache.ts
If no arguments provided, prompt:
SekundΓ€re Quellen (optional)
ZusΓ€tzliche Referenzen eingeben (URLs oder lokale Dateien), oder leer lassen:
Launch specialized agents in parallel using the Task tool:
## Agents to Spawn
| Agent | Scope | Docs Loaded |
|-------|-------|-------------|
| `optimizer-skills` | All skills in .claude/ and plugins/ | skills.md, github-skills-readme.md |
| `optimizer-commands` | All commands | slash-commands.md |
| `optimizer-agents` | All agents | sub-agents.md |
| `optimizer-hooks` | All hooks.json + scripts | hooks.md |
| `optimizer-mcp` | All .mcp.json | mcp.md |
Spawn all 5 agents in parallel:
Task(subagent_type="optimizer-skills", prompt="Analyze all skills in .claude/skills/ and plugins/*/skills/. Read docs first, then check each SKILL.md.")
Task(subagent_type="optimizer-commands", prompt="Analyze all commands in .claude/commands/ and plugins/*/commands/. Read docs first, then check each command.")
Task(subagent_type="optimizer-agents", prompt="Analyze all agents in .claude/agents/ and plugins/*/agents/. Read docs first, then check each agent.")
Task(subagent_type="optimizer-hooks", prompt="Analyze all hooks in plugins/*/hooks/. Read docs first, then check hooks.json and scripts.")
Task(subagent_type="optimizer-mcp", prompt="Analyze all MCP configs in plugins/*/.mcp.json. Read docs first, then check each config.")
After parallel agents complete, spawn the marketplace agent:
Task(subagent_type="optimizer-marketplace", prompt="
Analyze overall marketplace structure:
1. Read plugins.md, plugins-reference.md, github-*.md, github-changelog.md
2. Check cross-references between all elements
3. Verify permissions.json completeness
4. Identify opportunities to use latest features from CHANGELOG
5. Check plugin.json validity
")
CRITICAL: Before asking the user which optimizations to apply, you MUST first output the full findings as readable text. The user needs to understand what was found before making a selection.
Output the consolidated findings as Markdown:
## Identified Optimizations
### Skills (X found)
1. **[Element-Name]**: [Concrete description of what should be optimized and why]
2. ...
### Commands (X found)
1. **[Element-Name]**: [Concrete description]
2. ...
### Agents (X found)
1. **[Element-Name]**: [Concrete description]
2. ...
### Hooks (X found)
1. **[Element-Name]**: [Concrete description]
2. ...
### MCP (X found)
1. **[Element-Name]**: [Concrete description]
2. ...
### Cross-References & Structure (X found)
1. **[Element-Name]**: [Concrete description]
2. ...
Rules:
After showing the findings, use AskUserQuestion with multiSelect:
For each approved optimization:
Spawn optimizer-marketplace again for final check:
| Agent | Documentation | Expertise |
|---|---|---|
optimizer-skills |
skills.md, github-skills-readme.md (~30 KB) | SKILL.md structure, frontmatter, auto-detection |
optimizer-commands |
slash-commands.md (~19 KB) | Command frontmatter, argument-hint, organization |
optimizer-agents |
sub-agents.md (~22 KB) | Agent frontmatter, tools, permissionMode |
optimizer-hooks |
hooks.md (~35 KB) | hooks.json, event types, script handlers |
optimizer-mcp |
mcp.md (~43 KB) | .mcp.json, server types, configuration |
optimizer-marketplace |
plugins*.md, github-*.md (~180 KB) | Cross-refs, permissions, CHANGELOG features |
Total docs per agent: 19-43 KB each (vs. 321 KB if loading all)
All agents must enforce:
No History References
Proper Frontmatter
Cross-References
After completion:
## Marketplace Optimization Complete
### Agent Results
| Agent | Issues Found | Fixed |
|-------|--------------|-------|
| optimizer-skills | X | Y |
| optimizer-commands | X | Y |
| optimizer-agents | X | Y |
| optimizer-hooks | X | Y |
| optimizer-mcp | X | Y |
| optimizer-marketplace | X | Y |
### Changes Made
#### Skills
1. [Change description]
#### Commands
1. [Change description]
#### Agents
1. [Change description]
#### Hooks
1. [Change description]
#### MCP
1. [Change description]
#### Cross-References & Structure
1. [Change description]
### Verification
- [ ] All frontmatter valid
- [ ] No history references
- [ ] All cross-references exist
- [ ] Latest features considered
optimizer-skills - Skills expertoptimizer-commands - Commands expertoptimizer-agents - Agents expertoptimizer-hooks - Hooks expertoptimizer-mcp - MCP expertoptimizer-marketplace - Cross-references & features expert