
Xberg Picking A Format
Use when choosing an output format for extracted documents, plain text, markdown...
Install
npx skills add xberg-io/xberg --skill xberg-picking-a-format -g -a claude-code -y- Repository
- xberg-io/xberg9.5k
- Category
- AI and agents
- Updated
- 3d ago
- License
- MIT
- Context cost
- Lightabout 965 tokens
- Runs scripts
- No, instructions only
What it does
Use when choosing an output format for extracted documents, plain text, markdown, djot, HTML, JSON, or DocTags. Maps consumer (LLM, parser, archive) to the right `--format` / `--content-format` pair.
Picking a format
Xberg has two orthogonal format knobs. Get them right up front and the downstream code stays simple.
| Knob | What it controls | Values | Default |
|---|---|---|---|
--format | How the CLI prints the result | text, json, toon | text (extract), json (batch) |
--content-format | How extracted content is rendered inside result | plain, markdown, djot, html, json, doctags | plain |
--token-reduction | Strip whitespace / boilerplate for LLM contexts | off, light, moderate, aggressive, maximum | off |
--format json returns an envelope wrapping the ExtractedDocument, the
document lives under .result for extract and under .results[] for
batch, with content, metadata, tables, and images as fields of
that nested document. --format text prints just content.
--content-format is what shows up inside that content field.

