toon-formatter

Format structured data into TOON v2.0 with configurable array types and delimiters.

Updated Nov 25, 2025
One-click install
npx skills add https://github.com/gounthar/bazel-riscv --skill toon-formatter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: toon-formatter
Source: https://github.com/gounthar/bazel-riscv/tree/main/.claude/skills/toon-formatter
Command: npx skills add https://github.com/gounthar/bazel-riscv --skill toon-formatter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Aggressively formats large structured datasets into TOON v2.0 to save tokens and enable efficient prompts.

Core Features & Use Cases

  • TOON v2.0 Aggressive: 3 array types, 3 delimiters, key folding.
  • Use Case: Compress large API responses for prompt-based agents.
  • Quick Start: Convert a uniform JSON array to a TOON tabular with headers.

Quick Start

Use the tool to encode a 10-item dataset into TOON with a tab delimiter.

Frequently Asked Questions about toon-formatter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce token usage when formatting large structured datasets?

Token usage for structured data drops significantly with TOON v2.0 formatting, which compresses arrays, logs, API responses, and database results by applying aggressive encoding with configurable delimiters and key folding for nested objects.

When should I use TOON formatting instead of sending raw JSON?

Use TOON formatting when your dataset contains arrays with at least five items and sixty percent field uniformity—such as tables, events, transactions, or analytics records—especially in RAG pipelines, tool calls, and agent data exchanges where token efficiency matters.

What array types and delimiters does TOON v2.0 support?

TOON v2.0 supports three array types (tabular, inline, expanded) and three delimiters (comma, tab, pipe), enabling you to select the format that best balances readability and compression for your structured output.

Can I format nested objects with TOON?

Yes, TOON v2.0 includes key folding for nested objects, allowing you to compress hierarchical data structures while maintaining field uniformity across array items.

Does TOON formatting work with API responses and database results?

TOON formatting is designed specifically for API responses, database results, logs, and analytics data—any uniform structured output where compression and encoding efficiency reduce prompt size.

What is the Zig encoder option in TOON formatting?

The optional Zig encoder is an additional performance optimization for TOON formatting that further reduces token usage by applying specialized encoding to already-compressed structured data.