docs / Command-line tool

mini tool#

Installed with the Python package. Run mini in a terminal to start the interactive guide: build a toolkit from a data file or define fields, then follow the generated GUIA.md. You can also build your own contract with mini build or mini from-schema. The sample families are optional; after downloading them, put --forks DIR before the command, for example mini --forks forks validate response.mini.

Command What it does
mini setup / mini init Interactive guide to build your toolkit from data or fields.
mini integrate PROJECT --bundle .mini [--apply] Locate the AI call, prepare a guide and connect supported Python with a backup.
mini forks Lists the registry families.
mini validate FILE Strict validation; exits 1 on errors.
mini diagnose FILE Lenient validation; prints a JSON report with errors and lines to regenerate.
mini to-json FILE .mini → canonical JSON.
mini from-json FILE -p PREFIX Canonical JSON → .mini.
mini build SAMPLE.json [OTHERS.json] --prefix PREFIX --out .mini Generates the domain toolkit from JSON samples.
mini prompt PREFIX --lang es Specification block for the model prompt.
mini tokens FILE --enc o200k_base Tokens and bytes, declaring the tokenizer.
mini check-forks Checks the five invariants and fixture round-trips.
mini new-fork PREFIX --from PARENT --add "field:type" Creates a new family from another.
mini from-schema SCHEMA.json -p PREFIX JSON Schema (or --pydantic module:Model) → .mini contract.
mini to-schema PREFIX Contract → JSON Schema with x-mini annotations.
mini bench FILE --enc o200k_base Tokens and bytes in .mini, JSON, YAML, CSV and TOON, with the saving versus compact JSON.
mini repair FILE --contract contract.json Safe repair of a domain-toolkit response, without guessing data.
mini from-schema ticket.schema.json -p tk --out contract.json
mini validate response.mini --contract contract.json
mini diagnose response.mini --contract contract.json | jq '.errors'
mini prompt --contract contract.json --lang en > system_prompt.txt
# With the optional ZIP extracted: mini --forks forks check-forks