$npx -y skills add mocasus/paleo --skill paleo-jsonUse when user says "compact json", "minify output", "tight structured", or the agent must emit JSON / structured data. Strip insignificant whitespace, collapse long arrays, shorten keys where safe, keep it parseable. Cuts tokens on structured payloads. Off: "pretty print" / "huma
| 1 | # paleo-json |
| 2 | Compact structured output. JSON / YAML / tables → minimal tokens, still valid. |
| 3 | |
| 4 | ## Rules |
| 5 | - Minify: remove whitespace between tokens (valid JSON stays parseable). |
| 6 | - Collapse arrays of repeated shapes into a count + 1 example when the consumer allows. |
| 7 | - Keep keys verbatim unless a documented short alias exists — never invent keys. |
| 8 | - Preserve: values, types, order where it matters, escaping. |
| 9 | - YAML: drop comments, shorten, keep indentation minimal but valid. |
| 10 | - Numbers/booleans/null: never reformat in ways that change type. |
| 11 | |
| 12 | ## Levels |
| 13 | - `lite`: minify whitespace only (safest). |
| 14 | - `full` (default): minify + collapse repetitive array tails. |
| 15 | - `ultra`: minify + alias keys per a provided map. |
| 16 | |
| 17 | ## Switch |
| 18 | - `paleo-json` / `compact json` / `minify` on. `pretty print` off. |
| 19 | |
| 20 | ## Gotchas |
| 21 | - Always return valid, parseable output — a broken payload costs more than the tokens saved. |
| 22 | - Don't alias keys unless the consumer expects them; default = keep keys. |
| 23 | - Streaming/chunked JSON: minify only after the full object is known. |