homeassistant-ai/skills

Home Assistant skills for agents

Home Assistant Agent Skills – What It Is

Home Assistant Agent Skills is a small open‑source package that ships a skill for AI‑coding assistants (Claude Code, GitHub Copilot, Gemini CLI, etc.). In the Agent Skills ecosystem a skill is a Markdown‑based knowledge pack that the assistant can load at runtime and use to guide its code‑generation. This particular skill teaches the assistant the best‑practice patterns for writing Home Assistant automations, dashboards, backups, AppDaemon apps and more.


How It Works

  1. Installation – You add the repository with the npx skills add homeassistant-ai/skills command (or via Claude Code’s plugin marketplace). The installer copies the skill’s files into the assistant’s skill directory.
  2. Automatic activation – Once installed, the assistant automatically consults the skill whenever it is asked to create or edit Home Assistant configuration (automations, scripts, dashboards, blueprints, etc.). No extra command is needed.
  3. Content – The core of the skill is SKILL.md, which contains a decision workflow and an “anti‑pattern” table that lists common mistakes (e.g., using a Jinja template where a native numeric_state condition exists) and the correct Home Assistant‑native alternative. Supporting reference files (Markdown and a YAML examples file) give deeper guidance on triggers, helpers, dashboards, backups, AppDaemon, and more.

What You Get

Piece What It Provides
SKILL.md High‑level workflow and quick‑reference table of pitfalls vs. proper native constructs.
references/… Detailed Markdown guides on specific topics – triggers, actions, helper selection, safe refactoring, dashboard design, AppDaemon, blueprints, backups, etc.
examples.yaml Ready‑made YAML snippets that combine several best‑practice recommendations.

When an AI assistant follows the skill, it will, for example, replace a template‑based condition with a native numeric_state condition, ensuring the configuration is validated when Home Assistant loads it.


Who Might Use It

  • Home Assistant developers who rely on AI tools to scaffold automations or refactor configs and want the generated code to follow community‑approved patterns.
  • AI‑coding‑assistant users (Claude Code, Copilot, Gemini CLI, etc.) looking to extend the assistant’s knowledge with domain‑specific guidance.
  • Contributors who want to add or improve Home Assistant‑specific skills for the broader Agent Skills ecosystem.

Getting Started

  1. Install Node .js 22.20+.
  2. Run npx skills add homeassistant-ai/skills (or install via Claude Code’s plugin commands).
  3. Ensure the assistant’s “cloud code execution” capability is enabled (required for skills).
  4. Ask the assistant to create a Home Assistant automation – it will automatically apply the best‑practice rules from the skill.

License

MIT – free to use, modify, and share.

Related

  • Project
  • Project
  • Project
  • Project
  • Project