← Back to Skills Marketplace
luw2007

RTK Rewrite

by luw2007 · GitHub ↗ · v0.15.3 · MIT-0
cross-platform ⚠ suspicious
404
Downloads
0
Stars
2
Active Installs
3
Versions
Install in OpenClaw
/install rtk-rewrite
Description
RTK rewrite plugin for OpenClaw. Intercepts exec tool calls and delegates rewrites to rtk rewrite to reduce token usage while preserving command intent.
Usage Guidance
This plugin appears to do exactly what it claims: intercept exec calls and call your local `rtk rewrite`. Before installing, verify and trust the `rtk` binary you will delegate to (review its source or install method). Avoid enabling audit logging if your commands may contain secrets (or ensure auditDir is a secure local path). Prefer installing RTK from a trusted package manager over piping a remote install script to sh. Test the plugin in a safe environment (verbose mode, with rewriting enabled/disabled) to confirm rewrites are correct and do not change command intent in ways you don't expect.
Capability Analysis
Type: OpenClaw Skill Name: rtk-rewrite Version: 0.15.3 The plugin intercepts all 'exec' tool calls to rewrite commands via an external 'rtk' binary, which is a high-risk capability as it handles all command strings executed by the agent. While the logic appears aligned with its stated purpose of token optimization, the bundle contains minor anomalies including a future-dated 'publishedAt' timestamp in _meta.json and mismatched repository URLs between SKILL.md and openclaw.plugin.json (rtk-ai/rtk vs aimagist/openrtklaw). Additionally, the documentation encourages a high-risk 'curl | sh' installation method for the required dependency, which is a common vector for supply chain attacks.
Capability Assessment
Purpose & Capability
Name/description say it will intercept exec calls and delegate to `rtk rewrite`. The TypeScript hook registers a before_tool_call for toolName === 'exec' and calls `rtk rewrite <cmd>`; config flags match the declared behavior. No unrelated credentials, binaries, or paths are requested by the plugin.
Instruction Scope
SKILL.md and index.ts stay within the claimed scope (intercept exec, call rtk, optionally write audit logs). Notable: the plugin logs original commands to an audit file when audit is enabled, which may record sensitive arguments or secrets. The plugin also replaces and returns the rewritten command for execution — the security of that behavior depends on trusting the `rtk` binary.
Install Mechanism
The skill is instruction-only (no install spec) and requires manual copying into the extensions directory. The README suggests installing `rtk` via Homebrew or a curl | sh installer from a GitHub raw URL; fetching and running remote install scripts is a separate risk (not part of this plugin) that users should evaluate before running.
Credentials
The plugin itself requires no credentials or special env vars. It reads RTK_AUDIT_DIR and HOME for audit log placement, which is reasonable. However, enabling auditing will persist original commands to disk (possible sensitive data), and the plugin delegates functionality to the external `rtk` tool which may require its own credentials or network access — review `rtk`'s own requirements before trusting it.
Persistence & Privilege
The plugin is not always-enabled by default and does not request global privileges. Installation requires copying files into the user's OpenClaw extensions directory and enabling the plugin in config, which is normal for plugins and limited in scope.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install rtk-rewrite
  3. After installation, invoke the skill by name or use /rtk-rewrite
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.15.3
补充 repository 字段并发布 0.15.3
v0.15.2
Bump to 0.15.2 and convert SKILL.md to English
v0.15.1
Initial public release
Metadata
Slug rtk-rewrite
Version 0.15.3
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 3
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 404 downloads so far.

How do I install RTK Rewrite?

Run "/install rtk-rewrite" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is RTK Rewrite free?

Yes, RTK Rewrite is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does RTK Rewrite support?

RTK Rewrite is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created RTK Rewrite?

It is built and maintained by luw2007 (@luw2007); the current version is v0.15.3.

💬 Comments