ha-integration-health

ha-integration-health is a skill for Claude Code from gtapps/claude-code-hermit. It costs 67 tokens per session (471 once invoked), scanned A, original, MIT.

A Home Assistant health check that groups entities by system area and looks for areas with many unavailable entities. Unavailable entities usually indicate that a connected service or device integration is not communicating.

In plain words
What is it for?
It helps detect dropped smart-home integrations and records degraded areas for later analysis.
Why use it?
It helps distinguish a broad connection failure from an issue affecting only one device.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-code-homeassistant-hermit plugin — 18 skills, 3 agents shipped together

Good fit It helps detect dropped smart-home integrations and records degraded areas for later analysis.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add gtapps/claude-code-hermit
Claude Code
/plugin install claude-code-homeassistant-hermit

Made for: Claude Code.

Or install claude-code-homeassistant-hermit, the plugin that ships this one along with the rest of its 18 skills, 3 agents.

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-integration-health

README.md
[![agentmods](https://agentmods.dev/badge/skills/gtapps/claude-code-hermit/ha-integration-health/github.svg)](https://agentmods.dev/skills/gtapps/claude-code-hermit/ha-integration-health)
Your own site
<a href="https://agentmods.dev/skills/gtapps/claude-code-hermit/ha-integration-health"><img src="https://agentmods.dev/badge/skills/gtapps/claude-code-hermit/ha-integration-health/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-integration-health

Your own site · 80×15
<a href="https://agentmods.dev/skills/gtapps/claude-code-hermit/ha-integration-health"><img src="https://agentmods.dev/badge/skills/gtapps/claude-code-hermit/ha-integration-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 471 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.
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.00067 $0.00471
Opus 5 $0.00034 $0.00235
Sonnet 5 $0.00013 $0.00094
Haiku 4.5 $0.00007 $0.00047

Measured yesterday against content hash 25d5f5b9d6f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ha-integration-health 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 yesterday.

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.

plugins/claude-code-homeassistant-hermit/skills/ha-integration-health/SKILL.md · 43 lines

What it actually says

HA Integration Health

Purpose

When an HA integration loses its connection (lost WiFi, API change, expired token), its entities go unavailable. This skill reads the latest normalized snapshot, groups entities by domain, and flags domains with a high unavailable ratio.

Steps

Run the integration-health check via the CLI:

${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha integration-health

The CLI:

  • Checks that snapshot-ha-normalized-latest.json exists and is fresh (< 24h). If stale or missing, runs ha refresh-context first to bring it up to date, then proceeds with analysis.
  • Groups entities by domain prefix, computes unavailable ratios, and flags domains where total >= 3 AND ratio >= 0.5.
  • Writes .claude-code-hermit/state/integration-health-degraded-domains.json — a machine-readable state artifact consumed by ha-analyze-patterns (via silence.ts) to suppress overlapping long_unavailable findings.
  • Prints the findings block to stdout in the documented format below.

Output contract

reflect --check-id ha-integration-health --check claude-code-homeassistant-hermit:ha-integration-health routes the findings block through the proposal pipeline. The stdout shape is fixed:

ha-integration-health findings — <date>
Degraded domains: N
- <domain>: <unavailable>/<total> entities unavailable (<percent>%)

If nothing is flagged: No actionable findings. (D domains scanned). If snapshot is stale or missing and HA is unreachable: No actionable findings. (skipped: snapshot stale, refresh failed — <error>). If the snapshot exists but can't be parsed: No actionable findings. (skipped: snapshot unreadable — <error>).

Keep stdout to this shape — no prose, no extra sections.

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. yesterday Changed · +16 tokens per session 25d5f5b9d6f0
  2. 6d ago First seen · 43 lines · 51 tokens per session scan A 5bcaac470818

Subscribe to this mod's changes

ha-integration-health is a skill published in the GitHub repository gtapps/claude-code-hermit (74 stars, last pushed today), licensed MIT. It adds 67 tokens to every session and 471 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories