From agents-plugin
Analyzes Claude Code plugins for sub-agent opportunities, identifying skills with verbose output, gaps in agent coverage, and model selection improvements like opus for complex reasoning.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agents-plugin:agents-analyzeopusThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze the plugin collection to identify where sub-agents would improve workflows by isolating verbose output, enforcing constraints, or specializing behavior.
Analyze the plugin collection to identify where sub-agents would improve workflows by isolating verbose output, enforcing constraints, or specializing behavior.
find . -maxdepth 1 -type d -name '*-plugin'find agents-plugin/agents -maxdepth 1 -name '*.md'find . -path '*/skills/*/skill.md'find . -path '*/skills/*/SKILL.md' -not -path './agents-plugin/*'$1: Optional --focus <plugin-name> to analyze a single plugin in depthPerform a systematic analysis of the plugin collection to identify sub-agent opportunities.
Scan the repository to build an inventory:
agents-plugin/agents/ to understand current coverage--focus is provided, restrict analysis to that plugin onlyFor each plugin (or focused plugin), evaluate skills and commands against these criteria:
Operations that produce verbose output benefiting from isolation:
| Indicator | Examples |
|---|---|
| Build tools | docker build, cargo build, webpack, tsc |
| Infrastructure ops | terraform plan/apply, kubectl describe |
| Test runners | Full test suite output, coverage reports |
| Profiling tools | Flame graphs, benchmark results |
| Security scanners | Vulnerability reports, audit output |
| Log analysis | Application logs, system logs |
| Package managers | Dependency trees, audit results |
Operations that should be limited to specific tools:
| Constraint | Rationale |
|---|---|
| Read-only analysis | Security audit, code review - no writes |
| No network | Pure code analysis tasks |
| Limited bash | Tasks that shouldn't execute arbitrary commands |
| Assign opus when... | Assign haiku when... |
|---|---|
| Complex reasoning required | Structured/mechanical task |
| Security analysis | Status checks |
| Architecture decisions | Output formatting |
| Debugging methodology | Configuration generation |
| Performance analysis | File operations |
Compare identified opportunities against existing agents:
/delegate references agents that don't existFor each recommended new agent, specify:
### Proposed: <agent-name>
- **Model**: opus | haiku
- **Covers plugins**: <list>
- **Context value**: <what verbose output it isolates>
- **Tools**: <minimal set>
- **Constraint**: <read-only, no-network, etc.>
- **Priority**: HIGH | MEDIUM | LOW
- **Rationale**: <why this is better than inline execution>
For model/tool corrections to existing agents:
### Fix: <agent-name>
- **Current model**: X → **Recommended**: Y
- **Reason**: <why the change improves things>
If new agents are recommended, check:
/delegate command## Sub-Agent Analysis Report
**Scope**: [All plugins | focused plugin name]
**Date**: [today]
**Plugins analyzed**: N
**Existing agents**: N
**Skills without agent coverage**: N
### Current Coverage Map
| Domain | Agent | Skills Covered | Gaps |
|--------|-------|----------------|------|
| ... | ... | ... | ... |
### Recommended New Agents
[Proposals from Step 4]
### Recommended Fixes
[Model/tool corrections from Step 4]
### Delegation Mapping Updates
[Any updates needed for /delegate command's agent reference table]
### Priority Summary
| Priority | Count | Top Recommendation |
|----------|-------|-------------------|
| HIGH | N | ... |
| MEDIUM | N | ... |
| LOW | N | ... |
After presenting the analysis:
agents-plugin/agents/agents-plugin/README.md with new agents/delegate command's agent reference table if needednpx claudepluginhub laurigates/claude-plugins --plugin agents-pluginAudits plugin suites using subagents to analyze usability, coverage gaps, duplications, and workflow optimizations. Generates reports with user-approved todo conversion. Useful for plugin ecosystem improvements.
Runs parallel analyzers over plugin manifests, agents, skills, CLAUDE.md, docs, prompts, commands, and hooks; reports HIGH-certainty findings first and optionally applies safe fixes.
Analyzes Claude Code agents for consolidation: groups by config similarity, tracks references in skills/memory/agents, assesses impact, tracks progress, executes refactoring plans.