moai-formats-data

Compress structured data into TOON format to reduce LLM token usage.

1.2k|214|Updated Sep 16, 2025
One-click install
npx skills add https://github.com/modu-ai/moai-adk --skill moai-formats-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-formats-data
Source: https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-formats-data
Command: npx skills add https://github.com/modu-ai/moai-adk --skill moai-formats-data

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Data format management for modern apps, covering TOON encoding, JSON/YAML optimization, serialization patterns, and data validation to reduce payload size and improve performance.

Core Features & Use Cases

  • TOON Encoding: 40-60% token reduction for LLM communication.
  • Serialization & Validation: Efficient patterns, schema validation, and type checks.
  • Use Case: Transform large config sets between JSON, YAML, and TOON for efficient network transfer.

Quick Start

Run a quick TOON encode/decode: encoder = TOONEncoder(); toon = encoder.encode({"a":1}); original = encoder.decode(toon)

Frequently Asked Questions about moai-formats-data

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

FAQPage Schema
How much do TOON formats reduce token usage compared to JSON?

TOON encoding achieves 40-60% token reduction on typical structured data compared to JSON, making it ideal for LLM communication where payload size directly impacts cost and latency.

How do I convert JSON and YAML to TOON format?

Use the TOONEncoder to convert between formats: instantiate the encoder, call encode() to convert JSON/YAML to TOON, and decode() to restore the original data losslessly.

Can I validate data schema while encoding to TOON?

Yes, the Skill includes streaming and batch validation with schema management, enabling type checks and format validation during serialization for performance-critical workflows.

Does TOON encoding work with large datasets and streaming?

The Skill supports streaming large datasets and dynamic schema evolution, allowing you to encode and validate data in batches without loading entire payloads into memory.

What Python versions does TOON serialization support?

TOON encoding and validation run on Python 3.8 and later, with optional orjson integration for ultra-fast JSON handling on supported platforms.