Files
dotfiles/.claude/skills/yaml-validate/SKILL.md

670 B

name, description, user-invocable, allowed-tools
name description user-invocable allowed-tools
yaml-validate Validate YAML files after editing. Apply when writing or modifying any .yml or .yaml file. false Bash, Read

After editing any YAML file, validate it:

1. Syntax check

Run yamllint on the file:

yamllint <file>

If yamllint is not available, fall back to:

python3 -c "import yaml; yaml.safe_load(open('<file>'))"

2. GitHub Actions workflows

If the file is under .github/workflows/, also run:

actionlint <file>

If actionlint is not available, skip silently.

Files to skip

  • config/gh/hosts.yml — managed by gh CLI, not hand-edited