Claude Code Plugins

Community-maintained marketplace

Feedback

Analyze task complexity and route to appropriate workflow (oneoff-vibe for small changes, oneoff-spec for medium tasks, orchestrator for large multi-workstream efforts). Use when starting any new task to determine the right approach.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name route
description Analyze task complexity and route to appropriate workflow (oneoff-vibe for small changes, oneoff-spec for medium tasks, orchestrator for large multi-workstream efforts). Use when starting any new task to determine the right approach.
allowed-tools Read, Glob, Grep

Route Skill

Purpose

Analyze the user request and determine the appropriate workflow path based on task complexity, scope, and estimated effort.

Complexity Heuristics

Small (oneoff-vibe)

Route to quick execution without formal spec:

  • Single file change or very localized modification
  • Bug fix with clear location and obvious solution
  • Documentation update or README change
  • Configuration change (environment, settings)
  • Typo fixes or simple refactoring
  • Estimated effort: < 30 minutes
  • No spec needed: Changes are self-documenting

Medium (oneoff-spec / TaskSpec)

Route to TaskSpec workflow:

  • 2-5 files impacted
  • Single feature or enhancement with clear boundaries
  • Bug fix requiring investigation across multiple files
  • Adding new endpoint, component, or module
  • Clear scope, single workstream
  • Estimated effort: 30 minutes - 4 hours
  • Needs light spec: Requirements, acceptance criteria, task list

Large (orchestrator / MasterSpec)

Route to multi-workstream orchestration with git worktrees:

  • 5+ files impacted across multiple layers
  • Multiple workstreams with interdependencies
  • Cross-cutting concerns (contracts, interfaces, shared state)
  • Impacts multiple services, layers, or subsystems
  • Requires parallel execution by multiple subagents
  • Complex coordination and integration needs
  • Estimated effort: 4+ hours
  • Needs full spec: ProblemBrief → WorkstreamSpecs → MasterSpec
  • Parallel execution: Workstreams execute in isolated git worktrees
  • Dependency orchestration: Facilitator manages merge order based on dependencies

Routing Process

Step 1: Load Context

If the user references an existing spec:

# Check for active spec
ls .claude/specs/active/<slug>.md 2>/dev/null

Load the spec and continue from its current state.

Step 2: Analyze Scope

Use Glob and Grep to understand impact:

# Find relevant files
glob "**/*.ts" | grep -i "<keyword>"

# Understand current architecture
grep -r "class <Name>" --include="*.ts"

Step 3: Apply Heuristics

Count impacted files and assess complexity:

  • File count: How many files need changes?
  • Coupling: Are changes isolated or cross-cutting?
  • Unknowns: How many open questions exist?
  • Testing: What test coverage is needed?

Step 4: Analyze Delegation Opportunities

Delegation is the default. Before making a routing decision, analyze whether the task can be decomposed into independent subtasks for parallel subagent execution:

Always delegate when:

  • Task has 2+ independent components that can run in parallel
  • Exploration/research is needed before implementation
  • Multiple files need changes that don't depend on each other
  • Code review, security review, or testing can run in parallel

Delegation analysis checklist:

  1. Can parts of this work run independently? → Dispatch parallel subagents
  2. Is exploration needed first? → Dispatch Explore subagent before deciding scope
  3. Are there isolated concerns? → Dispatch specialized subagents (impl, test, review)
  4. Would main-context benefit from delegation? → Always yes for non-trivial tasks

Do NOT delegate only when:

  • Single-file typo/config fix (oneoff-vibe)
  • Task requires tight coordination that subagents can't provide
  • User explicitly requests direct execution

Step 5: Make Routing Decision

Produce a routing decision with delegation plan:

workflow: oneoff-vibe | oneoff-spec | orchestrator
rationale: <Brief explanation of why this workflow was chosen>
estimated_scope: small | medium | large
estimated_files: <N>
delegation:
  parallel_subtasks:
    - <subtask 1>: <subagent type>
    - <subtask 2>: <subagent type>
  sequential_dependencies:
    - <subtask that must complete first>
  exploration_needed: true | false
workstreams:
  - <workstream 1> (for orchestrator only)
  - <workstream 2>
next_action: <Suggested next step>

Step 6: Persist Decision

Save routing decision to session state:

# Append to session context
echo "{\"timestamp\": \"$(date -Iseconds)\", \"workflow\": \"oneoff-spec\", \"rationale\": \"...\"}" >> .claude/context/session.json

Edge Cases

Ambiguous Complexity

When a task could be either medium or large:

  • Default to oneoff-spec (safer than vibe, less overhead than orchestrator)
  • Can escalate to orchestrator if spec reveals hidden complexity
  • Better to discover scope during spec phase than during implementation

User Override

If user explicitly requests a workflow:

  • "Just make the change" → oneoff-vibe (even if medium complexity)
  • "Write a full spec first" → oneoff-spec or orchestrator
  • Honor user preference and note in rationale

Existing Spec

If .claude/specs/active/<slug>.md exists:

  • Check its status field
  • If status: draft → Continue spec authoring
  • If status: approved → Route to implementation
  • If status: complete → Suggest archiving or new task

Output Format

Always output a clear routing decision:

## Routing Decision

**Workflow**: oneoff-spec

**Rationale**: This task involves adding a new API endpoint with authentication, requiring changes to 3-4 files (route handler, service layer, tests). The scope is well-defined but needs formal requirements and test planning.

**Estimated Scope**: medium

**Estimated Files**: 4 (controller, service, tests, types)

**Next Action**: Use `/pm` skill to interview user about endpoint requirements, then create TaskSpec.

Integration with Other Skills

After routing:

  • oneoff-vibe: Proceed directly to implementation
  • oneoff-spec: Use /pm to gather requirements, then /spec to author TaskSpec
  • orchestrator: Use /pm to create ProblemBrief, then /spec to coordinate WorkstreamSpecs

Examples

Example 1: Small Task (No Delegation)

Request: "Fix the typo in README.md line 42"

Routing:

  • workflow: oneoff-vibe
  • rationale: Single file, single line change with no side effects
  • estimated_scope: small
  • delegation: none (trivial change)
  • next_action: Make the edit directly

Example 2: Medium Task (Parallel Delegation)

Request: "Add a logout button to the user dashboard"

Routing:

  • workflow: oneoff-spec
  • rationale: Requires UI component, event handler, API call, state management (3-4 files). Need to clarify placement, behavior on logout, error handling.
  • estimated_scope: medium
  • estimated_files: 4 (component, handler, API client, tests)
  • delegation:
    • parallel_subtasks:
      • implementation: implementer
      • tests: test-writer
    • sequential_dependencies:
      • spec approval must complete before implementation
  • next_action: Use /pm to gather UI/UX requirements

Example 3: Large Task (Full Orchestration)

Request: "Implement real-time notifications across the application"

Routing:

  • workflow: orchestrator
  • rationale: Cross-cutting feature affecting multiple layers: WebSocket server, frontend client, database schema, auth middleware, notification service (8+ files, 3+ workstreams)
  • estimated_scope: large
  • workstreams:
    • ws-1: WebSocket server infrastructure
    • ws-2: Frontend notification client
    • ws-3: Notification persistence and delivery
  • delegation:
    • parallel_subtasks:
      • ws-1 implementation: implementer (worktree)
      • ws-2 implementation: implementer (worktree)
      • ws-3 implementation: implementer (worktree)
      • per-workstream tests: test-writer (parallel)
    • sequential_dependencies:
      • ws-1 must complete before ws-2 (client depends on server)
    • exploration_needed: true (investigate WebSocket library options)
  • next_action: Use /pm to create ProblemBrief, dispatch Explore subagent for WebSocket research

Example 4: Exploration-First (Delegation for Research)

Request: "Improve performance of the search feature"

Routing:

  • workflow: oneoff-spec (may escalate to orchestrator)
  • rationale: Requires investigation to understand bottlenecks before planning
  • estimated_scope: unknown (pending exploration)
  • delegation:
    • exploration_needed: true
    • parallel_subtasks:
      • codebase analysis: Explore subagent
      • performance profiling: Explore subagent (separate)
    • sequential_dependencies:
      • exploration must complete before spec authoring
  • next_action: Dispatch Explore subagent to profile current search implementation