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-device-automation-addgit 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-device-automation-add)<a href="https://agentmods.dev/skills/nolte/claude-home-assistant/ha-device-automation-add"><img src="https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-device-automation-add/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-device-automation-add"><img src="https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-device-automation-add.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.00206 | $0.01855 |
| Opus 5 | $0.00103 | $0.00928 |
| Sonnet 5 | $0.00041 | $0.00371 |
| Haiku 4.5 | $0.00021 | $0.00186 |
Grade A, and why
ha-device-automation-add 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 11d 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 — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
HA Device Automation Add
Spec: spec/claude/ha-device-automation-add/en.md (EN canonical) / spec/claude/ha-device-automation-add/de.md (DE translation).
Why this is a skill, not an agent
- Human-visible augmentation surface — the user describes a device interaction and reads back the platform module, the schema, 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). - Mid-flow interactivity — the kind decision and the entity-vs-device value check (with HA's "no new device automations" caveat) are per-run dialogues the user approves before generation.
- Bounded, inline generation — one platform module plus its schema and strings fit inline; no isolated agent context is needed.
- Counter-dimension considered: the draft→validate loop could be an agent, but the kind decision and the trade-off advice belong in the user's working context; skill wins.
When this skill activates
Use this skill to add one device-automation kind — a device trigger, condition, or action — to an existing integration, typically for a device-native event with no entity binding (e.g. a remote button press).
When NOT to activate
- entity automations (state/event model without device indirection) →
ha/entity-architecture - a registered service with its own schema →
ha-service-definition-add/ha/services - greenfield integration scaffolding →
ha-integration-scaffold - deploying/importing into a running HA instance → out of scope
Hard rules
- One kind, one run. No multi-kind batches.
- Read
spec/ha/device-automations/en.mdfirst. Do not generate from memory. - Deliberate trade-off. The quality-scale marker is none and HA accepts no new device automations. Run an entity-vs-device value check first: if a state/event entity automation covers the need, point that out; only a genuine device-native event justifies this. State the caveat in the report.
async_get_*contract.async_get_triggers/async_get_conditions/async_get_actions(hass, device_id)returns a list of dicts; every entry carriesCONF_PLATFORM("device"),CONF_DOMAIN,CONF_DEVICE_ID, and at leastCONF_TYPE.- Module-constant schema, core-applied. Define
TRIGGER_SCHEMA(extendsTRIGGER_BASE_SCHEMA) /CONDITION_SCHEMA(fromDEVICE_CONDITION_BASE_SCHEMA) /ACTION_SCHEMA(fromDEVICE_ACTION_BASE_SCHEMA) as a module constant — never apply it to the config manually; the core does. - Attach / check / call.
async_attach_trigger(...)calls theactionon fire and returns a detach function;async_condition_from_config(...)is a@callbackreturning aboolchecker and respectingconfig_validation;async_call_action_from_config(...)executes the action. - Thin adapters. Build on event/state/service-action helpers; never duplicate business logic that already lives in a service or the entity platform.
- Translate every type. Each used
CONF_TYPE(and optional subtype) has a string instrings.jsonunderdevice_automation:(seespec/ha/translations/en.md); a missing string shows the user a raw key. - 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.
- 11d ago First seen · 107 lines · 206 tokens per session scan A b9f303ddb844
ha-device-automation-add is a skill published in the GitHub repository nolte/claude-home-assistant (1 stars, last pushed 1mo ago), licensed MIT. It adds 206 tokens to every session and 1,855 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
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.
spark-environment-setup
Set up a working ML training/inference environment on NVIDIA DGX Spark (GB10, aarch64, CUDA 13). Use when installing PyTorch/Unsloth/TRL/vLLM on DGX Spark, hitting libcudart or wheel-ABI errors on aarch64, or choosing between NGC containers and bare pip installs.
spark-training-gotchas
Preflight and diagnose the ten known failure modes for ML training on NVIDIA DGX Spark. Use when a training run on DGX Spark fails to start, OOMs below the 128GB limit, slows down mid-run, or before any multi-hour training job on GB10.
security-compliance
Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding security throughout the SDLC.
stride-analysis-patterns
Apply STRIDE methodology to systematically identify threats. Use when analyzing system security, conducting threat modeling sessions, or creating security documentation.
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"…