/context-efficient-tools:yqfrom context-efficient-tools
Extracts specific fields from YAML files using yq instead of reading the whole file. Includes syntax reminders for raw output, multi-document selection, and JSON piping.
Ships in context-efficient-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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:
-r -- raw string output (no surrounding quotes)select(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.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/ast-grepStructural 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./code-structureOutline a file or package (functions, classes, methods, types, imports, exports) instead of reading it whole. Use before opening an unfamiliar or large file to orient, when surveying a package's API surface, or to find where a symbol is defined so you can Read just that range -- any "what's in / list / show me the structure of" need. Not for "where is X used" (search) or "how does X work" (read the body)./jqnpx claudepluginhub xdg/xdg-claude --plugin context-efficient-toolsOther plugins' skills for the same job