Context-Efficient File Querying

•
95
•

Extracts specific data from JSON, YAML, and Markdown files using specialized CLI tools to minimize context token usage.

This skill empowers Claude to perform surgical data extraction from large configuration and documentation files without the overhead of reading the entire file into the context window. By leveraging industry-standard tools like jq, yq, and mq, it allows for precise retrieval of specific fields, code blocks, or patterns, resulting in significant token savings (up to 95%) and faster processing times. It is particularly useful for auditing massive dependency trees, managing complex Kubernetes or Docker manifests, and scraping specific documentation elements from large README files.

Key Features

01Markdown element extraction for code blocks, headers, and links using mq
02Precision JSON extraction using jq for package and configuration files
03Token-efficient workflows that save context window space on large files
04Advanced text searching with ripgrep (rg) for context-aware pattern matching
05Specialized YAML parsing with yq for Docker, Kubernetes, and CI/CD manifests
0695 GitHub stars

Use Cases

01Extracting specific dependency versions from massive package-lock.json or tsconfig files
02Auditing service configurations in complex multi-file docker-compose or Kubernetes environments
03Searching for TODOs or specific function patterns across large codebases using ripgrep