원클릭으로
yq
Extract a known field from a YAML file by running yq instead of reading the whole file.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Extract a known field from a YAML file by running yq instead of reading the whole file.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Structural code search and refactoring via ast-grep. Reach for this when Edit fails with 'old_string not unique', when refactoring across formatting variations, or when matching code shape rather than text.
Get an outline (functions/classes/exports) of a file or package without reading it whole. Use when the question is 'list/show/what's in' rather than 'where is' (search) or 'how does it work' (read).
Use when deciding whether to add a third-party dependency or library, or when evaluating an existing one (npm install, pip install, go get, cargo add, adding to a manifest). Covers crypto/security deps, the build-it-yourself threshold, and transitive-tree risk.
Extract a known field from a JSON file by running jq instead of reading the whole file.
Use when working in a Python repo and about to run python, pip, pytest, ruff, mypy, or any Python tool. Resolves the project virtualenv and requires full ./venv/bin/<tool> paths in all commands, plan files, and subagent prompts. Never run bare pytest or python.
Use when producing substantial prose -- docs, READMEs, design notes, PR descriptions, commit messages, long explanations, or report writeups. The full Strunk & White economy rules, the cut-list of needless constructions, the AI-tell vocabulary blocklist, and cadence guidance. The two always-on guardrails (no em-dashes, avoid AI tells) live in AGENTS.md.
| name | yq |
| description | Extract a known field from a YAML file by running yq instead of reading the whole file. |
When you need a specific field from a YAML file, reach for yq rather than
reading the whole file. 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:
-r -- raw string outputselect(document_index == N) -- pick the Nth doc in a multi-document file (--- separators)yq -o json file.yml | jq '...' -- escape hatch when yq syntax gets uglyFor anything else, yq --help.