# YAML Check

> Run yq to validate and lint YAML files for correctness

- Skill: `controlplaneio-fluxcd/yaml-check` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add controlplaneio-fluxcd/yaml-check`
- Raw SKILL.md: https://api.skillmd.com/api/skills/controlplaneio-fluxcd/yaml-check/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: controlplaneio-fluxcd (https://skillmd.com/u/controlplaneio-fluxcd)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/controlplaneio-fluxcd/yaml-check

---


# YAML Check

Use [yq](https://github.com/mikefarah/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

