Agent skill

Rtk Skill

by sopaco in sopaco/deepwiki-rs

A skill your agent uses when running shell commands that produce verbose output (git, test, build, lint, package managers, docker).

MITAuto-check passedDevOps & Cloud

Install Rtk Skill

skills CLI
$ npx skills add sopaco/deepwiki-rs --skill rtk-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sopaco/deepwiki-rs rtk-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sopaco/deepwiki-rs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/rtk-skill .claude/skills/rtk-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rtk-skill
GitHub stars
3.1k
Token cost
~1.4k tokens
SKILL.md length
483 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when running shell commands that produce verbose output (git, test, build, lint, package managers, docker).

  • Running shell commands that produce verbose output (git
  • SKILL.md covers Resolve the RTK command (read…, Golden rule, Critical: built-in Read / Grep… and Command reference (by category), plus 7 more sections
  • Calls bunx, git and npx
  • Package managers

What it does

Rtk Skill is an agent skill from sopaco/deepwiki-rs. Use when running shell commands that produce verbose output (git, test, build, lint, package managers, docker). Prefix with rtk to save 60-90% tokens. Terrain projects use explicit rtk prefix (no global hook).

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Linting and formatting, Containers and Git workflow. It works with Git, Docker, Bash and PowerShell. The repository describes itself as: Turn code into clarity. Generate accurate technical docs and AI-ready context in minutes—perfectly structured for human teams and intelligent agents. The licence is MIT.

When your agent uses it

  • Running shell commands that produce verbose output (git
  • Package managers

Example prompts

  • “/rtk-skill”

Requirements

  • Node.js
  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit 27dbd3e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bunx
    • git
    • npx
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rtk Skill loads about 1.4k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 483 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sopaco/deepwiki-rs at commit 27dbd3e, republished under its MIT licence (© sopaco). 483 words, ~1,445 tokens.

Download SKILL.mdSave it as .claude/skills/rtk-skill/SKILL.md (or your agent's skills folder).
name
rtk-skill
description
Use when running shell commands that produce verbose output (git, test, build, lint, package managers, docker). Prefix with rtk to save 60-90% tokens. Terrain projects use explicit rtk prefix (no global hook).
version
1.2.0

RTK Skill (Rust Token Killer)

RTK is a CLI proxy that filters and compresses command output before it reaches the LLM (typically 60–90% token savings).

Resolve the RTK command (read first)

Use conventional paths only — never machine-specific absolute paths like /Users/... or C:\Users\....

On Windows, tools deploy to %USERPROFILE%\.terrain\bin\ (also written as ~/.terrain/bin/ in Git Bash / PowerShell 7+). Binaries use .exe extensions; PATHEXT resolves rtk → rtk.exe.

PriorityCommand prefixWhen
1~/.terrain/bin/rtkTerrain env integration or desktop app (see existence check below)
2bunx @terrain-ai/rtkNo Terrain install; needs network once
3npx @terrain-ai/rtkSame as bunx if Bun unavailable

Optional manifest (local, gitignored): .terrain/env/agent-tools.json — same ~/.terrain/bin/… conventions.

Existence check (cross-platform):

ShellCheck
bash / zsh / Git Bash[ -x ~/.terrain/bin/rtk ] || [ -x ~/.terrain/bin/rtk.exe ]
PowerShellTest-Path "$HOME\.terrain\bin\rtk.exe"
cmdif exist "%USERPROFILE%\.terrain\bin\rtk.exe"

Shell rules:

  • Invoke as ~/.terrain/bin/rtk <cmd> — tilde expands at word start in bash/zsh/Git Bash/PowerShell 7+.
  • Do not export RTK="$(jq -r .rtk …)" then "$RTK" — quoted variables do not expand ~.
  • Do not assume bare rtk is on PATH.

Example (pick one prefix per session after the existence check):

bash
# bash / Git Bash
if [ -x ~/.terrain/bin/rtk ] || [ -x ~/.terrain/bin/rtk.exe ]; then
  PREFIX=~/.terrain/bin/rtk
else
  PREFIX="bunx @terrain-ai/rtk"
fi
$PREFIX git status
powershell
# PowerShell
$PREFIX = if (Test-Path "$HOME\.terrain\bin\rtk.exe") { "$HOME\.terrain\bin\rtk.exe" } else { "bunx @terrain-ai/rtk" }
& $PREFIX git status

Verify:

bash
~/.terrain/bin/rtk gain || bunx @terrain-ai/rtk gain

We do not run rtk init / global hooks.

Golden rule

For any shell command that prints more than a few lines, run it as <rtk-prefix> <cmd> instead of bare <cmd>.

Applies to: git, tests, builds, linters, package managers, docker/kubectl, ls/grep/find, gh, etc.

In examples below, <rtk> means your resolved prefix (~/.terrain/bin/rtk or bunx @terrain-ai/rtk).

Critical: built-in Read / Grep / Glob

Claude Code, Cursor, and similar agents often have native Read/Grep tools that bypass Bash hooks.

Those tools do not auto-rewrite to RTK. For token-efficient file/search workflows, use:

Instead of native toolUse
Read large source file<rtk> read path/to/file.rs
Read signatures only<rtk> read path/to/file.rs -l aggressive
Grep / search repo<rtk> grep "pattern" . or <rtk> rg "pattern"
Find files<rtk> find "*.ts" .
List directory<rtk> ls .

Exception: .terrain/agent/context.md and short knowledge/*.md — read directly (already dense).

Show full SKILL.md (174 more words)Show less

Command reference (by category)

Git (high savings)
bash
<rtk> git status
<rtk> git log -n 20 --oneline
<rtk> git diff
<rtk> git diff --staged
<rtk> add -A && <rtk> git commit -m "msg"
<rtk> git push
<rtk> git pull
Tests (failures-focused, ~90% savings)
bash
<rtk> cargo test
<rtk> test cargo test
<rtk> bun test
<rtk> vitest
<rtk> jest
<rtk> pytest
<rtk> go test
Build & lint
bash
<rtk> cargo build
<rtk> cargo clippy
<rtk> tsc
<rtk> eslint .
<rtk> ruff check
<rtk> next build
Package managers
bash
<rtk> pnpm list
<rtk> bun install
<rtk> pip list
bash
<rtk> ls src/
<rtk> read src/lib/foo.rs
<rtk> read src/lib/foo.rs -l aggressive
<rtk> grep "fn handle_" .
<rtk> find "*.svelte" .
<rtk> diff file1 file2
Containers / cloud (when used)
bash
<rtk> docker ps
<rtk> docker logs <container>
<rtk> kubectl get pods
<rtk> gh pr list
Errors only
bash
<rtk> err npm run build

Global flags

bash
<rtk> -u git status
<rtk> -v cargo test

When command fails

RTK may collapse output but preserves exit codes. On failure, look for a tee path in output:

FAILED: 2/15 tests
[full output: ~/.local/share/rtk/tee/....log]

Read that log if you need the full unfiltered output — do not blindly re-run the same verbose command.

Bypass RTK (rare)

bash
RTK_DISABLED=1 git status

When NOT to use RTK

Use RTKUse other Terrain skills instead
Shell command outputArchitecture → terrain-knowledge-skill / context.md
git test build lintSymbol relations → codegraph-skill
<rtk> read for code slicesStructured repomix index → repomix-context-skill

Workflow order: Terrain knowledge → codegraph → repomix slices → rtk for remaining shell work.

Analytics (optional)

bash
<rtk> gain
<rtk> gain --history
<rtk> discover

Do not

  • Run rtk init or rtk init -g — Terrain owns agent guidance via AGENTS.md
  • Assume hooks rewrite commands — you must type the rtk prefix
  • Re-run identical verbose commands after RTK already summarized them
  • Use wrong rtk package (verify with <rtk> gain)

Complements

  • terrain-knowledge-skill — what project knowledge to read first
  • codegraph-skill — AST/call-graph queries
  • repomix-context-skill — grep repomix pack for source sections

© sopaco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/rtk-skill of sopaco/deepwiki-rs.

Open the folder on GitHubat commit 27dbd3e

Used in 1 other repository

We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in sopaco/deepwiki-rs, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Rtk Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rtk Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rtk Skill this skillsopaco/deepwiki-rs3.1k—~1.4kAutomated safety check: PassMIT
Docker Via WslJMBeresford/retrom2.1k—~832Automated safety check: PassMIT
Ssh Skillbadseal/ssh-skill536—~2.4kAutomated safety check: NotesNone
Pluggedin Stack OpsVeriTeknik/pluggedin-app103—~1.3kAutomated safety check: NotesMIT
Headless Codex CLI AutomationXiaomiMiMo/MiMo-Code14k—~2.7kAutomated safety check: PassMIT
Deploy Playgroundobjeck/objeck-lang165—~2.1kAutomated safety check: WarnCustom licence

Similar skills

  • Docker Via Wsl

    JMBeresford/retrom

    A skill your agent uses when YOU (the AI agent) are running on Windows OUTSIDE WSL (Git Bash/MSYS/PowerShell shell) and need to run ANY docker / docker compose command.

    2.1k GitHub stars~832 tokensUpdated 3 days ago
    DevOps & CloudAuto-check passed
  • Ssh Skill

    badseal/ssh-skill

    A skill your agent uses when a task requires SSH or SCP/SFTP behavior, a remote server, server alias/IP/hostname/user@host, bastion or jump-host access, remote command execution, upload/download…

    536 GitHub stars~2.4k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check: notes
  • Pluggedin Stack Ops

    VeriTeknik/pluggedin-app

    A skill your agent uses when deploying, restarting, verifying or rolling back the containerised plugged.in production stack, when the site returns 404 or 5xx after a deploy or git operation, or when…

    103 GitHub stars~1.3k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Headless Codex CLI Automation

    XiaomiMiMo/MiMo-Code

    Runs OpenAI Codex CLI as a non-interactive worker for CI, Docker, Kubernetes or remote servers, with sandbox modes and JSONL-friendly output.

    14k GitHub stars~2.7k tokensUpdated 4 days ago
    DevOps & CloudAuto-check passed
  • Deploy Playground

    objeck/objeck-lang

    Deploy/refresh the Objeck web playground (playground.objeck.org) on its VPS over SSH — git pull, rebuild the sandbox Docker image, restart the service, health-check.

    165 GitHub stars~2.1k tokensUpdated today
    DevOps & CloudAuto-check: warnings
  • Toolchain Commands

    latitude-dev/latitude-llm

    Installing dependencies, running dev/build/test/lint, filtering packages, single-test runs, git hooks, preparing a clone (.env.development / .env.test), or Docker-backed local services and dev…

    4.7k GitHub stars~1.4k tokensUpdated today
    DevOps & CloudAuto-check: notes

More from sopaco/deepwiki-rs

  • Deepwiki Rs

    sopaco/deepwiki-rs

    AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation.

    3.1k GitHub stars~748 tokensUpdated 23 days ago
    Auto-check passed
  • Codegraph Skill

    sopaco/deepwiki-rs

    A skill your agent uses when a coding agent needs symbol relationships, callers, callees, or change impact.

    3.1k GitHub stars~1.1k tokensUpdated 23 days ago
    Auto-check passed
  • Repomix Context Skill

    sopaco/deepwiki-rs

    A skill your agent uses when an agent needs source code from the local repomix index under .terrain/agent/repomix.md (not committed; regenerate via Terrain scan).

    3.1k GitHub stars~671 tokensUpdated 23 days ago
    Auto-check passed
  • Terrain Knowledge Skill

    sopaco/deepwiki-rs

    A skill your agent uses when a coding agent needs project knowledge from Terrain .terrain/ assets.

    3.1k GitHub stars~891 tokensUpdated 23 days ago
    Auto-check passed

Questions about Rtk Skill

What does Rtk Skill do?

A skill your agent uses when running shell commands that produce verbose output (git, test, build, lint, package managers, docker). Rtk Skill is an agent skill from sopaco/deepwiki-rs. Use when running shell commands that produce verbose output (git, test, build, lint, package managers, docker).

When should I use Rtk Skill?

Rtk Skill fits situations like: running shell commands that produce verbose output (git; package managers.

How do I install Rtk Skill in Claude Code?

Run `npx skills add sopaco/deepwiki-rs --skill rtk-skill -a claude-code`. Or copy the skill folder (.agents/skills/rtk-skill in sopaco/deepwiki-rs) into .claude/skills/rtk-skill in your project. Claude Code loads it when a task matches its description.

How do I install Rtk Skill in Codex?

Run `npx skills add sopaco/deepwiki-rs --skill rtk-skill -a codex`. Or copy the skill folder (.agents/skills/rtk-skill in sopaco/deepwiki-rs) into .agents/skills/rtk-skill in your project. Codex loads it when a task matches its description.

Can I use Rtk Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sopaco/deepwiki-rs --skill rtk-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rtk-skill, .gemini/skills/rtk-skill, .github/skills/rtk-skill and .opencode/skills/rtk-skill in your project.

What does Rtk Skill need to run?

Going by SKILL.md and its folder, Rtk Skill needs the command-line tools its instructions call (bunx, git, npx and jq). Our summary lists: Node.js; Docker.

Does Rtk Skill access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Rtk Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rtk Skill use?

Rtk Skill is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rtk Skill use?

About 1.4k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rtk Skill?

Skills that share tags, products or a category with Rtk Skill: Docker Via Wsl (JMBeresford/retrom, 2.1k stars), Ssh Skill (badseal/ssh-skill, 536 stars), Pluggedin Stack Ops (VeriTeknik/pluggedin-app, 103 stars) and Headless Codex CLI Automation (XiaomiMiMo/MiMo-Code, 14k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rtk Skill?

sopaco (a GitHub user) maintains it in sopaco/deepwiki-rs, which has 3,111 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 14, 2026.

Source: sopaco/deepwiki-rs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.