toon
✓将 JSON 转换为紧凑的 TOON 格式以减少令牌使用。在检查 JSON API、处理大型 JSON 有效负载或在向 LLM 发送数据时降低令牌成本时使用。
SKILL.md
| -o, --output | Output file (stdout if omitted) | | -e, --encode | Force encode mode (JSON → TOON) | | -d, --decode | Force decode mode (TOON → JSON) | | --stats | Show token savings (encode only) | | --delimiter | Array delimiter: , (default), \t, | | | --keyFolding safe | Collapse nested objects to dotted paths |
| --expandPaths safe | Expand dotted paths when decoding |
TOON uses indentation instead of braces and brackets, with inline arrays and tabular object arrays:
将 JSON 转换为紧凑的 TOON 格式以减少令牌使用。在检查 JSON API、处理大型 JSON 有效负载或在向 LLM 发送数据时降低令牌成本时使用。 来源:knoopx/pi。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/knoopx/pi --skill toon- 分类
- {}数据分析
- 认证
- ✓
- 收录时间
- 2026-02-15
- 更新时间
- 2026-02-18
快速解答
什么是 toon?
将 JSON 转换为紧凑的 TOON 格式以减少令牌使用。在检查 JSON API、处理大型 JSON 有效负载或在向 LLM 发送数据时降低令牌成本时使用。 来源:knoopx/pi。
如何安装 toon?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/knoopx/pi --skill toon 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/knoopx/pi
详情
- 分类
- {}数据分析
- 来源
- skills.sh
- 收录时间
- 2026-02-15