一键导入
jq-cli
Use jq to parse, filter, transform, and format JSON data from the terminal. Essential for processing API responses and structured data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use jq to parse, filter, transform, and format JSON data from the terminal. Essential for processing API responses and structured data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use OpenCLI to turn any website, Electron app, or local tool into a CLI. 50+ adapters for social media, news, finance, and dev tools. Reuses Chrome login sessions with zero credentials. AI-agent ready with structured output.
Use the AWS CLI to manage S3 buckets, Lambda functions, EC2 instances, IAM, DynamoDB, and all AWS services from the terminal. Use this instead of the AWS MCP server.
Use the Azure CLI (az) to manage Azure resources including App Service, Functions, VMs, storage, and databases. Use this instead of the Azure MCP server.
Use Blender from the command line to render 3D scenes, run Python scripts for batch processing, and convert 3D file formats without the GUI.
Use the Docker CLI to build images, run containers, manage volumes, networks, and use Docker Compose for multi-container applications.
Use FFmpeg to convert, process, and manipulate video and audio files from the terminal. Transcode formats, extract audio, create thumbnails, trim clips, and more.
| name | jq-cli |
| description | Use jq to parse, filter, transform, and format JSON data from the terminal. Essential for processing API responses and structured data. |
Lightweight command-line JSON processor. Parse, filter, map, and transform JSON.
echo '{"name":"John"}' | jq '.' # Pretty-print
echo '{"name":"John"}' | jq '.name' # Extract field
echo '{"name":"John"}' | jq -r '.name' # Raw string (no quotes)
cat data.json | jq '.items[0]' # First array element
cat data.json | jq '.items | length' # Array length
jq '.user.name' # Nested field
jq '.user.name // "default"' # Default value if null
jq '{name: .user.name, id: .user.id}' # Construct new object
jq 'keys' # Get object keys
jq 'to_entries' # Convert to key-value pairs
jq '.[0]' # First element
jq '.[-1]' # Last element
jq '.[2:5]' # Slice
jq '.[] | .name' # Map over array, extract name
jq '[.[] | .name]' # Collect results into array
jq 'map(.name)' # Shorthand for above
jq 'map(select(.age > 30))' # Filter array
jq 'sort_by(.name)' # Sort by field
jq 'group_by(.category)' # Group by field
jq 'unique_by(.id)' # Deduplicate
jq 'first' # First element
jq '[limit(5; .[])]' # Take first 5
jq '.[] | select(.status == "active")' # Filter objects
jq '.[] | select(.name | test("^A"))' # Regex filter
jq '.[] | select(.count > 10)' # Numeric filter
jq '.[] | select(.tags | contains(["beta"]))' # Array contains
jq '.[] | {name, email}' # Select specific fields
jq '.items | map({id, title: .name})' # Rename fields
jq '[.[] | . + {processed: true}]' # Add field to all objects
jq '.[] | del(.password)' # Remove field
jq '.items | map(.price) | add' # Sum values
jq '[.[] | .amount] | add / length' # Average
jq -r '.[] | "\(.name): \(.email)"' # String interpolation
jq '.name | ascii_downcase' # Lowercase
jq '.name | split(" ")' # Split string
jq '[.[] | .name] | join(", ")' # Join array to string
jq -r '.[] | [.name, .email] | @csv' # Output as CSV
jq -r '.[] | @tsv' # Output as TSV
jq -r '@html' # HTML escape
jq -r '@uri' # URL encode
jq -s '.' # Slurp multiple inputs into array
jq -c '.' # Compact output (one line)
-r (raw output) when the result is a string you want to use-e (exit status) for conditional checks: jq -e '.error' && echo "has error"-c for compact output when piping to other tools-s (slurp) to combine multiple JSON inputs into one array// for default values to handle null fields gracefully| for complex transformations@base64d to decode base64 values in JSONcurl -s https://api.example.com/users | jq '[.data[] | {id, name, email}]'
cat orders.json | jq '[.[] | select(.total > 100) | {id, customer: .user.name, total}] | sort_by(-.total)'