ha-automation-diff

ha-automation-diff is a skill for Claude Code from gtapps/hermitd. It costs 66 tokens per session (639 once invoked), scanned A, a copy of ha-automation-diff, MIT.

A read-only change report for Home Assistant automations. Home Assistant is software for controlling smart-home devices, and this compares the current automation setup with the previous saved snapshot.

In plain words
What is it for?
Use it to find automations that were added, removed, edited, enabled, or disabled since the last snapshot.
Why use it?
It shows changes made between sessions, including edits made directly in Home Assistant's user interface, which can otherwise be hard to track when a regression occurs.

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 hermitd-homeassistant plugin — 17 skills, 3 agents shipped together

Good fit Use it to find automations that were added, removed, edited, enabled, or disabled since the last snapshot.

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/hermitd
Claude Code
/plugin install hermitd-homeassistant

Made for: Claude Code.

Or install hermitd-homeassistant, the plugin that ships this one along with the rest of its 17 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-automation-diff

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gtapps/hermitd/ha-automation-diff"><img src="https://agentmods.dev/badge/skills/gtapps/hermitd/ha-automation-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 639 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 94% copy Near-identical to another mod 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.00066 $0.00639
Opus 5.5 $0.00026 $0.00256
Sonnet 5.5 $0.00013 $0.00128
Haiku 4.5 $0.00007 $0.00064

Measured 1mo ago against content hash 7030f996fb8f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ha-automation-diff 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 1mo 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.

Origin

This is a copy

94% identical to ha-automation-diff — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/hermitd-homeassistant/skills/ha-automation-diff/SKILL.md · 46 lines

How it starts

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

HA Automation Diff

Purpose

ha-safety-audit catches POLICY drift at a point in time. This skill catches CHANGE drift: which automations were added, removed, edited, enabled, or disabled since the last snapshot — including edits made directly in the HA UI that bypass ha-build-automation. It gives the hermit a memory of "what moved" between sessions, which is what explains regressions and keeps the estate legible.

It is read-only against Home Assistant: it enumerates automations, hashes each stored config, and diffs against the previous snapshot.

Steps

  1. Run ${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha automation-diff.
  2. The command writes a JSON snapshot to .hermit/raw/snapshot-ha-automations-latest.json (the baseline for the next run) and a markdown findings artifact under .hermit/raw/audit-ha-automation-diff-*, and prints one JSON object: date, tracked, changes (each change, name, id, in display order) and the untracked count, or {"status":"baseline","reason":"no_prior_snapshot","date","tracked"} on the first run.
  3. Render the findings block below from it.

Output contract

One line per changes entry; leave out the Untracked line when untracked is 0:

ha-automation-diff findings — YYYY-MM-DD
Changes since last snapshot: K
- added: <name> (`<id>`)
- removed: <name> (`<id>`)
- edited: <name> (`<id>`)
- disabled: <name> (`<id>`)
- enabled: <name> (`<id>`)
Untracked (YAML-packaged, config not diffable): M

First run (status is baseline): Baseline established. (<tracked> automations tracked) under the header.

No changes (changes is empty): No changes since last snapshot. (<tracked> automations tracked) in place of the Changes since last snapshot and change lines.

Failure modes

  • HA unreachable or erroring: the CLI prints {"error":"ha_unreachable:<detail>"} or {"error":"ha_http_<status>:<detail>"} and exits 1. Treat either as "skipped, cannot diff"; do not retry automatically.
  • YAML-packaged automations have no numeric id and are not REST-retrievable, so their config is not diffable. They are counted under "Untracked" rather than silently dropped — the diff is honest about what it does not cover.

Read the full file on GitHub · 46 lines

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. 1mo ago Changed · +2 lines 7030f996fb8f
  2. 1mo ago First seen · 44 lines · 66 tokens per session scan A 7a0996522900

Subscribe to this mod's changes

ha-automation-diff is a skill published in the GitHub repository gtapps/hermitd (87 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 639 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to ha-automation-diff, differing in 12 lines, and is treated as a copy.

Related

ha-automation-diff compared with skills from other repositories

ha-automation-diff next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ha-automation-diffgtapps/hermitdSkill87todayMITA66Claude Code
volt-otatonone-ai/tononeSkill842d agoMITA70Claude Code
volt-firmwaretonone-ai/tononeSkill842d agoMITA76Claude Code
windows-ops0xDarkMatter/claude-modsSkill866d agoMITA217Claude Code
vigil-instrumenttonone-ai/tononeSkill842d agoMITA61Claude Code
touch-audittonone-ai/tononeSkill842d agoMITA47Claude Code
prism-audittonone-ai/tononeSkill842d agoMITA42Claude Code