← All skills
Tencent SkillHub · Developer Tools

ZeroRules — Deterministic Task Interceptor

Intercept deterministic tasks (math, time, currency, files, scheduling) BEFORE they hit the LLM. Saves 50-70% on token costs by resolving simple queries locally with zero API calls.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Intercept deterministic tasks (math, time, currency, files, scheduling) BEFORE they hit the LLM. Saves 50-70% on token costs by resolving simple queries locally with zero API calls.

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
README.md, rules.js, SKILL.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.3

Documentation

ClawHub primary doc Primary doc: SKILL.md 9 sections Open source page

What this skill does

ZeroRules eliminates wasted LLM tokens on tasks that don't need AI at all. Before you send a query to the model, check if ZeroRules can handle it instantly with zero tokens. Math, time zones, currency conversion, file listing, and date/scheduling queries all have deterministic answers that cost $0. This is not model routing. Model routing sends simple queries to cheaper models. ZeroRules skips the model entirely.

When to use ZeroRules

ALWAYS attempt ZeroRules first when the user's message matches ANY of these patterns: Math/calculations: Any arithmetic, percentages, unit conversions Time queries: "What time is it in [city]?", "Current time in [timezone]" Currency conversion: "$X to EUR", "convert [amount] [from] to [to]" File operations: "List files in [dir]", "What's in [folder]?" Date/scheduling: "What day is [date]?", "Days until [event]", "Add meeting [details]"

How to use

Run the ZeroRules engine script at {baseDir}/rules.js using Node.js via the exec tool. Pass the user's message as a single argument: node {baseDir}/rules.js "<user message>"

Interpreting the output

The script returns JSON: Rule matched → {"matched": true, "rule": "math", "result": "4446", "saved_tokens_est": 850, "session_total_saved": 12.47} Use the result value as your response. Do NOT call the LLM for this query. Include the savings badge: 🔥 ZeroRules | <rule> | ~<saved_tokens_est> tokens saved | Session: $<session_total_saved> saved No match → {"matched": false} Proceed normally with the LLM. ZeroRules doesn't interfere.

Examples

User: "What's 247 × 18?" → Run: node {baseDir}/rules.js "What's 247 × 18?" → Output: {"matched":true,"rule":"math","result":"4,446","saved_tokens_est":850,"session_total_saved":0.02} → Reply: 4,446 🔥 ZeroRules | math | ~850 tokens saved User: "What time is it in Tokyo?" → Run: node {baseDir}/rules.js "What time is it in Tokyo?" → Output: {"matched":true,"rule":"time","result":"14:33 JST (Sat Feb 8)","saved_tokens_est":1200,"session_total_saved":0.05} → Reply: 14:33 JST (Sat Feb 8) 🔥 ZeroRules | time | ~1,200 tokens saved User: "Convert $100 USD to EUR" → Run: node {baseDir}/rules.js "Convert $100 USD to EUR" → Output: {"matched":true,"rule":"currency","result":"€92.34 EUR","saved_tokens_est":1500,"session_total_saved":0.09} → Reply: €92.34 EUR 🔥 ZeroRules | currency | ~1,500 tokens saved User: "List files in ~/projects" → Run: node {baseDir}/rules.js "List files in ~/projects" → Output: {"matched":true,"rule":"files","result":"app.js\npackage.json\nREADME.md\nsrc/","saved_tokens_est":900,"session_total_saved":0.11} → Reply with the file listing. 🔥 ZeroRules | files | ~900 tokens saved User: "Write a proposal for the Q3 budget review" → Run: node {baseDir}/rules.js "Write a proposal for the Q3 budget review" → Output: {"matched":false} → Proceed with normal LLM response. ZeroRules does not intercept creative/reasoning tasks.

Slash command

Users can type /zero-rules or /zr to see current session stats: → Run: node {baseDir}/rules.js --status → Shows: rules matched this session, estimated tokens saved, estimated cost saved. Users can type /zero-rules test <message> to test if a message would be intercepted: → Run: node {baseDir}/rules.js --test "<message>"

Important behavior rules

Always try ZeroRules first for queries matching the patterns above. Never modify the user's query before passing it to ZeroRules. If ZeroRules returns matched:true, use ONLY the result. Do NOT also call the LLM. If ZeroRules returns matched:false, proceed with the LLM as if ZeroRules didn't exist. Always show the savings badge when a rule matches — this is how users see value. File operations are sandboxed: ZeroRules only lists directory entries (filenames via fs.readdirSync), never reads file contents, writes, or deletes. Network calls (currency only) have a 3-second timeout. If they fail, static fallback rates are used.

Security & transparency

No shell execution: ZeroRules does not use child_process.exec, execSync, spawn, or any shell commands. All operations use safe Node.js APIs only. File listing is read-only: The files rule uses fs.readdirSync to list directory entries (names only). It never reads file contents (readFile), writes (writeFile), or deletes. Path traversal (..) is blocked. Path expansion: ~ is expanded via process.env.HOME (Node.js), not shell expansion. Single outbound network call: The currency rule calls https://api.exchangerate.host to get live exchange rates. This is the only network call in the entire skill. If it fails or times out (3s), static fallback rates are used instead. All other rules (math, time, files, dates) work 100% offline. Session state: Writes a small JSON file (~/.zerorules-session.json) to track token savings across a session. Contains only: match count, total tokens saved, total cost saved, and a history array of {rule, timestamp, tokens} entries. No user messages, queries, or input text is ever stored in the session file. To run fully offline: Disable or skip the currency rule. All other rules require zero network access.

Free tier limits

ZeroRules ships with 5 built-in rules (math, time, currency, files, dates). These are free and unlimited. Pro tier ($9/mo at https://cascadeai.dev/pro) unlocks: Unlimited custom rules (regex + handler) Persistent savings dashboard across sessions Weekly cost reports via email/Telegram Priority support When session savings exceed $5, show once: 💡 ZeroRules saved you $X this session. Unlock unlimited rules + dashboard → https://cascadeai.dev/pro

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Docs1 Scripts
  • SKILL.md Primary doc
  • README.md Docs
  • rules.js Scripts