Token Goat — Documentation skill for Claude Code
Token burn reducer and focus keeper for Claude Code, Codex, Copilot, Gemini CLI, and more: surgical read hints, PDF/Office/CSV/markdown file interception, 160+ filter & interception rules, compact man.
How to install Token Goat
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open DFKHelper/token-goat and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Token Goat does
Token burn reducer and focus keeper for Claude Code, Codex, Copilot, Gemini CLI, and more: surgical read hints, PDF/Office/CSV/markdown file interception, 160+ filter & interception rules, compact manifest injection, image shrinking, cache and compact skills, cache MCP calls, prompt injection protections, and much more.
Alternatives in Documentation
- Xlsx — Create, edit, and analyze Excel spreadsheets with formulas, formatting, and visualization 94.1k ★
- Ars Format Convert — ARS academic-paper format-convert mode — convert to LaTeX / DOCX / PDF / Markdown 4.5k ★
- Rainman Translate Book — English 中文 Claude Code Skill,使用并行 subagent 将整本书(PDF/DOCX/EPUB)翻译成任意语言 489 ★
README
title: "AI Token Optimizer — Cuts Costs, Sharpens Focus, Blocks Prompt Injection" description: "Cuts AI tool costs 40–80% and guards against prompt injection. Stops re-reads, extracts one function vs. whole file, shrinks screenshots 97%." image: /token-goat/assets/goat-social.png permalink: /
Token-Goat

***Give the model what it needs, not everything you have.***
**85%** smaller reads · **97.4%** image compression · **180+** filter & interception rules · **94–99%** skill overhead cut · compaction memory · **prompt injection** guard · **3.7 GB** never reached the model · **1.1 Gt** tokens saved
**Reduces AI token use/costs by 40–90%, and improves its focus. Fully automated, always online.**
**Also defends against prompt injection. Every fetched page is scanned for attack patterns and wrapped in an untrusted-content fence before hitting the model. One config line to disable.**
**Your AI re-reads the same file three times. Every compaction causes amnesia. Every build log buries the one line that matters. You pay for all of it. Token-Goat fixes all of it — automatically.**
Token-Goat sits silently between your AI and your tools. Re-read a file? It gets a one-line hint and a narrow-slice suggestion instead of the full file again. Grab a screenshot? A 100 KB copy reaches the model instead of 10 MB. Run `pytest`, `npm install`, `docker build`, or `cargo`? The thousands of progress bars and passing-test names are stripped to the failures before the output even reaches the context window. Open a PDF, a large Markdown doc, or a CSV? The hook intercepts it — heading tree, page count, or column preview — so the model never pays for the full file. Run `gh run watch` or `next dev` a second time? Prior output is recalled rather than re-run. Compact a long session? It gets a clean structured manifest of edited files and key symbols so nothing important is forgotten. Sessions drop 40–90%+ in cost. You change nothing about how you work
Related Skills
Reader Rs
Agent 原生文档阅读、搜索与提取 CLI:PDF / Word(含 .doc)/ EPUB / Office / CSV 等 14 种格式,按页/节读、正则搜、目录批量搜;grep 语义退出码,Rust 单二进制
Markitdown Skill
Claude Code Agent Skill: read Office docs (docx/pptx/xlsx/...) as Markdown via Microsoft MarkItDown — local, t
Crewplane
Run reviewable, resumable coding-agent workflows across Claude Code, Codex, Gemini, GitHub Copilot CLI, or any
Simplified Technical English
Write or rewrite software documentation (README, INSTALL, BUILD, CLI --help, man pages, API docs, code comment
Petit Poucet
Curated, shared Markdown memory for coding agents (Claude Code, GitHub Copilot CLI): one small Rust MCP server
Optimize Instructions
Optimize instruction files for token efficiency using compact markdown format
Related Agents
Secretaria
Operator's office. Invoke to organize priority queue across projects, receive deliveries requiring operator va
Doc Processor
Generate and parse office documents — PDF, DOCX, XLSX, PPTX, CSV. Pure format utility for creating reports, ex
Playwright Skill Executor
Execute complex Playwright scripts for scenarios requiring network interception, custom retry logic, multi-tab