← Back to Skills Marketplace
AI Task Router Auto-Route Prompts by Complexity (Local/Cloud)
by
Shadow Rose
· GitHub ↗
· v1.0.0
· MIT-0
489
Downloads
0
Stars
4
Active Installs
1
Versions
Install in OpenClaw
/install task-complexity-router
Description
Regex-based routing sends simple tasks to local AI, medium to mid-tier, complex to premium — saving 60%+ on API costs.
Usage Guidance
This skill appears to do what it claims: local regex-based routing with no external calls or credential requests. Before installing, consider: 1) The author/source is unknown and there's no homepage — verify the source or run in a sandbox. 2) If you accept customRules from untrusted users, malicious or poorly written regexes can crash the process or cause ReDoS; validate or sandbox user-supplied patterns. 3) Test routing behavior on representative prompts so sensitive requests aren't accidentally sent to cheaper models; tune rules and overrides (context.forceModel) accordingly. 4) Keep backups of any config you persist and run in a controlled environment if you rely on it for production routing.
Capability Analysis
Type: OpenClaw Skill
Name: task-complexity-router
Version: 1.0.0
The skill bundle provides a straightforward regex-based utility for routing AI prompts to different models based on task complexity. Analysis of src/task-router.js reveals no network activity, file system access, or data exfiltration logic, and the SKILL.md documentation contains no prompt-injection attempts or instructions to bypass security controls.
Capability Assessment
Purpose & Capability
The name/description say regex routing by complexity and the code implements that: pattern table, route(message) logic, add/remove/export rules. There are no unrelated environment variables, binaries, or install steps requested.
Instruction Scope
SKILL.md and src/task-router.js confine behavior to local routing decisions. The only scope risk is that config.customRules are accepted and compiled into RegExp at construction time (new RegExp(rule.pattern,...)) — loading untrusted pattern strings can cause runtime exceptions or ReDoS (catastrophic backtracking) if patterns are malicious or poorly written. Otherwise the instructions do not read OS files, env vars, or transmit data.
Install Mechanism
No install spec (instruction-only plus a small JS module). Nothing is downloaded or written to disk by an installer; risk from install mechanism is minimal.
Credentials
The skill declares no required env vars, no primary credential, and the code does not reference process.env or other credentials. Requested privileges are proportionate to a routing library.
Persistence & Privilege
always is false and the skill does not modify other skills or system-wide settings. It exposes exportRules/getRules for local config management only.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install task-complexity-router - After installation, invoke the skill by name or use
/task-complexity-router - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial upload
Metadata
Frequently Asked Questions
What is AI Task Router Auto-Route Prompts by Complexity (Local/Cloud)?
Regex-based routing sends simple tasks to local AI, medium to mid-tier, complex to premium — saving 60%+ on API costs. It is an AI Agent Skill for Claude Code / OpenClaw, with 489 downloads so far.
How do I install AI Task Router Auto-Route Prompts by Complexity (Local/Cloud)?
Run "/install task-complexity-router" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is AI Task Router Auto-Route Prompts by Complexity (Local/Cloud) free?
Yes, AI Task Router Auto-Route Prompts by Complexity (Local/Cloud) is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does AI Task Router Auto-Route Prompts by Complexity (Local/Cloud) support?
AI Task Router Auto-Route Prompts by Complexity (Local/Cloud) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created AI Task Router Auto-Route Prompts by Complexity (Local/Cloud)?
It is built and maintained by Shadow Rose (@theshadowrose); the current version is v1.0.0.
More Skills