Skip to content
Back to skills

Smart Routing

ASecurity

Complexity-based task routing with Q-Learning optimization, Agent Booster WASM fast-path, and Mixture-of-Experts model selection.

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 29, 2026
ai-agentstypescriptbashperformancedocumentation

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 29, 2026

npx -y skills add a5c-ai/babysitter --skill smart-routing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Smart Routing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Smart Routing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-smart-routing/badge)](https://www.skillsdirectory.com/skills/a5c-ai-smart-routing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: smart-routing
description: Complexity-based task routing with Q-Learning optimization, Agent Booster WASM fast-path, and Mixture-of-Experts model selection.
allowed-tools: Read, Write, Edit, Bash, Grep, Glob, WebFetch, WebSearch, Agent, AskUserQuestion
---

# Smart Routing

## Overview

Intelligent task routing using Q-Learning to select optimal execution paths. Simple tasks route to Agent Booster (WASM, <1ms, $0), medium tasks to efficient models, and complex tasks to Opus + multi-agent swarms.

## When to Use

- Optimizing cost vs. quality tradeoffs for diverse task types
- When tasks range from simple transforms to complex multi-file changes
- Reducing latency for common code transformations
- Learning from routing history to improve future decisions

## Routing Tiers

| Tier | Target | Latency | Cost |
|------|--------|---------|------|
| Agent Booster | Simple transforms (var-to-const, add-types) | <1ms | $0 |
| Medium | Standard coding tasks | ~500ms | Low |
| Complex | Multi-agent swarm coordination | 2-5s | Higher |

## Agent Booster Transforms

- `var-to-const` - Variable declaration modernization
- `add-types` - TypeScript type annotation insertion
- `add-error-handling` - Try/catch wrapper insertion
- `async-await` - Promise chain to async/await conversion
- `extract-function` - Code block extraction to named functions
- `add-jsdoc` - Documentation generation

## Agents Used

- `agents/optimizer/` - Performance and cost optimization
- `agents/architect/` - Complex task decomposition

## Tool Use

Invoke via babysitter process: `methodologies/ruflo/ruflo-task-routing`

Files in this skill

  • README.md224 B
  • SKILL.md1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.