Agent skill

yaml-check

Run yq to validate and lint YAML files for correctness

Stars 597
Forks 49

Install this agent skill to your Project

npx add-skill https://github.com/controlplaneio-fluxcd/flux-operator/tree/main/config/testdata/skills/yaml-check

SKILL.md

YAML Check

Use yq to validate and inspect YAML files.

Usage

To validate a single YAML file:

bash
yq eval '.' file.yaml > /dev/null

To validate all YAML files in a directory:

bash
./scripts/validation.sh /path/to/dir

To pretty-print a YAML file:

bash
yq eval '.' file.yaml

Common Options

  • -e EXPRESSION — evaluate a yq expression
  • -i — edit file in-place
  • -o json — output as JSON
  • -P — pretty-print output

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results