AGENT SKILL
json-tools
Parse, query, and transform JSON data
使用场景Skill与智能体开发
- License 许可
- MIT
- 所属仓库
- gebruder/wirken
- 最近更新
- 2026-11-11
- Stars
- ★ 211
- Forks
- 15
01 前言 Front Matter
- name
- json-tools
- metadata
- { "wirken": { "requires": { "bins": [ "jq" ] } } }
- description
- Parse, query, and transform JSON data
- permissions
- { "tools": { "allow": [ "exec" ] }, "egress": { "mode": "deny" }, "inference": { "allow": [ "*" ] } }
- disable-model-invocation
- false
02 资源文件 3
- 其他SKILL.deleg128 B
- 其他SKILL.pub64 B
- 其他SKILL.sig128 B
03 SKILL.md 正文
JSON Tools
Parse and transform JSON using jq.
Query
- Pretty print:
echo '<json>' | jq . - Get field:
echo '<json>' | jq '.field' - Nested field:
echo '<json>' | jq '.a.b.c' - Array element:
echo '<json>' | jq '.[0]' - Array length:
echo '<json>' | jq 'length'
Filter and transform
- Select fields:
echo '<json>' | jq '{name: .name, id: .id}' - Filter array:
echo '<json>' | jq '.[] | select(.status == "active")' - Map:
echo '<json>' | jq '[.[] | .name]' - Sort:
echo '<json>' | jq 'sort_by(.date)' - Group:
echo '<json>' | jq 'group_by(.type)' - Unique:
echo '<json>' | jq '[.[].category] | unique'
File operations
- Read and query:
jq '.key' file.json - Compact:
jq -c . file.json - Raw strings (no quotes):
jq -r '.name' file.json - Convert to CSV:
jq -r '.[] | [.name, .value] | @csv' file.json
04 同仓库更多 Skills
web-fetch
Fetch and extract content from URLs
★ 211
weather
Get current weather and forecasts
★ 211
tmux
Manage tmux terminal sessions
★ 211
system-info
System information and monitoring
★ 211
ssh
SSH key management and remote connections
★ 211
process-manager
Monitor and manage system processes
★ 211