Yq

From xdg/xdg-claude · View interactive version

Yq is an AI agent skill from the GitHub repository xdg/xdg-claude. Extract a known field from a YAML file by running yq instead of reading the whole file.

How to use this skill

Skill file

yq

When you need a specific field from a YAML file, reach for yq rather than Read. Syntax mirrors jq.

yq '.field' file.yml

Assumes mikefarah/yq (Go-based). The Python kislyuk/yq fork has different syntax; if jq-style queries don't work, check which yq is on PATH.

Three things easy to forget:

For anything else, yq --help.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.