toon-format
TOON (Token-Oriented Object Notation) encoding for LLM-efficient data representation. 30-60% token savings vs JSON for structured data.
npx skills add majiayu000/claude-skill-registry --skill toon-format --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 pr
- Variables
- Instructions
- Red Flags - STOP and Reconsider
- Workflow
- Cookbook
- Format Rules
- Validation & Fixing
- When to Use TOON
- TOON Syntax
- Key-Value (YAML-like)
- Arrays with Explicit Length
- Tabular Data (Primary Use Case)
- Nested Arrays in Cells
- Multi-line Strings
Validate with official CLI (use --decode, not validate!) npx @toon-format/cli --decode file.toon > /dev/null Auto-fix common issues (run in this order) python3 .claude/ai-dev-kit/dev-tools/scripts/fix_toon_comments.py path/ python3 .claude/ai-dev-kit/dev-tools/scripts/fix_toon_yaml_lists.py path/ python3 .claude/ai-dev-kit/dev-tools/scripts/fix_toon_nested_lists.py path/ python3 .claude/ai-dev-kit/dev-tools/scripts/fix_toon_commas.py path/ python3 .claude/ai-dev-kit/dev-tools/scripts/fix_toon_pipes.py path/ python3 .claude/ai-dev-kit/dev-tools/scripts/fix_toon_multiline.py path/ python3 .claude/ai-dev-kit/dev-tools/scripts/fix_toon_blank_lines.py path/
What does the toon-format skill do?
TOON (Token-Oriented Object Notation) encoding for LLM-efficient data representation. 30-60% token savings vs JSON for structured data.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill toon-format --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
