Skip to content
Kitbay

home-assistant-yaml-style

CC-BY-NC-SA-4.0Updated on Nov 19, 202610,212GitHub stars

This skill from the repository behind the Home Assistant website sets the rules for YAML examples in the documentation, such as automation and script examples, action calls, templates and configuration snippets.

What the skill teaches

This skill from the repository behind the Home Assistant website sets the rules for YAML examples in the documentation, such as automation and script examples, action calls, templates and configuration snippets. It asks for two-space indentation, true and false rather than other truthy words, block-style lists and mappings, double-quoted strings, literal or folded blocks instead of escaped newlines, implicit nulls and lines of at most 80 characters inside code blocks, along with conventions for comments. An agent applies it when writing or reviewing examples for the documentation.

Capabilities

  • Format YAML examples to Home Assistant's documentation style
  • Review automation and script snippets for style issues