# Home Assistant HACS Integration Builder

> 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.

Home Assistant HACS Integration Builder is a free AI agent skill on Agensi by Sam3gp8, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Sam3gp8](https://www.agensi.io/creators/sam3gp8)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0.0
- Last updated: 2026-12-05
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/home-assistant-hacs-integration-builder
- Tags: apis-backend, workflow-automation

## 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: "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: "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: "Migrate my legacy integration from hass.data to typed entry.runtime_data and DataUpdateCoordinator."

## 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_data` with a typed `ConfigEntry` alias — flags legacy `hass.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 naive `datetime.now()`.
- Centralized `DataUpdateCoordinator` mapping auth failures to `ConfigEntryAuthFailed` (UI reauth) and transient errors to `UpdateFailed`.
- Undocumented-API hardening: isolated `api.py`, transparent 401/403 token refresh, 429 `Retry-After` respect, secret redaction.
- Telemetry hygiene: distinguish a real `0` from a dropped packet; `TOTAL_INCREASING` counters 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.

## Requires

- 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+).

## Known limitations

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.

## Technical details

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Home Assistant HACS Integration Builder skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Home Assistant HACS Integration Builder do?

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.

### Which AI agents support Home Assistant HACS Integration Builder?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Home Assistant HACS Integration Builder?

Connect your AI agent to Agensi through MCP, then ask it to use Home Assistant HACS Integration Builder on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
