yamllint
$ yamllint Community Low RiskPython-based YAML linter checking syntax validity, key duplication, indentation, line length, and trailing spaces across CI workflows and Kubernetes manifests. Offers -f parsable and -s strict mode for predictable headless checks.
brew install yamllint Validates local YAML manifests offline in milliseconds; no MCP server adds value.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -f parsable, -f github, -s strict exit codes, and stdin -, though it lacks --format json.
-f parsableproduces stable colon-delimited records- No native JSON output formatter
Purely read-only analyzer with no auto-write mode and zero network calls.
- Strictly read-only with zero disk mutation capabilities
Available via Homebrew, PyPI, uvx, and most Linux distro repositories.
- Easy installation across
brew,pip, anduvx
Reliable safeguard for GitHub Actions, Helm, and Ansible YAML, though it does not auto-fix violations.
- Catches duplicate keys and syntax traps missed by naive YAML parsers
Mature community standard (adrienverge/yamllint) maintained under GPL-3.0.
- Established
adrienverge/yamllintrepository
Clear ReadTheDocs rule catalog and configuration examples.
- Official docs at yamllint.readthedocs.io
Security, Auth & Guardrails
Purely local YAML linter; no credentials stored or required.
GPL-3.0 open-source Python CLI; completely free.
# yamllint Agent Rules - Always pass `-f parsable` for deterministic one-line-per-finding output. - Respect repo `.yamllint` configs instead of passing `-d relaxed` unless instructed.
Agent-Ready Command Recipes
Safe Read-Only Queries
yamllint -f parsable -s .
Emits file:line:col: [level] message (rule) lines and fails on warnings (-s) without editing files.
Strengths for Agents
- + Strictly read-only and catches duplicate YAML keys and subtle indentation bugs.
- +
-f parsableyields clean machine-friendly diagnostics without ANSI clutter.
Caveats & Pitfalls
- ! No
--jsonoutput format or--fixauto-remediation mode. - ! Default
line-length(80 chars) often fails on CI/Kubernetes YAML unless.yamllintrelaxes it.