Skills
Skill 20 of 54
Infer JSON structure and types with jq-based schema discovery.
1 minute · 58 words · 1 sections
Install
npx skills add github/gh-aw --skill jqschemanpx skills add github/gh-awThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Use ./.github/skills/jqschema/jqschema.sh to generate a compact structural schema (keys + types) from JSON input. Pipe any JSON source through it to discover structure before querying full data.
# Analyze a file or command output
cat data.json | ./.github/skills/jqschema/jqschema.sh
gh api search/repositories?q=language:go | ./.github/skills/jqschema/jqschema.shThe script replaces object values with type names ("string", "number", "boolean", "null"), reduces arrays to first-element structure, and outputs compact JSON. Use perPage: 1 to fetch minimal data when exploring unknown API shapes.
Example: {"total_count":1000,"items":[{"login":"user1","id":123}]} → {"total_count":"number","items":[{"login":"string","id":"number"}]}
main, last pushed 24 September 2026.SKILL.md, not by matching a directory convention. 4 distinct layouts observed: .claude/skills/*/SKILL.md, .github/skills/*/SKILL.md, .squad/*/skill.md, SKILL.md (repo root)./github/gh-aw.md, and each skill at its own .md URL.2 files · 4 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of skill 20.
Everything else published alongside the skill.