- Home
- Skills
- Workflow Automation
- Home Assistant HACS Integration Builder
Works with the AI Agents you already use
Home Assistant HACS Integration Builder
by Sam3gp8
Build Home Assistant custom integrations that pass HACS and 2026.11+ Marketplace validation. Enforces typed runtime_data, async coordinators, UI reauth, and offline manifest checks.
Free
What it does
- Scaffolds modern custom_components/ integrations using typed entry.runtime_data
- Audits existing code for blocking I/O, naive datetimes, and deprecated hass.data
- Hardens undocumented APIs with token refresh, 429 backoff, and UI reauth flows
- Validates manifest.json offline with validate_manifest.py for HACS and Marketplace
Who it's for
HACS & Marketplace developers
Hassfest-ordered manifests, typed ConfigEntry scaffolds, and offline validation before release.
Try asking: “Audit my custom_components/ folder for 2026.11+ Marketplace compliance and run validate_manifest.py.”
Reverse-engineered API builders
Isolated async API clients with transparent 401/403 token refresh, 429 backoff, and secret redaction.
Try asking: “Wrap this undocumented vendor REST API as a HACS integration with config flow and UI reauth.”
Maintainers upgrading legacy integrations
Clean migrations off hass.data[DOMAIN], blocking requests calls, and naive datetimes.
Try asking: “Migrate my legacy integration from hass.data to typed entry.runtime_data and DataUpdateCoordinator.”
Home Assistant HACS Integration Builder
Example session with this skill installed
Wrap this undocumented REST API for my water-tank sensor as a HACS integration with a config flow and reauth.
- Read your context and instructions
- Compiled the home assistant hacs
Migration & Hardening Audit
| Severity | Finding | Fix Applied |
|---|---|---|
| CRITICAL | Synchronous requests.get() blocks the Home Assistant asyncio event loop | Replaced with isolated aiohttp client in api.py |
| HIGH | Legacy hass.data[DOMAIN] storage fails modern typed ConfigEntry checks | Migrated to type WaterTankConfigEntry = ConfigEntry[WaterTankCoordinator] using entry.runtime_data |
| HIGH | 401 token expiry throws generic exception instead of triggering UI reauth | Mapped auth failures to ConfigEntryAuthFailed and transient drops to UpdateFailed |
| MEDIUM | Naive datetime.now() and unguarded 0 readings corrupt energy/volume stats | Enforced dt_util.utcnow() and guarded TOTAL_INCREASING counters against dropped packets |
Scaffolded Architecture (custom_components/water_tank/)
custom_components/water_tank/
├── __init__.py # Typed ConfigEntry + entry.runtime_data setup/unload
├── api.py # Isolated aiohttp client, 401 refresh, 429 Retry-After, secret redaction
├── config_flow.py # UI setup + async_step_reauth flow
├── coordinator.py # DataUpdateCoordinator with auth/transient error mapping
├── sensor.py # Timezone-aware sensors with dropped-packet hygiene
├── manifest.json # Hassfest-ordered with integration_type & Marketplace categories
└── translations/en.json # Config & reauth UI strings
Typed Setup Snippet (__init__.py)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from .coordinator import WaterTankCoordinator
type WaterTankConfigEntry = ConfigEntry[WaterTankCoordinator]
async def async_setup_entry(hass: HomeAssistant, entry: WaterTankConfigEntry) -> bool:
coordinator = WaterTankCoordinator(hass, entry)
await coordinator.async_config_entry_first_refresh()
entry.runtime_data = coordinator
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
return True
Offline Manifest Validation (validate_manifest.py)
- Hassfest Key Order: PASS (
domain,name, alphabetical remaining keys) - HACS & 2026.11+ Marketplace Fields: PASS (
config_flow: true,integration_type: device, validiot_class&categories) - Version & Codeowners: PASS (SemVer present,
@codeownerformatted)
Next Step: Drop custom_components/water_tank/ and hacs.json into your repo, supply your real endpoint/auth headers in api.py, and run pytest before tagging your first release.
Connects securely to your tools. The creator never sees your data.
About this skill
HACS & Undocumented API Integrator turns your agent into a Home Assistant core-standard systems engineer for custom_components/. It scaffolds, audits, and hardens integrations — especially ones wrapping undocumented or reverse-engineered vendor APIs — so they survive API breakage, never block the asyncio event loop, and pass HACS / 2026.11 Marketplace validation.
Enforces the current architecture rules:
entry.runtime_datawith a typedConfigEntryalias — flags legacyhass.data[DOMAIN].- Zero blocking I/O on the event loop (aiohttp / httpx, or
async_add_executor_job). - Timezone-aware timestamps only (
dt_util.utcnow()), never naivedatetime.now(). - Centralized
DataUpdateCoordinatormapping auth failures toConfigEntryAuthFailed(UI reauth) and transient errors toUpdateFailed. - Undocumented-API hardening: isolated
api.py, transparent 401/403 token refresh, 429Retry-Afterrespect, secret redaction. - Telemetry hygiene: distinguish a real
0from a dropped packet;TOTAL_INCREASINGcounters guarded against resets.
Ships with: a typed DataUpdateCoordinator + runtime_data reference blueprint, validated hacs.json / manifest.json / translations/en.json templates (hassfest-ordered, with integration_type and Marketplace categories), and a standalone validate_manifest.py that checks a manifest against the rules before you submit.
Scaffolds, audits, and hardens integration code and manifests; it does not run a live Home Assistant instance or test against real hardware. You install the generated integration and validate it in your own HA dev environment.
Built for Claude Code, Cursor, ChatGPT, and MCP-compatible coding agents targeting Home Assistant 2026.x (Python 3.12+), HACS, and the 2026.11+ Marketplace. Bundled assets: • scripts/validate_manifest.py — Offline Python validator checking hassfest key order, integration_type, Marketplace categories, and required metadata. • references/coordinator-blueprint.py — Typed ConfigEntry + entry.runtime_data + DataUpdateCoordinator reference pattern with ConfigEntryAuthFailed and UpdateFailed mapping. • references/marketplace-manifest-templates.json — Ready-to-adapt manifest.json, hacs.json, and translations/en.json templates.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 8 days ago
- Free with an Agensi account
- Software
- Home Assistant 2026.x dev setup
Python 3.12+
The coordinator blueprint imports homeassistant.* and runs inside a Home Assistant dev environment. The manifest validator is standalone (Python 3.9+).
Permissions
Generates/edits files in your integration repo and runs the offline manifest validator. Makes no network calls itself; any API hosts belong to the integration you are building.
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.