# Scripts Tool Router

> Intelligent tool routing and pattern matching for automated tasks

- Skill: `dammianmiller/scripts-tool-router` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dammianmiller/scripts-tool-router`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dammianmiller/scripts-tool-router/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: DammianMiller (https://skillmd.com/u/dammianmiller)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/dammianmiller/scripts-tool-router

---


# Tool Router

Intelligent routing system for matching tasks to appropriate tools and patterns.

## Purpose

Automatically routes tasks to the optimal execution path based on task type, complexity, and available resources.

## Functions

- Pattern matching for task classification
- Tool selection based on task requirements
- Parallel execution orchestration
- Decision pipeline management

## Usage

Automatically invoked by opencode for complex multi-step tasks.

## Location

`src/coordination/pattern-router.ts` (patterns loaded from `.factory/patterns/index.json`)

## Integration

Used by:

- PR Reviewer Agent
- Adaptive Pattern Router
- Parallel Decision Pipeline

## Pattern Types

1. **Sequential** - Step-by-step execution
2. **Parallel** - Concurrent execution of independent tasks
3. **Conditional** - Branching based on results
4. **Adaptive** - Dynamic adjustment based on feedback

