ha-integration-knowledge
Skill by home-assistant
Gives AI assistants the Home Assistant integration conventions for building, testing and reviewing integrations. Aimed at contributors to the Home Assistant codebase.
Install ha-integration-knowledge
Built from the published package, never by AI.
git clone --depth 1 https://github.com/home-assistant/core /tmp/core && mkdir -p ~/.claude/skills && cp -r /tmp/core/.claude/skills/ha-integration-knowledge ~/.claude/skills/ha-integration-knowledgeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install ha-integration-knowledge in Claude Code
git clone --depth 1 https://github.com/home-assistant/core /tmp/core && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/core/.claude/skills/ha-integration-knowledge ~/.gemini/antigravity-cli/skills/ha-integration-knowledgeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install ha-integration-knowledge in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
ha-integration-knowledge is a skill file that gives an AI assistant the conventions used for Home Assistant integrations. It names where integration code and tests live in the repository, then sets rules for config flows, entity platforms, actions, testing and the Integration Quality Scale. It also links to extra guidelines for device trackers, diagnostics and repairs.
The skill tells the assistant to use it as the primary reference when looking at an integration. It asks for thin integrations that leave protocol parsing and domain logic to a separate PyPI library, and for tests that avoid mocking internal details. It is aimed at contributors who build, test or review integrations in the Home Assistant core codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- File locationsPoints to integration code under homeassistant/components and tests under tests/components.
- Config flow rulesCovers error mapping, options flows, and not letting users set names or polling intervals.
- Entity platform rulesCovers symmetrical setup and teardown, _attr_ usage and combining the available property.
- Action namingDefines how action names and fields are declared as StrEnums for integrations with first actions.
- Quality scale checksExplains how to read manifest.json and quality_scale.yaml and apply bronze and higher rules.
- Testing guidelinesCovers conftest fixtures, JSON fixture files, snapshot tests and parametrized fixtures.
Try asking
- Check this integration's config flow against Home Assistant guidelines
- Review my entity platform code for symmetrical setup and teardown
- Suggest pytest fixtures for a new Home Assistant integration's tests
Good to know
- Provides guidance only. It does not run code or tests.
- The action enum rule applies only when a pull request adds an integration's first actions.
- Options flow guidance refers to changes made in 2025.12.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/ha-integration-knowledge/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
platform-device-tracker.md3 KB -
platform-diagnostics.md225 B -
platform-repairs.md929 B
Alternatives to ha-integration-knowledge
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
ha-integration-knowledge: common questions
Where should integration code and tests go?
Integration code goes in ./homeassistant/components/<integration_domain>/ and tests go in ./tests/components/<integration_domain>/.
Can integrations let users set a polling interval?
No. The source says polling intervals are not user-configurable, so scan_interval, update_interval or polling frequency options should not be added to config flows.
When are action enums required?
Only when a pull request adds an integration's first actions, which means a new services.yaml. Integrations that already have actions are not asked to change.
How do I install ha-integration-knowledge?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ha-integration-knowledge free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is ha-integration-knowledge safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, 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 ha-integration-knowledge?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
