hacs.integration_blueprint: Skill for Claude Code

.agents/skills/ha-coordinator-debug/SKILL.md

ha-coordinator-debug is a skill for Claude Code, Codex from jpawlowski/hacs.integration_blueprint. It costs 219 tokens per session (3,310 once invoked), scanned A, original, MIT.

A troubleshooting guide for a custom Home Assistant integration, which connects Home Assistant to a specific device or service. It focuses on the coordinator that fetches and distributes updated device data.

In plain words
What is it for?
Investigating unavailable or stale entities, setup failures, repeated login requests, timeouts, failed data updates, and warnings caused by blocking work.
Why use it?
It replaces guesswork with a repeatable process for reproducing failures, checking logs and entity states, locating the faulty layer, and applying a fix.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is jpawlowski/hacs.integration_blueprint's own configuration. It tells Claude Code and Codex how to work on hacs.integration_blueprint itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything hacs.integration_blueprint configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./script/develop.

Reuse

Borrowing it

Nothing to install: this file belongs to jpawlowski/hacs.integration_blueprint. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jpawlowski/hacs.integration_blueprint/main/.agents/skills/ha-coordinator-debug/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jpawlowski/hacs.integration_blueprint

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ha-coordinator-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/jpawlowski/hacs.integration_blueprint/ha-coordinator-debug/github.svg)](https://agentmods.dev/skills/jpawlowski/hacs.integration_blueprint/ha-coordinator-debug)
Your own site
<a href="https://agentmods.dev/skills/jpawlowski/hacs.integration_blueprint/ha-coordinator-debug"><img src="https://agentmods.dev/badge/skills/jpawlowski/hacs.integration_blueprint/ha-coordinator-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ha-coordinator-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/jpawlowski/hacs.integration_blueprint/ha-coordinator-debug"><img src="https://agentmods.dev/badge/skills/jpawlowski/hacs.integration_blueprint/ha-coordinator-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 219 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,310 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00219 $0.03310
Opus 5 $0.00110 $0.01655
Sonnet 5 $0.00044 $0.00662
Haiku 4.5 $0.00022 $0.00331

Measured 9d ago against content hash 8660828d8b87, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ha-coordinator-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/ha-coordinator-debug/SKILL.md · 258 lines

How it starts

The opening of the file, as written. The whole thing — 258 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debug the running integration

Work from evidence, not from guesses. The order below is deliberate: reproduce, read the log, localise to a layer, then fix.

File When to read
references/async-rules.md A blocking-call warning, a thread-safety error, or a hang with no traceback behind it

1. Reproduce with a clean instance

Always use the project scripts — hand-rolled hass or pip invocations miss the venv, PYTHONPATH, port cleanup, and debugpy setup, and are the single most common cause of agents getting stuck.

./script/develop

If Home Assistant is unresponsive or the port is held:

pkill -f "hass --config" || true && pkill -f "debugpy.*5678" || true && ./script/develop

Restart after any change to Python files, manifest.json, services.yaml, translations, or the config flow.

Once it is up, script/ha reads the instance directly — entity states, config entry status, diagnostics, the error log — so nothing below depends on asking the developer to look something up in the UI. It authenticates itself; there is no token to set up.

script/ha status     # reachable, and which version
script/ha entries    # did the config entry actually load

The instance is shared

The developer restarts Home Assistant, clicks through the UI, and tries things out while you work — often precisely because you are busy. Never carry the instance's run state from one step to the next. Observe it.

script/ha status    # exit 0 up, exit 2 down; `started` and `uptime` reveal a restart you did not do
  • A changed run state is the expected case, not a fault. Running when you left it stopped means the developer started it. Do not go through ps, the process tree, or the log looking for an explanation — start it, or re-run your command, and carry on.
  • Spend at most one re-check on it. If it still does not add up, say what you observed and continue with the task. Reconciling who started what is never the task.
  • ./script/develop takes the instance over — it is not "start it if it is not running". It kills whatever is already bound to config/ and starts its own, by design, because the log has to stream into the terminal that launched it. So the developer's terminal falls silent, and the live log they were watching is gone. Check script/ha status first and simply use the instance that is already there. Run script/develop only when it is genuinely down, or when a change to Python, manifest.json, services.yaml, translations or the config flow forces a restart — and say that you are doing it. Never restart to tidy up.
  • The same happens in reverse, and is equally fine: when the developer runs ./script/develop, the instance you started dies and whatever file you were writing its log to stops growing. Treat that as normal and re-orient.
  • Announce it before you take exclusive control, so the developer knows to keep their hands off meanwhile. That covers script/setup/reset, script/ha token --rotate and --revoke, and any loop that restarts repeatedly — all of them need Home Assistant stopped or undisturbed.
  • ha call, ha flow, ha reload and ha loglevel change what the developer sees. Cheap and reversible, but a config entry created by a flow stays until someone removes it.
  • State the run state when you finish — after checking it, never from memory.

Read the full file on GitHub · 258 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 258 lines · 219 tokens per session scan A 8660828d8b87

Subscribe to this mod's changes

ha-coordinator-debug is a skill published in the GitHub repository jpawlowski/hacs.integration_blueprint (49 stars, last pushed 2d ago), licensed MIT. It adds 219 tokens to every session and 3,310 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

homeassistant

Source-layer Home Assistant guide material preserved behind the runtime guide.

ha-china/ha_claw · 15 tokens

aurora

Aurora Smart Home orchestrator — routing layer for all smart home skills. Use this skill when the user asks ANY smart home question and you need to decide which skill to invoke, or when a task spans multiple skills (e.g., "build a sensor that shows on a dashboard and triggers automations"). Invoke aurora FIRST before…

tonylofgren/aurora-smart-home · 133 tokens

ESPHome

ESPHome device configuration, firmware, and IoT product development. Covers ESP32, ESP32-S3, ESP32-C3, ESP32-C6, ESP32-H2, ESP32-P4, ESP8266, RP2040, RP2350, nRF52, LibreTiny, Shelly, Sonoff, Tuya, BLE proxy, Matter firmware, Thread, Zigbee, GPIO, sensor YAML, LVGL displays, LED strips, voice assistant hardware…

tonylofgren/aurora-smart-home · 192 tokens

HA Integration Dev

Home Assistant custom integration development in Python. Covers customcomponents, DataUpdateCoordinator, configflow, OAuth2, conversation agent, HACS publishing, device registry, entity platforms, services, repair issues, diagnostics, Bluetooth integrations, and multi-coordinator patterns.

tonylofgren/aurora-smart-home · 55 tokens

Node-RED

Node-RED visual automation flows for Home Assistant. Covers visual automation, flow JSON, trigger-state, api-call-service, function nodes, context storage, timer patterns, error handling, and node-red-contrib-home-assistant-websocket nodes. Use when user mentions "Node-RED", "flow", "visual automation", or…

tonylofgren/aurora-smart-home · 76 tokens

API Catalog

Reference guide for connecting popular APIs to Home Assistant via Node-RED, YAML, or custom integrations. Covers authentication, endpoints, and complete working examples for: energy APIs (Tibber, Nordpool), weather (SMHI, OpenWeatherMap, yr.no), transport (SL, Trafikverket, Resrobot), smart home clouds (Shelly, Tuya…

tonylofgren/aurora-smart-home · 132 tokens