ha-modern-apis
Skill by jpawlowski
Checks that Home Assistant APIs used in a custom integration are current, and replaces deprecated ones. Built for developers maintaining Home Assistant custom integrations.
Install ha-modern-apis
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jpawlowski/hacs.integration_blueprint /tmp/hacs.integration_blueprint && mkdir -p ~/.claude/skills && cp -r /tmp/hacs.integration_blueprint/.agents/skills/ha-modern-apis ~/.claude/skills/ha-modern-apisRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jpawlowski/hacs.integration_blueprint /tmp/hacs.integration_blueprint && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/hacs.integration_blueprint/.agents/skills/ha-modern-apis ~/.gemini/antigravity-cli/skills/ha-modern-apisAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill tells an AI assistant to verify Home Assistant APIs against the installed Home Assistant source instead of recalling older patterns or copying examples. It covers the device registry single-owner rules from 2026.8, runtime_data, config flow helpers, entity metadata, async I/O, and the version bump procedure. It is meant to load when a DeprecationWarning or a "will be removed in HA Core X.Y" message appears, when tests fail because warnings are errors, or when asked to modernize the integration or bump the Home Assistant version.
The skill treats the devcontainer's pinned Home Assistant version as the authority and gives ripgrep commands to inspect that source. Reference files list deprecated symbols with replacements and removal versions. It is for developers of Home Assistant custom integrations who need to keep code current and who should fix deprecations rather than suppress them.
Written from the project's SKILL.md and checked against it.
What it can do
- Check installed sourceConfirms whether an API still exists and is deprecated, using the installed Home Assistant source.
- Fix deprecationsReplaces deprecated symbols with current ones, including in tests, diagnostics, repairs and migrations.
- Scoped device lookupsScopes device registry lookups to the owning config entry instead of the unscoped async_get_device().
- Typed runtime_dataMoves integration state from hass.data into typed config entry runtime_data.
- Version bump procedureRuns script/ha-version-sync, then hassfest, tests and a log check for deprecation messages.
What you need
- Home Assistant custom integration project with a devcontainer
- Python virtualenv in .venv with the pinned Home Assistant version
Try asking
- Modernize this integration to the current Home Assistant APIs
- Fix the DeprecationWarning shown in the test log
- Bump the Home Assistant version for this integration
Good to know
- The Home Assistant docs follow the development branch, so new APIs must be checked in the installed source first.
- Related tasks are handled by other skills named in the source, such as ha-testing and ha-marketplace.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/ha-modern-apis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to ha-modern-apis
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-modern-apis: common questions
Why check the installed source instead of the documentation?
The docs follow Home Assistant's development branch, so a page can describe an API that is not yet in the pinned release. The installed source is treated as the authority.
Should deprecation warnings be suppressed with a filter?
No. The skill says to fix the deprecation and never to make it go away with a warning filter.
How is the Home Assistant version bumped?
Run script/ha-version-sync, rebuild the container or re-run script/setup/bootstrap, then run script/hassfest and script/test and check the log for deprecation messages.
How do I install ha-modern-apis?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ha-modern-apis free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ha-modern-apis safe to use?
It scores 74 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 ha-modern-apis?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
