← ClaudeAtlas

toon-formatlisted

TOON (Token-Oriented Object Notation) encoding for LLM-efficient data representation. 30-60% token savings vs JSON for structured data.
aiskillstore/marketplace · ★ 329 · Code & Development · score 79
Install: claude install-skill aiskillstore/marketplace
# TOON Format Skill TOON is a compact, human-readable encoding of JSON designed for LLM prompts. ## Variables | Variable | Default | Description | |----------|---------|-------------| | VALIDATION_MODE | strict | `strict` (CLI validation required) or `lenient` (parser permissive) | | AUTO_FIX | true | Run fix scripts automatically on validation failure | ## Instructions **MANDATORY** - Follow the format rules in this skill and `reference/format-rules.md`. - Always include explicit `[count]` for arrays - Use 2-space indentation for tabular rows - Add blank line after tabular arrays to terminate them - Use semicolons for nested arrays in cells (NOT commas) ## Red Flags - STOP and Reconsider If you're about to: - Put commas inside quoted strings in tabular cells - Omit the `[count]` from array declarations - Forget the blank line after a tabular array - Use YAML-style `- item` list syntax - Add comments with `#` **STOP** -> Check `reference/format-rules.md` -> Then proceed ## Workflow 1. [ ] Determine if TOON is appropriate (see "When to Use TOON" below) 2. [ ] Design data structure for tabular representation 3. [ ] **CHECKPOINT**: Verify format matches rules 4. [ ] Write TOON with proper indentation 5. [ ] Validate with `npx @toon-format/cli --decode` 6. [ ] If errors, run auto-fix scripts from `reference/validation-tools.md` ## Cookbook ### Format Rules - IF: Writing or editing TOON files - THEN: Read `reference/format-rules.md` - COVERS: Syntax rules, constraints