YAMLCheck
Installation
SKILL.md
YAMLCheck
A real YAML validator and toolkit. Check syntax, convert YAML to JSON, lint for style issues, and list top-level keys. Uses PyYAML when available, falls back to basic parsing when not.
Commands
| Command | Description |
|---|---|
yamlcheck validate <file> |
Validate YAML syntax — reports document count, types, key counts, file size. Falls back to basic tab/colon checks without PyYAML |
yamlcheck to-json <file> |
Convert YAML to formatted JSON output. Handles multi-document YAML files |
yamlcheck lint <file> |
Check for common style issues: tabs, trailing whitespace, Windows line endings, odd indentation, missing spaces after colons, long lines |
yamlcheck keys <file> |
List top-level keys with types and value previews |
Requirements
python3(required)PyYAML(optional — enables full parsing; install withpip3 install pyyaml)
Without PyYAML, the tool still works but uses basic regex-based checks instead of full YAML parsing.