YAML Query & Context Optimizer

•
179
•

Optimizes AI context usage by extracting specific fields from large YAML files like Docker Compose and GitHub Actions using the yq utility.

This skill enables Claude to interact efficiently with structured YAML data by leveraging the yq tool instead of reading entire files. By targeting specific nodes, keys, or arrays within complex configurations like Kubernetes manifests, CI/CD pipelines, and environment setups, it reduces token consumption by up to 95%. It is particularly effective for discovery and analysis phases where only specific configuration values are needed to inform subsequent tasks, allowing for faster processing and more accurate tool execution within the Claude Code environment.

Key Features

01Deep navigation of nested structures in complex config files
02Context-saving YAML extraction (80-95% token reduction)
03179 GitHub stars
04Pipeline integration with tools like fzf and xargs
05Filtering and transforming YAML data via yq syntax
06Optimized workflows for Docker Compose and Kubernetes

Use Cases

01Identifying and filtering environment variables or secrets within GitHub Actions workflows
02Retrieving specific metadata or spec fields from massive Kubernetes manifests
03Extracting specific service ports from large docker-compose.yml files for connectivity testing