bnadlerjr/dotfiles/using-jq
Claude Code and agent skill by bnadlerjr/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
jq command-line JSON processor expertise covering basic usage and CLI tool integration patterns. Use when processing JSON output from CLI tools (jira, gh, curl), extracting fields from API responses, transforming JSON data structures, or formatting JSON for shell consumption.
Install
npx vskill@latest install bnadlerjr/dotfiles/using-jqSKILL.md
Using jq
Expert guidance for processing JSON on the command line with jq.
Quick Start
For immediate help, identify your task type and consult the relevant reference:
| Working On | Reference File | Key Topics | |
|---|---|---|---|
| Filter syntax, arrays, objects | core-filters | Access, select, map, conditionals, built-ins | |
| Jira CLI, GitHub CLI, curl | cli-integrations | Tool-specific JSON patterns | |
| Shell variables, TSV, CSV | output-formatting | -r, @tsv, @csv, null handling |
Core Principles
Use -e for Error Detection
Always use jq -e when checking for values — it sets exit code 1 when the result is false or null, enabling proper error handling in shell pipelines.
Use -r for Shell Consumption
Always use jq -r when the output feeds into shell variables, pipes, or further processing. Without -r, strings include surrounding quotes.
Build Filters Incrementally with Pipe
Compose complex filters by chaining simple ones with |:
Inject Variables with --arg
Never interpolate shell variables into jq filter strings. Use --arg and --argjson:
Common Pattern Template
The canonical pipeline pattern for extracting data from a command:
For multiple fields per record:
Anti-Patterns
String Interpolation in Filters
Using grep/sed on JSON
Unquoted jq Output in Shell
Ignoring Null Values
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude/skills/using-jq/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bnadlerjr/dotfiles/using-jq)