jq-lite
Pipe JSON into a query CLI with intuitive dot-notation syntax. Use when you need to extract fields from JSON, filter arrays, transform objects, or format JSON output. Triggers include "query JSON", "extract from JSON", "filter JSON array", "jq", "process JSON in shell", "parse API response", or any task involving JSON data manipulation in the terminal.
Best use case
jq-lite is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Pipe JSON into a query CLI with intuitive dot-notation syntax. Use when you need to extract fields from JSON, filter arrays, transform objects, or format JSON output. Triggers include "query JSON", "extract from JSON", "filter JSON array", "jq", "process JSON in shell", "parse API response", or any task involving JSON data manipulation in the terminal.
Teams using jq-lite should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/jq-lite/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How jq-lite Compares
| Feature / Agent | jq-lite | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Pipe JSON into a query CLI with intuitive dot-notation syntax. Use when you need to extract fields from JSON, filter arrays, transform objects, or format JSON output. Triggers include "query JSON", "extract from JSON", "filter JSON array", "jq", "process JSON in shell", "parse API response", or any task involving JSON data manipulation in the terminal.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# jq-lite (jql)
Pipe any JSON into `jql` and extract, filter, or transform with dot-notation queries.
## Quick Start
```bash
echo '{"name":"Alice","age":30}' | jql '.name'
# "Alice"
curl -s https://api.example.com/users | jql '.users[] | select(.active) | .email'
```
## Common Patterns
```bash
# Extract a field
jql '.name' < data.json
# Array index
jql '.users[0].email' < users.json
# Spread array (each element on its own line)
jql '.users[].name' < users.json
# Filter array
jql '.users[] | select(.active == true)' < users.json
# Map: extract one field from each object
jql '.users | map(.name)' < users.json
# Sort and slice
jql '.items | sort_by(.price) | .[0:5]' < items.json
# Count
jql '.users | length' < users.json
# Object keys
jql 'keys' < config.json
# Group and aggregate
jql '.orders | group_by(.status) | map({status: .[0].status, count: length})' < orders.json
```
## Output Formats
```bash
jql '.users' # pretty-printed JSON with colors
jql -c '.users' # compact single-line JSON
jql -r '.name' # raw string (no quotes)
jql --csv '.users' # CSV with auto-headers
jql --tsv '.users' # TSV
jql --yaml '.config' # YAML
jql --no-color '.' # no ANSI color (for piping to files)
```
## Built-in Functions
| Function | Description |
|---|---|
| `keys` | Sorted array of object keys |
| `values` | Array of object values |
| `length` | Array/string/object size |
| `type` | JSON type as string |
| `has(key)` | Boolean: has property |
| `map(expr)` | Apply to each array element |
| `select(expr)` | Keep if expression is true |
| `sort_by(f)` | Sort by expression |
| `group_by(f)` | Group by expression |
| `unique` | Unique values |
| `flatten` | Flatten nested arrays |
| `to_entries` | `[{key, value}]` from object |
| `from_entries` | Object from `[{key, value}]` |
| `add` | Sum numbers or join strings/arrays |
| `min`, `max` | Array minimum/maximum |
| `first`, `last` | First/last element |
| `test(regex)` | Boolean regex match |
| `ascii_downcase` | Lowercase string |
| `split(s)` | Split string |
| `join(s)` | Join array |
## NDJSON Streaming
```bash
# One JSON object per line: processed independently
cat events.ndjson | jql 'select(.type == "error") | .user'
# --slurp: collect all lines into array
cat events.ndjson | jql -s 'length'
```
## Environment Variables
| Variable | Description | Default |
|---|---|---|
| `JQL_NO_COLOR` | Disable color (0 or 1) | `0` |
| `JQL_COMPACT` | Always compact (0 or 1) | `0` |
| `JQL_RAW` | Always raw output (0 or 1) | `0` |Related Skills
sqlite-data
Query and inspect SQLite databases used by data tools. Use when you need to directly inspect stored pipeline runs, metrics, or configuration data stored in a SQLite database file. Triggers include "query the database", "inspect SQLite", "check raw data", "what is in the db", or any task requiring direct database access.
Skill: Uptime Monitoring
## Overview
Skill: Status Page
## Overview
Skill: unit-conversion
## Overview
Skill: recipe-scaler
## Overview
reading-list
Operate the reading-list API to save, manage, tag, search, and export articles.
email-digest
Configure, test, and troubleshoot the reading-list daily email digest delivered via nodemailer.
websocket-realtime
Use the WebSocket connection in poll-builder to receive live vote updates. Use when you need to stream real-time poll results, monitor a poll for new votes, or build a live dashboard. Triggers include "live results", "real-time updates", "stream votes", "watch poll", or "WebSocket".
poll-builder
Self-hosted poll creation tool with real-time results. Use when you need to create a poll, check vote counts, close a poll, export results, or get the shareable link for a poll. Triggers include "create poll", "vote", "poll results", "survey", "collect votes", "share poll", or any task involving polling or voting.
Skill: personal-finance
## Overview
Skill: csv-import
## Overview
Skill: Syntax Highlighting
## Purpose