Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

home-assistant-yaml-style

Skill by home-assistant

Sets YAML style rules for Home Assistant examples, including automations, scripts, service action calls, and templates. Built for people and AI assistants editing Home Assistant documentation.

  • Score 79
  • 10k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install home-assistant-yaml-style

Built from the published package, never by AI.

git clone --depth 1 https://github.com/home-assistant/home-assistant.io /tmp/home-assistant.io && mkdir -p ~/.claude/skills && cp -r /tmp/home-assistant.io/.claude/skills/home-assistant-yaml-style ~/.claude/skills/home-assistant-yaml-style

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install home-assistant-yaml-style in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The home-assistant-yaml-style skill is a set of formatting rules for YAML examples in Home Assistant documentation. It covers general YAML style, comments, and Home Assistant specific rules such as omitting default options like mode: single and empty conditions. It also sets rules for quoting strings, service action targets, scalars and lists, and templates.

The guide tells an assistant how to write examples that fit configuration.yaml and use placeholders such as YOUR_API_KEY. It recommends action targets for entity, area and device IDs, block style lists, and shorthand templates that use helper methods like states() and is_state(). It is intended for editing Home Assistant YAML examples, automations, scripts, and service action calls.

Written from the project's SKILL.md and checked against it.

What it can do

  • General YAML styleTwo-space indentation, true and false booleans, block style sequences, and double-quoted strings.
  • Comment rulesCapitalized comments placed above the line they describe, with matching indentation.
  • Home Assistant example rulesOmits default options, empty conditions, and empty data, and formats examples for configuration.yaml.
  • Service action targetsUses target blocks for entity, area, and device IDs instead of action-level entity IDs.
  • Scalars and listsAccepts a single scalar or a block list, and uses lists of mappings for actions and conditions.
  • TemplatesDouble-quotes templates, prefers shorthand conditions, and uses states(), is_state(), and state_attr().

Try asking

  • Check this automation example against Home Assistant YAML style rules
  • Rewrite this service call to use a target block for entity and area IDs
  • Format this template with double quotes and helper functions like is_state

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/home-assistant-yaml-style/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB

Alternatives to home-assistant-yaml-style

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

home-assistant-yaml-style: common questions

Does this skill apply to all YAML files?

No. The source says it applies to YAML examples in Home Assistant documentation, and examples should fit configuration.yaml unless stated otherwise.

Should templates use the states object directly?

The source advises against it when a helper method is available. It recommends states(), is_state(), state_attr(), and is_state_attr() to avoid errors when an entity is not ready.

How should strings be quoted?

Strings are preferably double-quoted. Entity IDs, platform types, action names, and similar values may stay unquoted when that improves readability.

How do I install home-assistant-yaml-style?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is home-assistant-yaml-style free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is home-assistant-yaml-style safe to use?

It scores 79 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to home-assistant-yaml-style?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

home-assistant-yaml-style Install

Add to stack

Loading.