Skip to content
Skill

yq

by majiayu000

AI Summary

yq is a YAML field extraction tool that lets Claude efficiently query specific data from YAML files while saving 80-95% context usage. Developers working with config files, Kubernetes manifests, and Docker Compose will benefit from faster, more focused file parsing.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "yq" skill in my project.

Please run this command in my terminal:
# Install skill into your project (2 files)
mkdir -p .claude/skills/yq && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/yq/SKILL.md "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/yq/SKILL.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/yq/metadata.json "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/yq/metadata.json"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Extract specific fields from YAML files efficiently using qq instead of reading entire files, saving 80-95% context.

yq: YAML Query and Extraction Tool

Use yq to extract specific fields from YAML files without reading entire file contents, saving 80-95% context usage.

When to Use yq

Use yq when: • Need specific field(s) from structured YAML file • File is large (>50 lines) and only need subset of data • Querying nested structures in YAML • Filtering/transforming YAML data • Working with docker-compose.yml, GitHub Actions workflows, K8s configs Just use Read when: • File is small (<50 lines) • Need to understand overall structure • Making edits (need full context anyway)

Tool Selection

JSON files → Use jq • Common: package.json, tsconfig.json, lock files, API responses YAML files → Use yq • Common: docker-compose.yml, GitHub Actions, CI/CD configs Both tools extract exactly what you need in one command - massive context savings.

Get version from package.json

jq -r .version package.json

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
Adoption100+ stars on GitHub
119 ★ · Growing
DocsREADME + description
Well-documented

GitHub Signals

Stars119
Forks20
Issues1
Updated1mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code