Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
- Added Node.js as a required binary in the skill metadata (now lists "requires": {"bins":["node"]}). - Updated security & transparency section: now explicitly states the session file only records session stats and a history of rule matches, never any user messages or input text. - No changes to the skill’s functionality or usage.v1.0.3 — Declared Node.js in required bins. Session file explicitly stores only counters (match count, tokens saved, cost saved) and rule history ({rule, timestamp, tokens}) — no user messages or queries are ever persisted. Removed unused child_process import. Added full Security & Transparency section.
What This Skill Does
ZeroRules intercepts queries that match deterministic patterns, math, time zones, currency conversion, file listing, and date calculations, and resolves them locally before any LLM call. It returns the result immediately with an estimate of tokens saved. Queries that don't match any rule pass through unchanged.
Unlike model routing, which sends simple queries to a cheaper model, ZeroRules skips the model entirely and resolves answers locally at zero token cost.
When to use it
- Calculating percentages or unit conversions mid-conversation
- Checking current time in a different city or timezone
- Converting currency amounts while reviewing invoices or expenses
- Listing files in a project directory without leaving the chat
- Finding what day of the week a future date falls on
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: What's 247 × 18?
- 1Check if the query matches a ZeroRules pattern
- 2Run rules.js with the user message as the argument
- 3Receive matched:true with rule 'math' and result '4,446'
- 4Return the result to the user with the savings badge
4,446 🔥 ZeroRules | math | ~850 tokens saved