jq
Command-line JSON processor. Extract, filter, transform JSON.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/gumadeiras/jqjq
Command-line JSON processor for extracting, filtering, and transforming JSON.
Installation
macOS / Linux (Homebrew):
brew install jq
All platforms: See jqlang.org/download for packages, binaries, and build instructions.
Usage
jq '[filter]' [file.json]
cat file.json | jq '[filter]'
Quick Reference
.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
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
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-gumadeiras-jq": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
gotrain
MTA system train departures (NYC Subway, LIRR, Metro-North). Use when the user wants train times, schedules, or service alerts for MTA transit. Covers MTA Subway, LIRR, and Metro-North across the greater New York area.
apple-mail-search
Apple Mail search on macOS with fast metadata and full body lookup. Use for finding messages in Mail.app by subject/sender/recipient/date, opening messages, and reading full body text.
lastfm
Access Last.fm listening history, music stats, and discovery. Query recent tracks, top artists/albums/tracks, loved tracks, similar artists, and global charts.
little-snitch
Control Little Snitch firewall on macOS. View logs, manage profiles and rule groups, monitor network traffic. Use when the user wants to check firewall activity, enable/disable profiles or blocklists, or troubleshoot network connections.
calcurse
A text-based calendar and scheduling application. Use strictly for CLI-based calendar management.