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.
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-styleRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install home-assistant-yaml-style in Claude Code
git clone --depth 1 https://github.com/home-assistant/home-assistant.io /tmp/home-assistant.io && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/home-assistant.io/.claude/skills/home-assistant-yaml-style ~/.gemini/antigravity-cli/skills/home-assistant-yaml-styleAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install home-assistant-yaml-style in Antigravity CLI
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
