# Auto-Dispatcher Skill **Auto-invoke:** On EVERY user request to intelligently route to components. **Description:** Ralph's intelligent dispatcher that automatically activates the appropriate components from the 5-framework integration. ## Core Function Every user request is analyzed and routed to the best component(s): 1. **Parse Intent** - Understand what user wants 2. **Match Patterns** - Check trigger rules 3. **Select Components** - Choose by priority/confidence 4. **Coordinate** - Manage multi-component workflows 5. **Learn** - Record patterns for optimization ## Trigger Matrix | User Request Pattern | Component | Confidence | Priority | |---------------------|-----------|------------|----------| | "find/search files" | codebase-indexer | 0.90+ | 1 | | "implement/add X" | plan-executor | 0.85+ | 2 | | "connect/integrate API" | mcp-client | 0.80+ | 3 | | "do X AND Y" | orchestrator | 0.85+ | 4 | | "create docs" | document-generator | 0.90+ | 5 | | [After complex task] | self-learner | Auto | 6 | ## Fast-Track Rules **Direct Answer (No Components):** - "What is X?" - "How does Y work?" - "Show me Z" - Simple queries **Auto-Approve (Skip Approval):** - Documentation - Tests - Analysis - Suggestions **Requires Approval:** - Create 3+ files - Modify 5+ files - Delete files - DB changes ## Example Workflows ### Feature Implementation ``` "Add authentication with tests" → codebase-indexer (find patterns) → plan-executor (create plan) → [Approval] → orchestrator (implement) → self-learner (record) ``` ### Code Search ``` "Find database files" → codebase-indexer (semantic search) → Results ``` ### Analysis ``` "Analyze and optimize code" → codebase-indexer (parallel) → reviewer (parallel) → self-learner (parallel) → Merge results ``` --- **Every request is intelligently routed automatically.**