smart-router

smart-router is a skill for Claude Code, Codex from kayzaa/k.i.t.-bot. It costs 0 tokens per session (735 once invoked), scanned A, a copy of smart-router, MIT.

A trade execution tool that compares prices and available liquidity across exchanges before routing an order. It can split large orders and use methods such as TWAP, which spreads trades over time, or VWAP, which follows trading volume.

In plain words
What is it for?
It is for finding an execution route, distributing an order across exchanges, estimating market impact, and placing orders with less slippage.
Why use it?
It helps reduce the extra cost caused by price differences, trading fees, limited liquidity, and slippage. Slippage is the difference between the expected price and the price actually received.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for finding an execution route, distributing an order across exchanges, estimating market impact, and placing orders with less slippage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kayzaa/k.i.t.-bot/smart-router
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kayzaa/k.i.t.-bot --skill smart-router
Clone the repo
git clone --depth 1 https://github.com/kayzaa/k.i.t.-bot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for smart-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/kayzaa/k.i.t.-bot/smart-router/github.svg)](https://agentmods.dev/skills/kayzaa/k.i.t.-bot/smart-router)
Your own site
<a href="https://agentmods.dev/skills/kayzaa/k.i.t.-bot/smart-router"><img src="https://agentmods.dev/badge/skills/kayzaa/k.i.t.-bot/smart-router/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for smart-router

Your own site · 80×15
<a href="https://agentmods.dev/skills/kayzaa/k.i.t.-bot/smart-router"><img src="https://agentmods.dev/badge/skills/kayzaa/k.i.t.-bot/smart-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 735 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00735
Opus 5 $0.00000 $0.00367
Sonnet 5 $0.00000 $0.00147
Haiku 4.5 $0.00000 $0.00073

Measured 8d ago against content hash 3cebe904cc43, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

smart-router scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (__init__.py, router.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to smart-router — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/smart-router/SKILL.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.

⚡ Smart Order Router

K.I.T.'s Execution Engine - Best prices, minimal slippage, maximum profit!

Features

🎯 Best Execution

  • Real-time price comparison across 10+ exchanges
  • Order book depth analysis
  • Liquidity scoring
  • Market impact estimation

📊 Slippage Minimization

  • TWAP (Time-Weighted Average Price)
  • VWAP (Volume-Weighted Average Price)
  • Iceberg orders
  • Hidden liquidity detection

✂️ Order Splitting

  • Intelligent order fragmentation
  • Cross-exchange distribution
  • Timing optimization
  • Fee optimization

🌑 Dark Pool Access

  • Institutional-grade execution
  • Block trading
  • Minimal market impact
  • Price improvement

Usage

from smart_router import SmartRouter

router = SmartRouter()

# Find best execution path
route = await router.find_best_route(
    symbol="BTC/USDT",
    side="buy",
    amount=10,  # BTC
    max_slippage=0.001  # 0.1%
)

print(f"Best execution plan:")
print(f"  Total cost: ${route.total_cost:,.2f}")
print(f"  Avg price: ${route.avg_price:,.2f}")
print(f"  Expected slippage: {route.expected_slippage:.3%}")

for leg in route.legs:
    print(f"  - {leg.exchange}: {leg.amount} @ ${leg.price}")

# Execute with TWAP
result = await router.execute_twap(
    symbol="BTC/USDT",
    side="buy",
    amount=10,
    duration_minutes=30,
    interval_seconds=60
)

# Execute with VWAP
result = await router.execute_vwap(
    symbol="ETH/USDT",
    side="sell",
    amount=100,
    participation_rate=0.1  # 10% of volume
)

Execution Algorithms

Algorithm Best For Market Impact
Market Small orders, urgent High
Limit Price-sensitive Low
TWAP Large orders, time flexible Medium
VWAP Track market volume Low
Iceberg Hide size Low
Sniper Best price hunting Very Low

Configuration

smart_router:
  exchanges:
    - name: binance
      priority: 1
      max_volume_pct: 40
    - name: coinbase
      priority: 2
      max_volume_pct: 30
    - name: kraken
      priority: 3
      max_volume_pct: 30
      
  execution:
    default_algo: "smart"
    max_slippage: 0.1%
    retry_attempts: 3
    timeout_ms: 5000
    
  order_splitting:
    enabled: true
    min_split_size: $1000
    max_splits: 10
    
  twap:
    default_duration: 30m
    min_interval: 30s
    randomize: true
    
  vwap:
    lookback_period: 1h
    max_participation: 20%

Read the full file on GitHub · 131 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 131 lines · 0 tokens per session scan A 3cebe904cc43

Subscribe to this mod's changes

smart-router is a skill published in the GitHub repository kayzaa/k.i.t.-bot (5 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 735 tokens. A static security scan graded it A with 0 findings. It is 100% identical to smart-router, differing in 0 lines, and is treated as a copy.