rtk-token-saver
Skill1 starsChanged 5 months agoMITView on GitHub
Use rtk to reduce token usage from common shell, git, search, file-reading, test, build, and lint commands while preserving raw-output fallbacks when exact output is required.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Fei2-Labs/skill-genieword for word, first seen Sep 24, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Fei2-Labs/skill-genie★ 12100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- aegis-protocolSkill
- ai-csuiteSkill
- browser-driverSkill
- chinese-humanizerSkill
- close-loopSkill
- de-ai-englishSkill
- dev-inboxSkill
- foxcode-openclawSkill
- git-cryptSkill
- handoff-receiverSkill
- image-prompt-engineerSkill
- init-rulesSkill
- linuxdo-applicationSkill
- npm-publishSkill
- omnidebug-autopilotSkill
- psychology-masterSkill
- refactor-agents-mdSkill
- research-to-wechatSkill
- session-handoffSkill
- shared-memorySkill
- stalwart-dokploy-resend-relaySkill
- web-compliance-builderSkill
- wechat-compliance-checkSkill
- wordpress-vps-installSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 21 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when a task involves shell commands that may produce large output, especially repository inspection, git history, diffs, …
- Distinctive: line 16
Use RTK by default for:
- Distinctive: line 19
Search commands across large repositories.
- Distinctive: line 21
Test, lint, typecheck, and build commands where failures are the main signal.
- Distinctive: line 24
Do not use RTK when:
- Distinctive: line 33
Before relying on RTK, check whether it is available:
- Distinctive: line 41
If RTK is missing, do not install it silently.
- Distinctive: line 57
Instead of broad raw commands such as:
- Distinctive: line 74
Use native grep, ripgrep, or repository search tools when exact match behavior, line ranges, or complete output is required.
- Distinctive: line 89
Use raw git commands when applying patches, generating exact diffs for review, or feeding output into another tool.
- Distinctive: line 93
Prefer RTK wrappers for high-noise checks:
- Distinctive: line 109
If a compact failure summary is not enough to fix the issue, rerun the smallest failing command natively with flags that show the exact …
- Distinctive: line 125
Use raw output only when full logs are required for auditing, exact reproduction, or external attachment.
- Distinctive: line 129
Check whether RTK is installed when the task would benefit from compact command output.
- Distinctive: line 130
Use the RTK command that corresponds to the native command.
- Distinctive: line 132
If RTK hides information needed for correctness, rerun the native command with the narrowest scope that exposes the missing detail.
- Distinctive: line 137
Never use RTK as an excuse to skip validation.
- Distinctive: line 138
Never claim a test, lint, typecheck, or build passed unless the command exit status succeeded.
- Distinctive: line 139
Do not use RTK for commands whose output must be consumed exactly by a script or parser.
- Distinctive: line 140
Do not run broad commands just because RTK compresses output.
- Distinctive: line 145
When RTK was used for important work, summarize:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
RTK Token Saver
Use this skill when a task involves shell commands that may produce large output, especially repository inspection, git history, diffs, search, file reading, tests, linting, builds, logs, containers, or package manager output.
RTK is a CLI proxy that filters and compresses command output before it enters the agent context. Prefer RTK when compact output is enough to make the next decision. Use raw commands when exact bytes, full JSON, full logs, cryptographic material, or complete unmodified output is required.
Activation Rules
Use RTK by default for:
- Directory listings and tree-like exploration.
- Git status, diffs, logs, pull, push, and GitHub CLI summaries.
- Search commands across large repositories.
- Reading large files when a concise view is sufficient.
- Test, lint, typecheck, and build commands where failures are the main signal.
- Docker, Kubernetes, AWS, package manager, and log output that may be noisy.
Do not use RTK when:
- The user explicitly asks for raw or complete output.
- The next step requires exact formatting, exact bytes, or complete structured data.
- A command output will be parsed programmatically by another command.
- Security-sensitive values may be exposed; avoid reading secrets at all.
- RTK is not installed or the relevant RTK wrapper fails. Fall back to the native command and keep output scoped.
Install and Verify
Before relying on RTK, check whether it is available:
which rtk
rtk --version
rtk gainIf RTK is missing, do not install it silently. Report that RTK is unavailable and run the native command with the narrowest safe scope.
Command Mapping
Repository and File Exploration
Prefer:
rtk ls .
rtk find "*.ts" .
rtk read path/to/file.ts
rtk read path/to/file.ts -l aggressive
rtk smart path/to/file.tsInstead of broad raw commands such as:
ls -laR .
find . -type f
cat path/to/large-file.tsSearch
Prefer:
rtk grep "pattern" .
rtk grep "functionName" srcUse native grep, ripgrep, or repository search tools when exact match behavior, line ranges, or complete output is required.
Git
Prefer:
rtk git status
rtk git diff
rtk git diff --stat
rtk git log -n 10
rtk gh pr list
rtk gh pr view 42Use raw git commands when applying patches, generating exact diffs for review, or feeding output into another tool.
Tests, Lint, Typecheck, and Build
Prefer RTK wrappers for high-noise checks:
rtk test npm test
rtk jest
rtk vitest
rtk pytest
rtk cargo test
rtk go test
rtk lint
rtk tsc
rtk next build
rtk cargo clippy
rtk ruff checkIf a compact failure summary is not enough to fix the issue, rerun the smallest failing command natively with flags that show the exact failure.
Logs and Services
Prefer:
rtk docker ps
rtk docker logs <container>
rtk docker compose ps
rtk kubectl pods
rtk kubectl logs <pod>
rtk aws logs get-log-events
rtk log path/to/app.logUse raw output only when full logs are required for auditing, exact reproduction, or external attachment.
Workflow
- Check whether RTK is installed when the task would benefit from compact command output.
- Use the RTK command that corresponds to the native command.
- Inspect the compact output and decide the next smallest action.
- If RTK hides information needed for correctness, rerun the native command with the narrowest scope that exposes the missing detail.
- Record validation commands exactly, including whether RTK or native output was used.
Guardrails
- Never use RTK as an excuse to skip validation.
- Never claim a test, lint, typecheck, or build passed unless the command exit status succeeded.
- Do not use RTK for commands whose output must be consumed exactly by a script or parser.
- Do not run broad commands just because RTK compresses output; keep command scope targeted.
- Respect project-specific tool preferences. If a project provides a preferred test or lint command, wrap that command with RTK only when compact output is appropriate.
Completion Output
When RTK was used for important work, summarize:
- The RTK commands run.
- Whether any native command was rerun for exact output.
- Final validation status.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

