用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill jq-processing命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | jq-processing |
| description | Using jq to parse, filter, and aggregate JSON data from CLI tools for generating reports. |
jq '.' - pretty-print JSONjq '.field' - extract a fieldjq 'length' - count array elementsjq '[.[] | select(.cond)]' - filter arrays# Parse ISO 8601 date to epoch
echo '"2024-12-15T10:30:00Z"' | jq 'fromdateiso8601'
# Compute difference in days between two dates
jq -n '("2024-12-20T00:00:00Z" | fromdateiso8601) - ("2024-12-15T00:00:00Z" | fromdateiso8601) | . / 86400'
# Output: 5
# Round to 1 decimal place
jq -n '3.14159 * 10 | round / 10'
# Output: 3.1
jq -n \
--argjson pr_total 50 \
--argjson pr_merged 40 \
--arg top "user1" \
'{
pr: { total: $pr_total, merged: $pr_merged, top_contributor: $top }
}'
# Check if any label name contains "bug" (case-insensitive)
echo "$issues_json" | jq '
[.[] | select(.labels | any(.name | test("bug"; "i")))]
'