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-integration-events-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-integration-events-add)<a href="https://agentmods.dev/skills/nolte/claude-home-assistant/ha-integration-events-add"><img src="https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-integration-events-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-integration-events-add"><img src="https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-integration-events-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.00226 | $0.02111 |
| Opus 5 | $0.00113 | $0.01056 |
| Sonnet 5 | $0.00045 | $0.00422 |
| Haiku 4.5 | $0.00023 | $0.00211 |
Grade A, and why
ha-integration-events-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 12d 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 — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.
HA Integration Events Add
Spec: spec/claude/ha-integration-events-add/en.md (EN canonical) / spec/claude/ha-integration-events-add/de.md (DE translation).
Why this is a skill, not an agent
- Human-visible augmentation surface — the user describes an occurrence and reads back the
async_firecall, the documented data shape, the listener wiring, 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-device-automation-add). - Mid-flow interactivity — the fire-vs-listen-vs-both decision and the event-vs-state check are per-run dialogues the user approves before generation.
- Bounded, inline generation — a bus-fire call plus a documented data shape, or a listener with its
async_on_unloadteardown, fit inline; no isolated agent context is needed. - Counter-dimension considered: the draft→validate loop could be an agent, but the direction decision and the event-vs-state advice belong in the user's working context; skill wins.
When this skill activates
Use this skill to add event firing and/or listening to an existing integration — firing a domain-prefixed custom event when a transient occurrence happens, or subscribing to a bus event with clean unsubscribe teardown.
When NOT to activate
- a user-driven action with its own schema →
ha-service-definition-add/ha/services - a device trigger built on top of a fired event →
ha-device-automation-add/ha/device-automations - greenfield integration scaffolding →
ha-integration-scaffold - deploying/importing into a running HA instance → out of scope
Hard rules
- Decide the direction first. Resolve fire vs. listen vs. both with the user before generating anything.
- Read
spec/ha/integration-events/en.mdfirst. Do not generate from memory. - Domain-prefixed firing. Fire via
hass.bus.async_fire("<domain>_event", event_data); the event type must carry the domain prefix;event_datais a JSON-serializable dict. Never use unprefixed or generic event names. - Firing lives in setup. Place firing code in
async_setup_entry(__init__.py), never in a platform's entity logic. For device-/service-related events add adevice_idattribute from the device registry, and document theevent_datashape (keys + types). - Listen via the bus or a helper. Use
hass.bus.async_listen(until canceled) orhass.bus.async_listen_once(exactly once); preferasync_listen_oncefor one-shot lifecycle events (EVENT_HOMEASSISTANT_START/_STARTED/_STOP). Prefer anhomeassistant.helpers.eventhelper when it covers the type; do not listen to core events likeEVENT_STATE_CHANGEDwhen a dedicated helper exists. - Never drop the unsubscribe. Hold the callable returned by
async_listen/async_listen_once(or the helper) and register it viaentry.async_on_unload(unsub)— or tear it down inasync_unload_entry(seespec/ha/setup-lifecycle/en.md). A discarded callable leaks beyond the reload and fires twice. @callbacklisteners. Decorate non-blocking, loop-running listeners with@callback(homeassistant.core.callback); avoid blocking or I/O work inside them and offload follow-up work as a task (seespec/ha/async-patterns/en.md).- Event, not state. Fire transient occurrences as events; never let entity state represent a transient event (no "30-second-on" binary sensor). Point at an
evententity (spec/ha/entity-architecture/en.md) when it models the occurrence more cleanly. - 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.
- 12d ago First seen · 112 lines · 226 tokens per session scan A d41db9605b6f
ha-integration-events-add is a skill published in the GitHub repository nolte/claude-home-assistant (1 stars, last pushed 1mo ago), licensed MIT. It adds 226 tokens to every session and 2,111 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-31.
Other skills, from other repositories
authentication-patterns
OAuth 2.0, JWT, SSO, MFA, NextAuth/Clerk/Supabase Auth implementation patterns.
email-systems
Transactional email (Resend, SendGrid, SES), templates (React Email, MJML), deliverability (SPF/DKIM/DMARC), and inboxing best practices. Use when building email infrastructure, designing templates, or troubleshooting deliverability.
event-driven-architecture
Kafka, RabbitMQ, SQS/SNS, event sourcing, CQRS, saga patterns, dead letter queues, and idempotency. Use when designing asynchronous systems, implementing message-driven workflows, or building event streaming pipelines.
graphql-expert
GraphQL API design and implementation. Use when building GraphQL APIs, designing schemas, implementing resolvers, or optimizing GraphQL performance.
api-design
REST and GraphQL API design best practices including OpenAPI specs. Use when designing APIs, documenting endpoints, or reviewing API architecture.
generic-fullstack-feature-developer
Guide feature development for full-stack applications with architecture focus. Covers Next.js App Router patterns, NestJS backend services, database models, data workflows, and seamless integration. Use when adding new features, refactoring existing code, or planning major changes.