From 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rtk-rewrite:rtk-rewriteThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This plugin hooks into OpenClaw's `before_tool_call` lifecycle:
This plugin hooks into OpenClaw's before_tool_call lifecycle:
exec tool callsrtk rewrite "<command>" to request a rewritertk must be installed and available in PATH.
brew install rtk-ai/tap/rtk
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
enabled: Enables rewrite behavior. Default true.verbose: Prints rewrite logs to console. Default false.audit: Writes hook-style audit logs. Default false.auditDir: Optional audit directory. Falls back to RTK_AUDIT_DIR or ~/.local/share/rtk.rtk rewrite "git status"
rtk hook-audit --since 7 -v
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub luw2007/skills --plugin rtk-rewrite