Works with the AI Agents you already use

    Home Assistant HACS Integration Builder

    by Sam3gp8

    1

    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

    Security scanned

    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

    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

    SeverityFindingFix Applied
    CRITICALSynchronous requests.get() blocks the Home Assistant asyncio event loopReplaced with isolated aiohttp client in api.py
    HIGHLegacy hass.data[DOMAIN] storage fails modern typed ConfigEntry checksMigrated to type WaterTankConfigEntry = ConfigEntry[WaterTankCoordinator] using entry.runtime_data
    HIGH401 token expiry throws generic exception instead of triggering UI reauthMapped auth failures to ConfigEntryAuthFailed and transient drops to UpdateFailed
    MEDIUMNaive datetime.now() and unguarded 0 readings corrupt energy/volume statsEnforced 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, valid iot_class & categories)
    • Version & Codeowners: PASS (SemVer present, @codeowner formatted)

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

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

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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 setupPython 3.12+

    The coordinator blueprint imports homeassistant.* and runs inside a Home Assistant dev environment. The manifest validator is standalone (Python 3.9+).

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    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.

    Listed8 days ago
    Updatedtoday

    What's inside

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    Free