hacs.integration_blueprint: Skill for Claude Code

.agents/skills/ha-entity-platform/SKILL.md

ha-entity-platform is a skill for Claude Code, Codex from jpawlowski/hacs.integration_blueprint. It costs 216 tokens per session (2,143 once invoked), scanned A, original, MIT.

A coding procedure for adding or changing Home Assistant entities—the controls and readings users see for devices, such as sensors, switches, lights, or fans.

In plain words
What is it for?
Use it to add an entity platform or individual entity backed by the integration's coordinator data, including its metadata and required platform setup.
Why use it?
It helps prevent permanent mistakes in names, identifiers, units, availability, and device ownership when an entity is added to an integration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is jpawlowski/hacs.integration_blueprint's own configuration. It tells Claude Code and Codex how to work on hacs.integration_blueprint itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything hacs.integration_blueprint configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jpawlowski/hacs.integration_blueprint. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jpawlowski/hacs.integration_blueprint/main/.agents/skills/ha-entity-platform/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jpawlowski/hacs.integration_blueprint

Made for: Claude Code, Codex.

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-entity-platform

README.md
[![agentmods](https://agentmods.dev/badge/skills/jpawlowski/hacs.integration_blueprint/ha-entity-platform/github.svg)](https://agentmods.dev/skills/jpawlowski/hacs.integration_blueprint/ha-entity-platform)
Your own site
<a href="https://agentmods.dev/skills/jpawlowski/hacs.integration_blueprint/ha-entity-platform"><img src="https://agentmods.dev/badge/skills/jpawlowski/hacs.integration_blueprint/ha-entity-platform/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-entity-platform

Your own site · 80×15
<a href="https://agentmods.dev/skills/jpawlowski/hacs.integration_blueprint/ha-entity-platform"><img src="https://agentmods.dev/badge/skills/jpawlowski/hacs.integration_blueprint/ha-entity-platform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 216 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,143 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.00216 $0.02143
Opus 5.5 $0.00086 $0.00857
Sonnet 5.5 $0.00043 $0.00429
Haiku 4.5 $0.00022 $0.00214

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

Security

Grade A, and why

ha-entity-platform 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 2mo 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.

.agents/skills/ha-entity-platform/SKILL.md · 182 lines

How it starts

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

Add or change an entity platform

Entities are the user-visible surface of the integration. Getting the metadata right at creation time matters more than usual: unique IDs, device classes, and entity IDs are effectively permanent once a user has installed the integration.

Read blueprint.entities.instructions.md first — it holds the rules this procedure assumes: base-class inheritance and MRO, required EntityDescription fields, the coordinator-only data rule, availability, device info fields, PARALLEL_UPDATES, and device registry ownership. Copilot injects it automatically when you edit an entity file; other agents must open it. Python style is in blueprint.python.instructions.md.

This skill is the procedure and the decisions — it does not restate those rules.

File When to read
references/platform-members.md Before implementing a platform — its required members and its one trap

Before you write code

Clarify — ask the developer if any of this is missing:

  • Which platform (sensor, switch, …) and whether it already exists in the integration.
  • Which field of coordinator.data backs the entity, and its unit and value range.
  • Whether it is a primary entity or a diagnostic/config entity (EntityCategory).
  • For writable platforms: which API method performs the write.

Then read the closest existing sibling — for a new sensor that is custom_components/<domain>/sensor/air_quality.py. Match it rather than inventing a second style.

Layout

Each platform is a package, one entity class per file:

custom_components/<domain>/<platform>/
├── __init__.py        # async_setup_entry + aggregated ENTITY_DESCRIPTIONS
└── <group>.py         # ENTITY_DESCRIPTIONS + entity class for one logical group

Read the full file on GitHub · 182 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 182 lines · 216 tokens per session scan A bea8e247c42b

Subscribe to this mod's changes

ha-entity-platform is a skill published in the GitHub repository jpawlowski/hacs.integration_blueprint (54 stars, last pushed 5d ago), licensed MIT. It adds 216 tokens to every session and 2,143 once invoked, about $0.0009 per session on Opus 5.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-30.

Related

ha-entity-platform compared with skills from other repositories

ha-entity-platform next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ha-entity-platformjpawlowski/hacs.integration_blueprintSkill545d agoMITA216Claude Code, Codex
homeassistantha-china/ha_clawSkill1013d agoMITA15Claude Code, Codex
auroratonylofgren/aurora-smart-homeSkill109yesterdayMITA133Claude Code
ESPHometonylofgren/aurora-smart-homeSkill109yesterdayMITA192Claude Code
HA Integration Devtonylofgren/aurora-smart-homeSkill109yesterdayMITA55Claude Code
Node-REDtonylofgren/aurora-smart-homeSkill109yesterdayMITA76Claude Code
HA Dashboard Designtonylofgren/aurora-smart-homeSkill109yesterdayMITA141Claude Code