toon-utils
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
02 资源文件 1
- 参考文档_meta.json268 B
03 SKILL.md 正文
TOON (Token-Oriented Object Notation) Skill
This skill provides instructions for reducing token usage by 30-60% when dealing with structured data (JSON, directory structures, API responses).
Setup & Installation
To minimize command overhead and save tokens, you MUST install the official TOON CLI globally before usage:
# Check if toon is installed, install if missing
toon --version || npm install -g @toon-format/cli
Guidelines for Agents
- Always optimize JSON: Convert JSON output to TOON before including it in your context.
- Minimize Command Length: Use the direct
tooncommand instead ofnpxto keep your own prompt usage low. - Prefer pipes: Use standard Unix pipes to send data directly to the
toonconverter.
Commands & Usage
1. Reading JSON Files
Instead of reading raw JSON, pipe it to toon.
cat data.json | toon
2. Fetching APIs
Pipe external API responses directly into toon.
curl -s https://api.example.com/data | toon
Supports all curl flags (e.g., -X POST, -H "Authorization: ...").
3. Listing Directory Structures
Use tree -J or any JSON-outputting tool and pipe to toon.
tree -J path/to/dir | toon
4. Converting In-Line Data
To compress a JSON string for your context:
echo '{"key":"value"}' | toon
Why install TOON?
- Command Token Savings:
toonis shorter thannpx @toon-format/cli, saving tokens every time you run a command. - Execution Speed: Local installation is significantly faster than on-demand fetching.
- Readability: TOON is designed to be highly readable for LLMs.
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.