jq-json-processor
Process, filter, and transform JSON data using jq - the lightweight and flexible command-line JSON processor.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/arnarsson/jq-json-processorWhat This Skill Does
The jq-json-processor skill provides a powerful command-line interface within OpenClaw to manipulate, query, and transform JSON data. At its core, it leverages the industry-standard jq utility, allowing you to slice, filter, map, and reshape complex JSON structures with surgical precision. Whether you are dealing with deeply nested API responses, large configuration files, or raw log data in JSON format, this tool allows you to extract exactly the information you need without writing custom scripts. It supports everything from basic field selection and array manipulation to advanced data aggregation, grouping, and conditional processing, making it an indispensable asset for developers and data engineers alike.
Installation
You can integrate this skill into your agent environment using the ClawHub package manager. Run the following command in your terminal or agent console: clawhub install openclaw/skills/skills/arnarsson/jq-json-processor. Once installed, ensure that the underlying jq binary is available in your system path, as the skill acts as a robust wrapper around this engine.
Use Cases
- API Data Cleaning: Quickly strip out metadata from GitHub, AWS, or custom REST API payloads to keep only the relevant fields.
- Log Parsing: Filter server logs in JSON format to identify specific events or count occurrences of specific status codes.
- Config Management: Automatically update version strings or toggle feature flags in large
package.jsonorconfig.jsonfiles during CI/CD tasks. - Data Conversion: Transform JSON arrays into CSV rows for direct import into spreadsheet software or data visualization tools.
- Debug Workflow: Pipe live curl output directly through this skill to get readable, color-coded, and properly indented output to troubleshoot connectivity issues.
Example Prompts
- "Filter the output of this JSON file to show only the users with an 'active' status and extract their IDs into a list."
- "Take this nested API response and flatten it into a simple table format containing only the user name, email, and primary role."
- "Update the 'version' field in my project's JSON file to '2.1.0' and save it back to the original file."
Tips & Limitations
- Raw Output: Always use the
-rflag if you want to output plain strings without JSON quotes, which is essential for passing data to other shell commands. - Performance: While
jqis highly efficient and written in C, processing multi-gigabyte JSON files in a single pass may consume significant system memory; consider splitting extremely large files first. - Security: Be cautious when using this skill to process JSON files from untrusted sources, as the manipulation commands are executed with the permissions of the agent process.
- Piping: You can chain multiple
jqcalls if a complex transformation is difficult to express in a single filter expression, though a single optimized filter is usually faster.
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-arnarsson-jq-json-processor": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read
Related Skills
docker-essentials
Essential Docker commands and workflows for container management, image operations, and debugging.
fzf-fuzzy-finder
Command-line fuzzy finder for interactive filtering and selection - integrates with shell, vim, and other tools.
git-essentials
Essential Git commands and workflows for version control, branching, and collaboration.
fd-find
A fast and user-friendly alternative to 'find' - simple syntax, smart defaults, respects gitignore.
ssh-essentials
Essential SSH commands for secure remote access, key management, tunneling, and file transfers.