yq

yq is a command-line utility for querying and transforming YAML (and related data) using a jq-like syntax. It can read from files or stdin and output transformed YAML/JSON.

Evaluated Apr 04, 2026 (17d ago)
Homepage ↗ Repo ↗ DevTools cli yaml configuration data-transformation scripting devtools
⚙ Agent Friendliness
53
/ 100
Can an agent use this?
🔒 Security
84
/ 100
Is it safe for agents?
⚡ Reliability
32
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
0
Documentation
50
Error Messages
0
Auth Simplicity
100
Rate Limits
0

🔒 Security

TLS Enforcement
100
Auth Strength
100
Scope Granularity
100
Dep. Hygiene
50
Secret Handling
60

No TLS/auth involved because it is a local CLI. Main security considerations are safe handling of sensitive YAML content passed via files/stdin (avoid logging secrets) and ensuring the yq package dependencies are kept up to date to mitigate CVEs.

⚡ Reliability

Uptime/SLA
0
Version Stability
60
Breaking Changes
40
Error Recovery
30
AF Security Reliability

Best When

You already work with YAML in shell scripts/CI and want jq-like transformations without writing a full program.

Avoid When

You require interactive UIs, long-running services, or a hosted API interface.

Use Cases

  • Convert and restructure YAML configuration files
  • Extract specific fields from YAML
  • Apply transformations across multiple YAML documents
  • Generate derived YAML/JSON for deployment/config pipelines
  • Validate or normalize YAML by rewriting it in a consistent structure

Not For

  • Complex API-driven workflows requiring network calls
  • Cases where you need an always-on service with authentication/rate limits
  • Binary or non-text formats (unless wrapped/consolidated into YAML first)

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
No
SDK
No
Webhooks
No

Authentication

OAuth: No Scopes: No

No network authentication; operates locally on provided input (files/stdin).

Pricing

Free tier: No
Requires CC: No

Typically open-source CLI; no usage-based pricing.

Agent Metadata

Pagination
none
Idempotent
True
Retry Guidance
Not documented

Known Gotchas

  • YAML quoting/escaping issues in shell contexts (especially expressions and paths)
  • Handling of null/missing fields can yield different outputs vs jq-like expectations
  • Differences between yq variants/major versions (syntax/flags may not be identical)
  • Large YAML files can be memory-intensive depending on implementation

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for yq.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-04-04.

8642
Packages Evaluated
17761
Need Evaluation
586
Need Re-evaluation
Community Powered