askill
jq

jqSafety 95Repository

Extract specific fields from JSON files efficiently using jq instead of reading entire files, saving 80-95% context.

0 stars
1.2k downloads
Updated 3/7/2026

Package Files

Loading files...
SKILL.md

jq: JSON Data Extraction Tool

Use jq to extract specific fields from JSON files without loading entire file contents into context.

When to Use jq vs Read

Use jq when:

  • Need specific field(s) from structured data file
  • File is large (>50 lines) and only need subset
  • Querying nested structures
  • Filtering/transforming data
  • Saves 80-95% context vs reading entire file

Just use Read when:

  • File is small (<50 lines)
  • Need to understand overall structure
  • Making edits (need full context anyway)

Common File Types

JSON files where jq excels:

  • package.json, tsconfig.json
  • Lock files (package-lock.json, yarn.lock in JSON format)
  • API responses
  • Configuration files

Quick Examples

# Get version from package.json
jq -r .version package.json

# Get nested dependency version
jq -r '.dependencies.react' package.json

# List all dependencies
jq -r '.dependencies | keys[]' package.json

Core Principle

Extract exactly what is needed in one command - massive context savings compared to reading entire files.

Detailed Reference

For comprehensive jq patterns, syntax, and examples, load jq guide:

  • Core patterns (80% of use cases)
  • Real-world workflows
  • Advanced patterns
  • Pipe composition
  • Error handling
  • Integration with other tools

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

78/100Analyzed 3/8/2026

Solid skill for JSON extraction with clear when-to-use guidance, practical examples, and reference to detailed guide. Well-structured in dedicated skills folder with tags. Lacks step-by-step workflows but provides actionable guidance on when jq saves 80-95% context vs reading entire files.

95
82
85
68
70

Metadata

Licenseunknown
Version-
Updated3/7/2026
Publisherzhongjis

Tags

api