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.

7 stars

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

$curl -o ~/.claude/skills/jq-lite/SKILL.md --create-dirs "https://raw.githubusercontent.com/heldernoid/agentic-build-templates/main/projects/cli-tools/jq-lite/skills/jq-lite/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/jq-lite/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How jq-lite Compares

Feature / Agentjq-liteStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

7
from heldernoid/agentic-build-templates

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

7
from heldernoid/agentic-build-templates

## Overview

Skill: Status Page

7
from heldernoid/agentic-build-templates

## Overview

Skill: unit-conversion

7
from heldernoid/agentic-build-templates

## Overview

Skill: recipe-scaler

7
from heldernoid/agentic-build-templates

## Overview

reading-list

7
from heldernoid/agentic-build-templates

Operate the reading-list API to save, manage, tag, search, and export articles.

email-digest

7
from heldernoid/agentic-build-templates

Configure, test, and troubleshoot the reading-list daily email digest delivered via nodemailer.

websocket-realtime

7
from heldernoid/agentic-build-templates

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

7
from heldernoid/agentic-build-templates

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

7
from heldernoid/agentic-build-templates

## Overview

Skill: csv-import

7
from heldernoid/agentic-build-templates

## Overview

Skill: Syntax Highlighting

7
from heldernoid/agentic-build-templates

## Purpose