What problem does it solve?
Home Assistant documentation contains hundreds of YAML examples for automations, scripts, templates, and configuration snippets, and inconsistent formatting across them confuses readers and complicates reviews. This Skill enforces a single style guide so every YAML example follows the same indentation, quoting, and structural conventions.
Core Features & Use Cases
- YAML Formatting Rules: Enforces 2-space indentation, true/false booleans, block-style sequences, double-quoted strings, and 80-character line limits.
- Home Assistant Conventions: Omits default values like mode: single, uses service action targets for entity/area/device IDs, and marks placeholders with capital letters like YOUR_API_KEY.
- Template Style Guidance: Requires double-quoted templates, helper methods like states() and is_state(), and multi-line splitting for long templates.
- Use Case: When editing an automation example in the Home Assistant docs, apply this Skill to convert legacy entity_id-in-data patterns into modern target blocks and normalize quoting.
Quick Start
Review this Home Assistant automation YAML example and reformat it to follow the documentation style guide.