Back to skills
SkillHub ClubShip Full StackFull Stack

jq

Command-line JSON processor. Extract, filter, transform JSON.

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
3,111
Hot score
99
Updated
March 20, 2026
Overall rating
C4.0
Composite score
4.0
Best-practice grade
A88.0

Install command

npx @skill-hub/cli install openclaw-skills-jq

Repository

openclaw/skills

Skill path: skills/gumadeiras/jq

Command-line JSON processor. Extract, filter, transform JSON.

Open repository

Best for

Primary workflow: Ship Full Stack.

Technical facets: Full Stack.

Target audience: everyone.

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: openclaw.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install jq into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/openclaw/skills before adding jq to shared team environments
  • Use jq for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

Original source / Raw SKILL.md

---
name: jq
description: Command-line JSON processor. Extract, filter, transform JSON.
---

# jq

Command-line JSON processor for extracting, filtering, and transforming JSON.

## Installation

**macOS / Linux (Homebrew):**
```bash
brew install jq
```

**All platforms:** See [jqlang.org/download](https://jqlang.org/download/) for packages, binaries, and build instructions.

## Usage

```bash
jq '[filter]' [file.json]
cat file.json | jq '[filter]'
```

## Quick Reference

```bash
.key                    # Get key
.a.b.c                  # Nested access
.[0]                    # First element
.[]                     # Iterate array
.[] | select(.x > 5)    # Filter
{a: .x, b: .y}          # Reshape
. + {new: "val"}        # Add field
del(.key)               # Remove field
length                  # Count
[.[] | .x] | add        # Sum
keys                    # List keys
unique                  # Dedupe array
group_by(.x)            # Group
```

## Flags

`-r` raw output (no quotes) · `-c` compact · `-s` slurp into array · `-S` sort keys

## Examples

```bash
jq '.users[].email' data.json          # Extract emails
jq -r '.name // "default"' data.json   # With fallback
jq '.[] | select(.active)' data.json   # Filter active
jq -s 'add' *.json                     # Merge files
jq '.' file.json                       # Pretty-print
```


---

## Skill Companion Files

> Additional files collected from the skill directory layout.

### _meta.json

```json
{
  "owner": "gumadeiras",
  "slug": "jq",
  "displayName": "jq",
  "latest": {
    "version": "1.2.0",
    "publishedAt": 1768679388324,
    "commit": "https://github.com/clawdbot/skills/commit/ff7c24c549912aec62e02974a623a91fd5fc6d31"
  },
  "history": [
    {
      "version": "1.1.0",
      "publishedAt": 1768428059543,
      "commit": "https://github.com/clawdbot/skills/commit/572d20f9a254fbfe387f616b3b9ecf887ed1c16e"
    }
  ]
}

```