home-assistant
Skill1 starsChanged 59 days agoMITView on GitHub
Home Assistant standards for YAML style, entity_id references, native conditions, event-driven automations, automation modes, secrets, MCP exposure limits, and backup discipline. Use when you say "write an automation for this motion sensor", "my automation retriggers and cancels itself", "move these tokens into secrets.yaml", "expose these entities to the assistant", or "why did my template condition fail silently". Not for writing a custom integration in Python, use `python-patterns`.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- michelbr84/GarraRUSTtheir own version, first seen Sep 16, 2026
- zkl2333/skillstheir own version, first seen Feb 28, 2026
- balloob/llm-skillstheir own version, first seen Jan 25, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- michelbr84/GarraRUST★ 18same name
- balloob/llm-skills★ 4same name
- zkl2333/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agentic-engineeringSkill
- ai-regression-testingSkill
- angularSkill
- ansibleSkill
- api-designSkill
- architecture-decision-recordsSkill
- ascend-memorySkill
- ascend-web-hunterSkill
- audio-scribeSkill
- automation-inventorySkill
- backend-patternsSkill
- bashSkill
- build-dependency-managementSkill
- code-formatterSkill
- code-reviewerSkill
- coding-standardsSkill
- dart-flutter-patternsSkill
- database-migrationsSkill
- deployment-patternsSkill
- design-systemSkill
- docker-patternsSkill
- e2e-runbooksSkill
- e2e-testingSkill
- embedded-c-arduinoSkill
- frontend-designSkill
- g-code-3d-printingSkill
- github-opsSkill
- git-workflowSkill
- golang-patternsSkill
- hexagonal-architectureSkill
- java-coding-standardsSkill
- jetbrains-ide-opsSkill
- jira-integrationSkill
- keycloak-patternsSkill
- kicadSkill
- markdown-writerSkill
- mongodb-patternsSkill
- nextjs-app-router-patternsSkill
- node-backend-patternsSkill
- observability-and-loggingSkill
- obsidianSkill
- performance-optimizationSkill
- postgres-patternsSkill
- powershellSkill
- project-trackingSkill
- python-patternsSkill
- pytorch-patternsSkill
- react-patternsSkill
- researchSkill
- review-duplicationSkill
- security-reviewSkill
- seoSkill
- soap-webservicesSkill
- springboot-patternsSkill
- tdd-workflowSkill
- unitySkill
- web-accessibilitySkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 86
Never edit anything under .storage/ by hand.
- Very specific: line 143
Always set a timeout and decide continue_on_timeout deliberately.
- Very specific: line 184
Use queued when every trigger must be handled in order, and parallel only when the runs genuinely do not touch the same entity.
- Very specific: line 191
Every long-lived access token, API key, and password lives in secrets.yaml and is referenced with !secret.
- Very specific: line 252
Use domain.location_device_property, lowercase with underscores, never abbreviated.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Home Assistant Standards
How a Home Assistant configuration stays reviewable and survives a device being re-paired, an upgrade, or a restore. Most breakage here is not a bug, it is a reference that pointed at something transient or a condition that only failed at runtime.
Baseline: Home Assistant Core current stable on the monthly 2026.x release train, and YAML 1.2 parsing rules.
When to activate
- Writing or reviewing an automation, script, or blueprint.
- Debugging an automation that fires twice, cancels itself, or silently does nothing.
- Moving tokens and passwords into
secrets.yaml. - Deciding which entities an assistant or MCP client may see.
- Naming entities, or cleaning up entity IDs after a device rename.
- Planning backups, integration cleanup, or a core upgrade.
When not to activate
- Writing a custom integration in Python against the Home Assistant developer API, use
python-patterns. - Writing a standalone script that talks to the REST API from outside, use
bashorpowershell. - Designing the network, reverse proxy, or container the instance runs in, use
docker-patterns. - Building an external service that consumes Home Assistant events, use
backend-patterns. - Reviewing the security posture of an internet-exposed instance, use
security-review.
YAML syntax
Two-space indentation, block style everywhere, lowercase true and false. YAML 1.2 no longer treats yes, no,
on, and off as booleans, and the parser difference produces a config that loads on one version and not another.
Pass:
automation:
- alias: "Hallway light on motion"
mode: restart
initial_state: trueFail:
automation: [{alias: Hallway light on motion, initial_state: yes}]Quote string values, leave null implicit rather than writing ~ or null, and prefer a UI-managed helper or config
entry over hand-written template: YAML wherever one exists. A helper is validated on save and travels in the
backup.
Reference entities, never devices
device_id is a registry row that is regenerated when a device is removed and re-added. Every trigger, condition,
and action targets entity_id, which you control and which survives a re-pair.
Pass:
trigger:
- platform: state
entity_id: binary_sensor.hallway_motion
to: "on"Fail:
trigger:
- platform: device
device_id: 4f2c9b1ae8d3475fa0c6e2b7d914f083
type: motionNever edit anything under .storage/ by hand. Go through the REST or WebSocket API, so the running instance stays
consistent with what is on disk.
Native conditions over template conditions
A native condition is validated when the config loads. A template condition is only evaluated when the automation runs, so a typo in it produces an automation that silently never fires and reports nothing.
Pass:
condition:
- condition: numeric_state
entity_id: sensor.hallway_illuminance
below: 15Fail:
condition:
- condition: template
value_template: "{{ states('sensor.hallway_iluminance') | float < 15 }}"The failing version misspells the entity and coerces unknown to 0.0, so it evaluates true forever and nobody
sees an error. Reach for a template condition only where no native condition can express the test, and validate it
in Developer Tools first.
Wait on triggers, not on polled templates
wait_template re-evaluates against the state bus. wait_for_trigger subscribes to the event, so it costs nothing
while waiting and it cannot miss a transition between polls.
Pass:
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.hallway_motion
to: "off"
for: "00:02:00"
timeout: "00:30:00"
continue_on_timeout: trueFail:
- wait_template: "{{ is_state('binary_sensor.hallway_motion', 'off') }}"
timeout: "00:30:00"Always set a timeout and decide continue_on_timeout deliberately. A wait with no timeout leaves the automation
run alive indefinitely and it shows up as a stuck trace weeks later.
Pick the automation mode on purpose
The default single drops a second trigger while the first run is still going, which is exactly wrong for a motion
timer: continued movement is ignored and the light goes out with someone standing under it. restart cancels the
running instance and starts the timer again.
Pass:
- alias: "Hallway light on motion"
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.hallway_motion
to: "on"
condition:
- condition: numeric_state
entity_id: sensor.hallway_illuminance
below: 15
action:
- service: light.turn_on
target:
entity_id: light.hallway_ceiling
- delay: "00:05:00"
- service: light.turn_off
target:
entity_id: light.hallway_ceilingFail:
- alias: "Hallway light on motion"
mode: singleUse queued when every trigger must be handled in order, and parallel only when the runs genuinely do not touch
the same entity.
Secrets
Every long-lived access token, API key, and password lives in secrets.yaml and is referenced with !secret.
secrets.yaml is never committed, and it is in .gitignore before the first token goes into it.
Pass:
mqtt:
broker: "mqtt.internal"
username: !secret mqtt_username
password: !secret mqtt_passwordFail:
mqtt:
broker: "mqtt.internal"
username: "homeassistant"
password: "hunter2"- Ref: https://www.home-assistant.io/docs/configuration/secrets/
- Rotate long-lived access tokens used by MCP clients and external integrations at least every 90 days.
MCP exposure
Home Assistant's MCP server speaks Streamable HTTP, and the current Claude Code CLI connects to remote MCP servers
over HTTP and SSE directly. A stdio proxy is only needed for a client that still supports nothing but stdio, so
check the client before adding one rather than assuming it.
Expose only what the assistant needs. Locks, garage doors, alarm panels, and anything else whose actuation has a physical security consequence stay unexposed, whatever the client is.
Pass:
homeassistant:
expose:
- light.hallway_ceiling
- sensor.living_room_temperatureFail:
homeassistant:
expose:
- lock.front_door
- cover.garage_door
- alarm_control_panel.house- Ref: https://www.home-assistant.io/integrations/mcp_server/
- Secure
/api/mcpwith a long-lived access token scoped to the agent, or OAuth where the client supports it.
Entity naming
Use domain.location_device_property, lowercase with underscores, never abbreviated. The entity ID is the thing
every automation, dashboard, and script references, so it is a name you have to live with.
Pass:
binary_sensor.front_door_contactFail:
binary_sensor.fd_cGroup entities with the area registry rather than repeating the area inside the ID more than once.
Reference files
| Open this | For |
| references/operations.md | Choosing between a blueprint, an automation and a script, tracing and testing a change, backups and restores, HACS hygiene, the notification priority taxonomy, and upgrade discipline |
Related skills
python-patternsfor building and testing a custom integration in Python.security-reviewbefore exposing the instance, its API, or a new entity set to anything outside the LAN.docker-patternsfor the container and network the instance runs in.bashandpowershellfor external scripts driving the REST API.observability-and-loggingfor anything long-running that consumes the event stream.
Checklist
- Two-space block YAML, lowercase booleans, quoted strings.
- Every trigger, condition, and action references
entity_id, nodevice_id. - Native conditions used wherever one exists, remaining templates validated in Developer Tools.
- Waits use
wait_for_triggerwith an explicittimeoutand a deliberatecontinue_on_timeout. - Every automation declares
modeon purpose, motion timers userestart. - No token, key, or password outside
secrets.yaml, andsecrets.yamlis gitignored. - No lock, garage door, or alarm panel exposed to an assistant or MCP client.
- Entity IDs follow
domain.location_device_propertyand are unabbreviated. - Logic used in more than two automations is a script or a blueprint.
- Automation Trace inspected after the change, conditions exercised rather than skipped.
- Nothing under
.storage/edited by hand.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

