用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/diegosouzapw/awesome-omni-skill --skill json-yaml命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Token-efficient tracking for AI orchestration. CLI-first for status updates (~50 tokens), agent fallback for complex ops (~1KB). Use when: updating task status, querying blockers, creating progress files, validating phases.
AshAi extension guidelines for integrating AI capabilities with Ash Framework. Use when implementing vectorization/embeddings, exposing Ash actions as LLM tools, creating prompt-backed actions, or setting up MCP servers. Covers semantic search, LangChain integration, and structured outputs.
This skill should be used when solving hard questions, complex architectural problems, or debugging issues that benefit from GPT-5 Pro or GPT-5.1 thinking models with large file context. Use when standard Claude analysis needs deeper reasoning or extended context windows.
基于 SOC 职业分类
正在显示 SKILL.md
| name | json-yaml |
| description | Process JSON, YAML, CSV, and XML data (jq, yq, awk). |
| tags | ["json","yaml","data","cross-platform"] |
Transform and query structured data using jq, yq, and standard Unix tools.
Pretty print:
exec: cat /path/to/data.json | jq .
Extract field:
exec: cat /path/to/data.json | jq '.field.nested'
Extract from array:
exec: cat /path/to/data.json | jq '.[0].name'
Filter array:
exec: cat /path/to/data.json | jq '[.items[] | select(.status == "active")]'
Map / transform:
exec: cat /path/to/data.json | jq '[.users[] | {name: .name, email: .email}]'
Count items:
exec: cat /path/to/data.json | jq '.items | length'
Sort by field:
exec: cat /path/to/data.json | jq '.items | sort_by(.date) | reverse'
Group by:
exec: cat /path/to/data.json | jq '[.items[] | {key: .category, value: .}] | group_by(.key)'
Merge objects:
exec: jq -s '.[0] * .[1]' file1.json file2.json
Modify value in place:
exec: jq '.version = "2.0.0"' /path/to/package.json > /tmp/tmp.json && mv /tmp/tmp.json /path/to/package.json
JSON to CSV:
exec: cat /path/to/data.json | jq -r '.[] | [.name, .email, .age] | @csv'
Read field:
exec: yq '.metadata.name' /path/to/config.yaml
Set field:
exec: yq -i '.spec.replicas = 3' /path/to/deployment.yaml
Convert YAML to JSON:
exec: yq -o=json '.' /path/to/config.yaml
Convert JSON to YAML:
exec: yq -P '.' /path/to/data.json
Merge YAML files:
exec: yq eval-all '. as $item ireduce({}; . * $item)' base.yaml override.yaml
List array items:
exec: yq '.items[].name' /path/to/config.yaml
View CSV with column alignment:
exec: column -t -s',' /path/to/data.csv | head -20
Extract specific column (awk):
exec: awk -F',' '{print $1, $3}' /path/to/data.csv
Filter rows:
exec: awk -F',' '$3 > 100 {print $0}' /path/to/data.csv
Count unique values in a column:
exec: awk -F',' '{print $2}' /path/to/data.csv | sort | uniq -c | sort -rn
CSV to JSON (with jq):
exec: python3 -c "import csv, json, sys; r=csv.DictReader(open('$FILE')); print(json.dumps(list(r), indent=2))"
Format XML:
exec: xmllint --format /path/to/data.xml
XPath query:
exec: xmllint --xpath '//element/@attr' /path/to/data.xml
XML to JSON (with yq):
exec: yq -p=xml -o=json '.' /path/to/data.xml
Read TOML:
exec: yq -p=toml '.' /path/to/config.toml
TOML to JSON:
exec: yq -p=toml -o=json '.' /path/to/config.toml
Parse inline:
exec: echo '{"name":"test","value":42}' | jq '.name'
Build JSON:
exec: jq -n --arg name "test" --arg val "42" '{name: $name, value: ($val | tonumber)}'
jq is usually pre-installed on macOS; install with apt install jq (Linux) or brew install jq.yq (Mike Farah's version) handles YAML/JSON/XML/TOML. Install: brew install yq or snap install yq.xmllint is part of libxml2-utils on Linux, pre-installed on macOS.jq --stream or yq --stream.