home-assistant-configuration
Skill by magnusoverli
Guides an AI assistant through writing and changing Home Assistant YAML, including automations, scripts, templates, helpers and packages. It is for Home Assistant users running the ha-opencode-addon add-on.
Install home-assistant-configuration
Built from the published package, never by AI.
git clone --depth 1 https://github.com/magnusoverli/opencode /tmp/opencode && mkdir -p ~/.claude/skills && cp -r /tmp/opencode/ha_opencode/rootfs/opt/ha-mcp-server/skills/home-assistant-configuration ~/.claude/skills/home-assistant-configurationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install home-assistant-configuration in Claude Code
git clone --depth 1 https://github.com/magnusoverli/opencode /tmp/opencode && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/opencode/ha_opencode/rootfs/opt/ha-mcp-server/skills/home-assistant-configuration ~/.gemini/antigravity-cli/skills/home-assistant-configurationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install home-assistant-configuration in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill tells an AI assistant how to write or change Home Assistant YAML safely. It starts by checking the installed Home Assistant version and current integration documentation, then requires reading the whole existing file before drafting a change. Writes go through write_config_safe, which validates, backs up and blocks partial overwrites. The skill also sets a mandatory YAML style guide and explains how to query files with yq without breaking custom tags like !include and !secret.
The skill covers automations, scripts, scenes, templates, integrations, packages and helpers. It states which changes need a domain reload and which need a full restart, and it requires explicit user approval before writing, reloading or restarting. It is written for Home Assistant users who use an AI assistant to edit their configuration files under /homeassistant.
Written from the project's SKILL.md and checked against it.
What it can do
- get_configChecks which Home Assistant version is installed before writing syntax.
- get_integration_docsLooks up current YAML syntax and examples for an integration.
- write_config_safeValidates, backs up and writes config files, with a dry run option.
- check_config_syntaxValidates a Home Assistant configuration, resolving includes and secrets.
- call_serviceCalls a service such as automation reload after an approved write.
- get_error_logChecks relevant log entries when a reload is missing or fails.
- get_backup_postureChecks how recent the last backup is before large changes.
- Read and query YAML with yqReads nested values and tags from YAML files that contain custom tags.
- YAML style guide enforcementApplies a mandatory style guide for indentation, quoting, booleans and targets.
What you need
- Home Assistant with the ha-opencode-addon add-on
- yq (mikefarah Go tool) available on PATH
Try asking
- Add an automation that turns on the hallway light at sunset.
- Check which Home Assistant version I run before changing my templates.
- Show me a dry run of a new template sensor in packages before saving it.
Good to know
- Some tools are missing in the reduced configuration MCP profile, such as call_service.
- yq -i strips blank separator lines across the whole file.
- PyYAML and Ruby's YAML parser fail on Home Assistant !include tags.
- Writes, reloads and restarts each need explicit user approval.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: ha_opencode/rootfs/opt/ha-mcp-server/skills/home-assistant-configuration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to home-assistant-configuration
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
home-assistant-configuration: common questions
Does this skill edit Home Assistant files directly?
It directs the assistant to use write_config_safe as the sanctioned write path. It also says to avoid shell redirection and to preserve the full file content.
Can it restart Home Assistant on its own?
No. The source says never to restart without asking, and to explain why a restart is needed.
Why not use Python to read my YAML files?
The source says PyYAML and Ruby's YAML crash on the first !include. It recommends yq, which tolerates Home Assistant's custom tags.
How do I install home-assistant-configuration?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is home-assistant-configuration free?
The code is published under the Unlicense licence. The service it connects to may have its own pricing.
Is home-assistant-configuration safe to use?
It scores 75 of 100. Grades: maintenance A, licence A, quality B. 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-configuration?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
