json-to-llm-contextlisted
Install: claude install-skill aiskillstore/marketplace
# JSON to LLM Context
## Overview
Use this skill when raw JSON is too noisy for direct prompting. It converts JSON or exported `jsonb`
content into short, readable summaries that preserve entities, status, relationships, and counts.
Prefer this skill for:
- API responses
- PostgreSQL `jsonb` exports
- nested config/state payloads
- large arrays of records that need compact summaries
Do not use this skill for PDF, DOCX, image OCR, or arbitrary prose documents.
## Workflow
1. Confirm the input is valid JSON or `jsonb`-style JSON text.
2. Run `scripts/json_to_readable_context.py` on the file or pipe JSON through stdin.
3. Return the generated readable summary as the primary artifact.
4. If the output still feels too long, rerun with tighter limits such as lower `--max-samples`,
`--max-depth`, or `--max-string-len`.
5. If parsing fails, report the JSON error clearly instead of guessing.
## Quick Start
```bash
python3 scripts/json_to_readable_context.py --input payload.json
```
From stdin:
```bash
cat payload.json | python3 scripts/json_to_readable_context.py
```
Write to a file:
```bash
python3 scripts/json_to_readable_context.py --input payload.json --output summary.txt
```
Common tuning:
```bash
python3 scripts/json_to_readable_context.py \
--input payload.json \
--style sectioned \
--strict \
--preserve status,profile.email \
--show-paths \
--expand collections \
--max-samples 2 \
--max-depth 2 \
--max-string-len 48
```
## Output Style
The