AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

add-rtk (rtk token-compression proxy installer)

Installs the rtk CLI proxy and wires it into nanoclaw agent containers via a PreToolUse hook for 60–90% token savings on dev commands.

AutomationAdvanced★ 30,471⑂ 12,865AI score 7/10Last updated: Aug 9, 2026

What it does

  • Installs the rtk binary on the host at ~/.local/bin/rtk.
  • Adds a read-only mount to /usr/local/bin/rtk inside a target agent group's containers using ncl groups config add-mount.
  • Injects a PreToolUse hook (rtk hook claude) into the group's settings.json with an idempotent jq command, so every Bash call is filtered through rtk without any CLAUDE.md instructions.
  • Covers container restart, mount/hook verification, and troubleshooting for missing binary, non-firing hooks, and permission errors.

Who it's for

  • Operators running nanoclaw agent groups in Docker containers.
  • Teams burning tokens on verbose output from git, cargo, pytest, docker, kubectl.
  • Anyone who prefers hook-level optimization over prompt-level instructions.

Examples

  1. "Add rtk to group ag-1776342942165-ptgddd" → runs install, mount, hook write, and restart in order.
  2. Container reports rtk: command not found → checks the mount config and restarts the group.
  3. After setup, run ~/.local/bin/rtk gain to see actual token savings.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/nanocoai/nanoclaw/HEAD/.claude/skills/add-rtk/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on AI Skill Mart.
Copy the .claude/skills/add-rtk folder from the GitHub repo nanocoai/nanoclaw into my ~/.claude/skills/add-rtk/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/nanocoai/nanoclaw.git && mkdir -p ~/.claude/skills && cp -r nanoclaw/.claude/skills/add-rtk ~/.claude/skills/

⚠ This is a third-party skill. Check the source repository before installing.

  1. Open a terminal and clone the repo: git clone https://github.com/nanocoai/nanoclaw.git
  2. Copy the skill folder: mkdir -p ~/.claude/skills && cp -r nanoclaw/.claude/skills/add-rtk ~/.claude/skills/
  3. Restart Claude Code and confirm add-rtk appears in your skills list.
  4. Prerequisites: the nanoclaw ncl CLI, Docker, and jq; run from the host since the mount verb is rejected inside containers.
  5. Ask Claude: "install rtk for group <group-id>" to walk through Steps 1–5.
  6. Make sure ~/.local/bin is in ~/.config/nanoclaw/mount-allowlist.json, then verify with rtk --version inside the container.