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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "rtk-rewrite" with this command: npx skills add luw2007/rtk-rewrite

RTK Rewrite OpenClaw Plugin

This plugin hooks into OpenClaw's before_tool_call lifecycle:

  • Intercepts only exec tool 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. 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.

Verification

rtk rewrite "git status"
rtk hook-audit --since 7 -v

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

A2A Delegation Setup

Guided setup and troubleshooting for installing, enabling, configuring, verifying, and updating @aramisfa/openclaw-a2a-outbound in OpenClaw.

Registry SourceRecently Updated
2870Profile unavailable
General

Lunara Voice

Bundle for Lunara Voice OpenClaw plugin with install and publish helpers

Registry SourceRecently Updated
6932Profile unavailable
Automation

Zhuge Skill

利用64卦推演和多数据源,提供足球比赛预测、经验自学习和多场决策支持的智能辅助工具。

Registry SourceRecently Updated
1760Profile unavailable
Security

ClawHub Plugin Packager

Generate, repair, or audit publish-ready native OpenClaw/ClawHub plugin packages from rough, partial, or inconsistent requirements while keeping the plugin z...

Registry SourceRecently Updated
1400Profile unavailable