Rtk rewrite
RTK rewrite plugin for OpenClaw. Intercepts exec tool calls and delegates rewrites to rtk rewrite to reduce token usage while preserving command intent.From its SKILL.md
npx -y skills add luw2007/skills --skill rtk-rewriteAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.4 KB, as published. Nobody here has run it
RTK Rewrite OpenClaw Plugin
This plugin hooks into OpenClaw's before_tool_call lifecycle:
- Intercepts only
exectool calls - Calls
rtk rewrite "<command>"to request a rewrite - Replaces the original command when a rewrite is available
- Supports optional audit logs compatible with Claude Code hook audit format
Prerequisites
rtk must be installed and available in PATH.
brew install rtk-ai/tap/rtk
Install Plugin Files
Copy plugin files to the OpenClaw extensions directory:
mkdir -p ~/.openclaw/extensions/rtk-rewrite
cp index.ts openclaw.plugin.json ~/.openclaw/extensions/rtk-rewrite/
openclaw config set plugins.entries.rtk-rewrite.enabled true
openclaw gateway restart
Configuration
enabled: Enables rewrite behavior. Defaulttrue.verbose: Prints rewrite logs to console. Defaultfalse.audit: Writes hook-style audit logs. Defaultfalse.auditDir: Optional audit directory. Falls back toRTK_AUDIT_DIRor~/.local/share/rtk.
Verification
rtk rewrite "git status"
rtk hook-audit --since 7 -v