hatch3r-cli-jq

Transform and filter JSON streams with jq query filters.

26|4|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/hatch3r/hatch3r --skill hatch3r-cli-jq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hatch3r-cli-jq
Source: https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-cli-jq
Command: npx skills add https://github.com/hatch3r/hatch3r --skill hatch3r-cli-jq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of extracting, transforming, and filtering JSON data without pulling large payloads into an agent’s context.

Core Features & Use Cases

  • Streamlined JSON querying: Use jq-syntax filters and selectors to precisely extract the fields you need.
  • Pipeline-friendly output: Read from stdin and write to stdout so results slot directly into shell workflows.
  • Common transformation patterns: Project fields, group and count, merge sharded JSON, and emit compact records for downstream tooling.

Quick Start

Use jq to filter PR metadata from GitHub CLI JSON output by running: gh pr list --json number,title,isDraft | jq '.[] | select(.isDraft|not) | .number'

Frequently Asked Questions about hatch3r-cli-jq

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I filter specific fields from a JSON stream in a shell pipeline?

You can filter specific fields from a JSON stream by applying jq query filters and selection expressions to project required data from stdin to stdout. This approach extracts data directly without pulling large payloads into context.

What is the best way to merge sharded JSON records for downstream tooling?

The best way to merge sharded JSON records for downstream tooling is using jq with the --slurp flag. This merges multiple JSON inputs into a single structured array, enabling compact record emission for subsequent processing steps.

How can I extract raw text values from JSON output using jq?

You can extract raw text values from JSON output using jq by applying the -r flag. This strips away JSON formatting and quotes, emitting plain raw strings directly to stdout for use in shell scripts and pipelines.

Does this JSON filtering approach work with GitHub CLI command output?

Yes, this JSON filtering approach works directly with GitHub CLI command output. You can pipe gh command JSON results into jq to select specific fields, such as filtering out draft pull requests and returning only their numbers.

When do I need jq for JSON data transformation instead of parsing it directly?

You need jq for JSON data transformation when processing large payloads that exceed an agent's context limits. It handles precise projection, grouping, and compact structured output over stdin-to-stdout, preventing context overflow.