What problem does it solve?
Exploring unknown JSON APIs or large payloads is slow when you must inspect full data just to learn its shape. This Skill condenses any JSON input into a compact structural schema showing keys and value types, so you can understand the data before writing queries.
Core Features & Use Cases
- Schema Discovery: Replaces object values with type names (string, number, boolean, null) and reduces arrays to their first element's structure.
- Pipe-Friendly: Accepts JSON from files or any command output via stdin, such as gh api or curl responses.
- Use Case: When exploring the GitHub search API for the first time, pipe
gh api search/repositories?q=language:go through the script with perPage=1 to instantly see the response structure instead of reading thousands of lines of raw JSON.
Quick Start
Pipe any JSON output through ./.github/skills/jqschema/jqschema.sh to see its compact structural schema.