Extract specific fields from YAML files efficiently using qq instead of reading entire files, saving 80-95% context.
Extract specific fields from large YAML files using yq to save 80-95% context, instead of reading entire files. Use when querying Docker Compose, GitHub Actions, or Kubernetes configs for specific values.
/plugin marketplace add xdg/xdg-claude/plugin install context-efficient-tools@xdg-claudeThis skill inherits all available tools. When active, it can use any tool Claude has access to.
reference/yq-guide.mdUse yq to extract specific fields from YAML files without reading entire file contents, saving 80-95% context usage.
Use yq when:
Just use Read when:
JSON files → Use jq
YAML files → Use yq
Both tools extract exactly what you need in one command - massive context savings.
# Get version from package.json
jq -r .version package.json
# Get service ports from docker-compose
yq '.services.*.ports' docker-compose.yml
For comprehensive yq patterns, syntax, and examples, load yq guide: