← Back to the collection

You are reviewing a slash command to identify opportunities to break it down into specialized subagents.

For context on how to structure commands and subagents, refer to the sibling skills:

Command/Agent Pattern Philosophy

Based on Anthropic’s research on building effective agents (https://www.anthropic.com/engineering/building-effective-agents):

Start Simple, Add Complexity Only When Needed

CRITICAL: Before recommending subagents, ask: Does this command even need them?

Only recommend subagents when simpler solutions demonstrably fall short.

Workflow vs Agent Patterns

Distinguish between two types of agentic systems:

Workflows (Predefined Paths)

Commands orchestrate LLMs through predefined code paths:

When to use: Predictable tasks with clear decomposition

Agents (Dynamic Decision-Making)

LLMs dynamically direct their own process using tools in loops:

When to use: Open-ended problems requiring flexible decision-making

Generator/Reasoner Pattern (Evaluator-Optimizer)

One powerful workflow pattern: agents generate comprehensive output, commands filter and reason over it.

Key principles:

Benefits:

Task

Analyze the slash command file .claude/commands/$ARGUMENTS.md and:

  1. Read and understand the command: Parse its frontmatter, description, and full prompt content

  2. Assess necessity (Simplicity First):
    • Could this be solved with an optimized single LLM call?
    • What are the clear success criteria for this command?
    • What specific problems (verbosity, false positives, complexity) justify adding subagents?
    • What are the cost/latency tradeoffs?
  3. Identify complexity indicators:
    • Tasks that generate too much output or false positives (→ needs filtering)
    • Multiple distinct analysis or search phases (→ possible chaining/parallelization)
    • Classification followed by specialized handling (→ routing pattern)
    • Tasks where comprehensive data gathering needs filtering (→ generator/reasoner)
    • Iterative refinement needs (→ evaluator-optimizer pattern)
    • Different tool usage patterns (→ possible separation of concerns)
    • Conditional logic that branches into separate workflows
    • Unpredictable subtasks requiring dynamic planning (→ orchestrator-workers)
  4. Recognize applicable patterns:
    • Prompt Chaining: Can task be decomposed into sequential steps?
    • Routing: Does input need classification before specialized handling?
    • Parallelization: Can independent subtasks run simultaneously? Need voting/consensus?
    • Orchestrator-Workers: Are subtasks unpredictable and need dynamic delegation?
    • Evaluator-Optimizer: Would iterative refinement improve quality?
    • Autonomous Agent: Is this truly open-ended with unpredictable tool usage?
  5. Suggest subagent opportunities (if justified):
    • Pattern type: Which pattern(s) from above apply?
    • Workflow vs Agent: Is this predefined paths or dynamic decision-making?
    • Generator subagents: What agents could perform comprehensive analysis/search?
    • Command as reasoner: How should the command filter and refine agent output?
    • Name potential subagents with clear, descriptive names
    • Define each subagent’s specific responsibility
    • Explain what tools each subagent would need (emphasize ACI design)
    • Show how the main command would coordinate subagent(s)
  6. Provide refactoring recommendations:
    • Pattern-based structure showing the workflow/agent design
    • Which parts become subagents vs stay in command
    • Identify any reusable subagents that could serve multiple commands
    • Highlight where the pattern adds demonstrable value
    • Document expected improvements (quality, reliability, maintainability)

Output Format

Provide a structured review with:

Current Command Analysis

Simplicity Assessment

First, answer: Does this command need subagents at all?

Pattern Recognition

If subagents are justified, identify applicable patterns:

Subagent Opportunities

For each suggested subagent:

Command Coordination

How the main command orchestrates the pattern:

Refactoring Recommendation

Priority Assessment

Notes

Critical Principles

Tool Design Emphasis

When recommending subagents, emphasize Agent-Computer Interface (ACI) design:

Reusability and Testing

Philosophy

The goal isn’t to make commands more sophisticated—it’s to make them more effective. Sometimes that means keeping them simple. Only recommend complexity when it solves real, measurable problems.