Router-First Architecture
Implements a structured routing layer to abstract tool selection and ensure deterministic command mapping for AI agents.
Router-First Architecture provides a standardized design pattern for Claude Code that prioritizes domain routers over direct script execution. This approach utilizes a two-layer architecture to handle user intent: a broad trigger layer that nudges the AI toward the correct router, and a deterministic routing layer that maps specific intents to CLI commands using regex. By utilizing co-activation modes, this skill ensures that domain-specific knowledge and its corresponding router are always available simultaneously, significantly reducing tool-call errors and eliminating redundant routing logic across individual tools within a multi-agent swarm.