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-media-source-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-media-source-add)<a href="https://agentmods.dev/skills/nolte/claude-home-assistant/ha-media-source-add"><img src="https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-media-source-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-media-source-add"><img src="https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-media-source-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.00193 | $0.01906 |
| Opus 5 | $0.00097 | $0.00953 |
| Sonnet 5 | $0.00039 | $0.00381 |
| Haiku 4.5 | $0.00019 | $0.00191 |
Grade A, and why
ha-media-source-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 Media Source Add
Spec: spec/claude/ha-media-source-add/en.md (EN canonical) / spec/claude/ha-media-source-add/de.md (DE translation).
Why this is a skill, not an agent
- Human-visible augmentation surface — the user describes a media hierarchy and reads back
media_source.py, the browse tree shape, 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 media-source-vs-media-player-entity decision and the per-level
MediaClass/identifiershape are per-run dialogues the user approves before generation. - Bounded, inline generation — one
media_source.pymodule with two methods fits inline; no isolated agent context is needed. - Counter-dimension considered: the draft→validate loop could be an agent, but the source-vs-entity decision and the hierarchy shaping belong in the user's working context; skill wins.
When this skill activates
Use this skill to add a media source provider to an existing integration — a media_source.py that exposes a browsable, playable media library to the Home Assistant media browser.
When NOT to activate
- a
media_playerentity that consumes media sources (theasync_browse_media(hass, ...)call path) →ha/entity-platforms-media/ha/entity-architecture - translation mechanics for
Unresolvable/BrowseError→ha/translations - thumbnail proxy / streaming
/api/...routes → out of scope - greenfield integration scaffolding →
ha-integration-scaffold - deploying/importing into a running HA instance → out of scope
Hard rules
- One media source, one run. No multi-source batches.
- Read
spec/ha/media-source/en.mdfirst. Do not generate from memory. - No manifest change for discovery. HA discovers
media_source.pyautomatically via the integration platform mechanism — never add a manifest entry for discovery. - Top-level contract.
media_source.pyexports the top-level async functionasync_get_media_source(hass) -> MediaSourcereturning an instance of theMediaSourcesubclass, which is bound to the domain viasuper().__init__(DOMAIN). - Two mandatory methods. Implement
async_browse_media(item)(returns aBrowseMediaSourcetree — root node on emptyitem.identifier, children otherwise; raiseBrowseErrorwhen the structure cannot be retrieved) andasync_resolve_media(item)(returns aPlayMedia(url, mime_type)with a correctmime_type; raiseUnresolvablewhen the item cannot be resolved). - Node attributes. Every
BrowseMediaSourcenode carries an appropriateMediaClassand correctly setcan_play/can_expandflags (can_playfor playable items,can_expandfor items browsable deeper); root items setidentifier=None. - URI construction. Use
generate_media_source_id(DOMAIN, identifier)to constructmedia-source://URIs; encode the path in theidentifierfor deep hierarchies. - Translatable errors. Raise
Unresolvable/BrowseErrorwithtranslation_domain/translation_key/translation_placeholderswhen the message is to be translatable (seespec/ha/translations/en.md). - 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 · 193 tokens per session scan A e6cb3c7c7f40
ha-media-source-add is a skill published in the GitHub repository nolte/claude-home-assistant (1 stars, last pushed 1mo ago), licensed MIT. It adds 193 tokens to every session and 1,906 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
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.