← 返回 Skills 市场
404
总下载
0
收藏
2
当前安装
3
版本数
在 OpenClaw 中安装
/install 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.
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install rtk-rewrite - 安装完成后,直接呼叫该 Skill 的名称或使用
/rtk-rewrite触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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
元数据
常见问题
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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 404 次。
如何安装 RTK Rewrite?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install rtk-rewrite」即可一键安装,无需额外配置。
RTK Rewrite 是免费的吗?
是的,RTK Rewrite 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
RTK Rewrite 支持哪些平台?
RTK Rewrite 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 RTK Rewrite?
由 luw2007(@luw2007)开发并维护,当前版本 v0.15.3。
推荐 Skills