Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add nolte/claude-home-assistant --skill ha-diagnostics-augmentgit clone --depth 1 https://github.com/nolte/claude-home-assistantWrote 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.
[](https://agentmods.dev/skills/nolte/claude-home-assistant/ha-diagnostics-augment)<a href="https://agentmods.dev/skills/nolte/claude-home-assistant/ha-diagnostics-augment"><img src="https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-diagnostics-augment/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.
<a href="https://agentmods.dev/skills/nolte/claude-home-assistant/ha-diagnostics-augment"><img src="https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-diagnostics-augment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00199 | $0.02039 |
| Opus 5 | $0.00100 | $0.01019 |
| Sonnet 5 | $0.00040 | $0.00408 |
| Haiku 4.5 | $0.00020 | $0.00204 |
Grade A, and why
ha-diagnostics-augment 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.
How it starts
The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
HA Diagnostics Augment
Spec: spec/claude/ha-diagnostics-augment/en.md (EN canonical) / spec/claude/ha-diagnostics-augment/de.md (DE translation).
Why this is a skill, not an agent
- Human-visible augmentation surface — the user describes the integration and reads back
diagnostics.py, theTO_REDACTset, and the conformance report; a skill keeps this on the visible command surface, like the sibling augment skills (ha-config-flow-augment,ha-coordinator-add,ha-repairs-add,ha-device-automation-add). - Mid-flow interactivity — the redaction-key classification (which
entry.datafields are credentials/identifiers/coordinates) is a per-run dialogue the user confirms before generation. - Bounded, inline generation — one module plus its
TO_REDACTset and the dump structure fit inline; no isolated agent context is needed. - Counter-dimension considered: the derive→validate loop could be an agent, but the redaction-key classification belongs in the user's working context; skill wins.
When this skill activates
Use this skill to enrich an existing integration's diagnostics beyond the scaffold baseline — a complete, structured async_get_config_entry_diagnostics dump (and optionally async_get_device_diagnostics) that routes every sensitive field through async_redact_data and includes redacted coordinator snapshots.
When NOT to activate
- auditing redaction gaps across modules (findings report) →
ha-security-audit - the bare diagnostics stub at greenfield creation →
ha-integration-scaffold - scoring the diagnostics quality-scale rule across all rules →
ha-quality-scale-audit/ha/quality-scale - deploying/importing into a running HA instance → out of scope
Hard rules
- Existing integration only.
custom_components/<domain>/manifest.jsonmust exist. Whendiagnostics.pyalready exists, edit it — never blindly overwrite. - Read
spec/ha/diagnostics/en.mdfirst. Do not generate from memory. async_get_config_entry_diagnosticscontract. Exportasync_get_config_entry_diagnostics(hass, entry) -> dictas a top-level async function — HA invokes it automatically on "Download Diagnostics". Optionally exportasync_get_device_diagnostics(hass, entry, device) -> dictwith the same redaction contract.async_redact_datais mandatory. Wrap everyentry.dataandentry.optionslookup — and every coordinator nesting that carries sensitive fields — inhomeassistant.components.diagnostics.async_redact_data(..., TO_REDACT). Never use manual logic (if "api_key" in d: d["api_key"] = "***"), a manual"REDACTED"string, or field deletion (del d["api_key"]);**REDACTED**preserves length/format debugging and is the HA convention.- Module-constant
TO_REDACTfrozenset. DefineTO_REDACTas a module constant (or inconst.pywhen shared across hooks) holding everyentry.datakey classified as a credential or identifier — typicallyapi_key,password,token,secret,auth,bearer, plus integration-specific tenant/account slugs. Keep it in sync with theentry.dataschema. - Identifiers and coordinates too. Include multi-tenant identifiers (
tenant_slug,tenant_id,org_id) and coordinates (latitude,longitude) inTO_REDACT— identifying, therefore kept out of forum reports. - Coordinator data in the dump. Include the current
coordinator.dataof every registered coordinator and redact it when the API response carries sensitive fields; reduce to a subset only when the full dump would be too large. Never dump logs or stack traces. - Derive, don't guess. Derive the
entry.data/entry.optionskey space from the config flow and setup; ask when uncertain. - Name per
spec/ha/naming-conventions/en.mdand verify HA internals against the official docs (seespec/ha/upstream-docs-verification/en.md).
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.
- 9d ago First seen · 108 lines · 199 tokens per session scan A 76c3a7937b39
ha-diagnostics-augment is a skill published in the GitHub repository nolte/claude-home-assistant (1 stars, last pushed 1mo ago), licensed MIT. It adds 199 tokens to every session and 2,039 once invoked, about $0.0010 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-31.
Other skills, from other repositories
manage-skills
A maintenance workflow for checking whether project verification skills still cover the code and rules that changed during a session.
systematic-debugging
Structured debugging methodology — use before proposing fixes for any error or failure. Covers: code bugs, build errors, deploy failures, config conflicts, dependency issues, infra problems. Also use when previous fix attempts failed or root cause is unclear.
review-loop
Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…
debug-systematic
Systematic 4-phase debugging methodology for complex, intermittent, or mysterious issues. Use when investigating bugs, race conditions, or unexplained failures.
embedded-iot
Embedded systems firmware, microcontrollers (ESP32, STM32, Arduino, Raspberry Pi), RTOS (FreeRTOS, Zephyr), IoT protocols (MQTT, CoAP, BLE), bare-metal C/C++, and hardware peripheral interfaces (I2C, SPI, UART, GPIO). Use when developing firmware, working with microcontrollers, or building IoT devices.
diagnose-hid-keycodes
Find out what an unknown USB/Bluetooth HID button actually emits without assuming the label or documentation. Uses Karabiner's.