mcpField
P
paleo-json

paleo-json

github.com/mocasusAgent workflows2150 installsUpdated 14w ago
Repository

About paleo-json

paleo-json is an agent skill for producing compact structured output in JSON, YAML, and tables while preserving validity and data types. It supports whitespace-only minification through more aggressive array and key compaction.

Key features

  1. 01Compact JSON, YAML, and tables
  2. 02Minify whitespace while preserving validity
  3. 03Collapse repetitive array tails
  4. 04Optional key aliases from a supplied map

Use cases

  1. 01Reduce tokens in structured responses
  2. 02Compact repeated array entries when permitted
  3. 03Minify streaming JSON after the full object is known

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mocasus/paleo --skill paleo-json

After installing, type/paleo-jsonin Claude Code to confirm it loaded.

Details

From the project README

paleo-json

Compact structured output. JSON / YAML / tables → minimal tokens, still valid.

Rules

  • Minify: remove whitespace between tokens (valid JSON stays parseable).
  • Collapse arrays of repeated shapes into a count + 1 example when the consumer allows.
  • Keep keys verbatim unless a documented short alias exists — never invent keys.
  • Preserve: values, types, order where it matters, escaping.
  • YAML: drop comments, shorten, keep indentation minimal but valid.
  • Numbers/booleans/null: never reformat in ways that change type.

Levels

  • lite: minify whitespace only (safest).
  • full (default): minify + collapse repetitive array tails.
  • ultra: minify + alias keys per a provided map.

Switch

  • paleo-json / compact json / minify on. pretty print off.

Gotchas

  • Always return valid, parseable output — a broken payload costs more than the tokens saved.
  • Don't alias keys unless the consumer expects them; default = keep keys.
  • Streaming/chunked JSON: minify only after the full object is known.

Comments

Markdown supported