yaml-validator
YAML Validator
Validate YAML files for syntax, structure, and schema compliance.
Common Issues
| Issue | Fix |
|---|---|
| Mixed tabs/spaces | Convert to 2-space indentation |
| Missing colon | Add : after key |
| Special chars unquoted | Quote strings with :, {, }, [, ] |
| Duplicate keys | Remove or merge |
| Boolean-looking strings | Quote yes, no, on, off |
| Trailing spaces | Remove with sed -i 's/[[:space:]]*$//' |
Validation Commands
# Install yamllint
pip install yamllint
# Validate single file
yamllint file.yml
# Check all YAML files
yamllint .
# Python fallback
python3 -c "import yaml; yaml.safe_load(open('file.yml'))"
Project .yamllint Config
Create .yamllint.yml in project root with 2-space indentation, 120 line length max, enable trailing-spaces and key-duplicates rules.
GitHub Actions Checklist
- Valid
on:trigger (push, pull_request, schedule) - Correct
runs-onvalue (ubuntu-latest, macos-latest) - Proper
steps:list structure - Modern action versions (v3/v4, not v1/v2)
Best Practices
DO
- Use 2 spaces for indentation
- Quote strings with special characters
- Validate before committing
- Keep lines under 120 characters
- End files with newline
DON'T
- Use tabs for indentation
- Leave trailing spaces
- Use duplicate keys
- Mix YAML 1.1 and 1.2 features
More from d-o-hub/rust-self-learning-memory
loop-agent
Execute workflow agents iteratively for refinement and progressive improvement until quality criteria are met. Use when tasks require repetitive refinement, multi-iteration improvements, progressive optimization, or feedback loops until convergence.
51web-search-researcher
Research topics using web search and content fetching to find accurate, current information. Use when you need modern information, official documentation, best practices, technical solutions, or comparisons beyond your training data.
46perplexity-researcher-reasoning-pro
Highest level of research and reasoning capabilities for complex decision-making with significant consequences, strategic planning, technical architecture decisions, multi-stakeholder problems, or high-complexity troubleshooting requiring expert-level judgment and sophisticated reasoning chains. Prioritizes actively maintained repositories and validates website sources for 2025 relevance.
44context-retrieval
Retrieve relevant episodic context from memory for informed decision-making. Use when you need past episodes, patterns, or solutions to similar tasks.
44rust-code-quality
Perform comprehensive Rust code quality reviews against best practices for async Rust, error handling, testing, and project structure
43codebase-analyzer
Analyze implementation details, trace data flow, explain technical workings, locate files, and consolidate codebases. Use when you need to understand HOW code works, find file locations, or assess technical debt.
40