home-assistant-frontend
Skill2 starsChanged todayApache-2.0View on GitHub
Home Assistant frontend skill routing and personal engineering overlays. Use only when editing or reviewing code inside a Home Assistant frontend (home-assistant/frontend) checkout or a Home Assistant custom card or dashboard repository, so the frontend's `ha-frontend-*` skills stay authoritative and applicable Lit, TypeScript, cleanup, and HA companion skills are also loaded.
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this skill only inside a Home Assistant frontend (home-assistant/frontend) checkout or a Home Assistant custom card or dashboard …
- Distinctive: line 16
Read the repository's applicable instructions before editing or reviewing.
- Very specific: line 18
Treat those skills as authoritative for components, contexts, styling, testing, user-facing text, and review conventions.
- Distinctive: line 19
Do not replace repository guidance with a global pattern or copy repository conventions into this skill.
- Distinctive: line 57
Keep maintenance of existing test infrastructure in dedicated work.
- Distinctive: line 65
Read the Core repository instructions when the frontend change involves backend APIs, WebSocket commands, entity models, or integration …
- Distinctive: line 67
When adding or modifying frontend calls to backend APIs, verify the API exists in core and match parameter names, types, and response …
- Distinctive: line 68
If asked to make changes that span both frontend and core (new WebSocket command, new entity feature), work in both repos and follow each …
- Distinctive: line 72
Read the user documentation repository instructions when asked to create or update user-facing documentation.
- Distinctive: line 74
Follow the documentation repository's writing style rather than imposing global frontend copy guidance.
- Distinctive: line 75
When a frontend change adds user-visible functionality, remind that corresponding docs may be needed and offer to create them following the …
- Distinctive: line 83
When creating or updating contributor documentation for custom card APIs, dashboard strategies, frontend development guides or design …
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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 Frontend
Use this skill only inside a Home Assistant frontend (home-assistant/frontend) checkout or a Home Assistant custom card or dashboard repository. Do not apply it to other projects. It routes to the frontend's own guidance and adds only cross-project engineering preferences.
Primary Source of Truth
The frontend repository owns Home Assistant implementation conventions through its AGENTS.md and .agents/skills/ha-frontend-* skills. Custom card and dashboard repositories link the applicable ha-frontend-* skills from a vendor/home-assistant-frontend submodule:
- Read the repository's applicable instructions before editing or reviewing.
- Discover and load every applicable
ha-frontend-*skill based on its description. - Treat those skills as authoritative for components, contexts, styling, testing, user-facing text, and review conventions. In custom cards and dashboards, the repository's own instructions win where they differ, for example on build tooling or public custom element APIs.
- Do not replace repository guidance with a global pattern or copy repository conventions into this skill.
When to Apply
Inside a Home Assistant frontend checkout or a custom card or dashboard repository, when:
- Editing or reviewing its files
- Reviewing or writing
ha-*prefixed Web Components - Working with HA dialogs, panels, Lovelace cards, or selectors
- Applying HA localization, theming, or design token patterns
Personal Overlay
Layer these global skills over the repository guidance when their scopes apply:
- applicable
home-assistant-*specialists for cross-repository workflows; - applicable
lit-*skills for Lit concerns; - applicable
*-tsskills before editing or reviewing TypeScript; cleanup-*andremove-single-use-*skills whenever their safe code-quality rules apply.
For Home Assistant rendering or picker work, load both lit-rendering and home-assistant-lit-rendering. Preserve the stricter TypeScript and cleanup guidance unless it conflicts with an explicit repository rule.
ha-frontend-review owns scope, async state, readiness, and memo invalidation rules, and ha-frontend-testing owns test and dev server rules. Add only these preferences, without overriding explicit repository rules:
Lifecycle
- Model logical open and close lifecycle independently from DOM connection when managers can retain closed elements. Global-listener registration must be idempotent or return a cleanup handle.
Processes And Input (build-scripts/ and similar tooling)
- Make check-then-act filesystem and PID operations atomic. Locks must cover every mutated shared resource, including watcher regeneration.
- Terminate processes with SIGTERM, wait and verify exit, then escalate to SIGKILL. Remove process state only after confirmed exit and guard against stale PID reuse.
- Handle child
spawnanderrorevents, and treat null or unknown exit codes as failures. - Reject contradictory or malformed CLI and configuration values with a positive grammar rather than permissive suffix checks.
Test Boundaries
- Apply
testingalongsideha-frontend-testing. - Keep maintenance of existing test infrastructure in dedicated work. Install error tracking before navigation and never let report-merging failures suppress the original failed-suite result.
Sibling Repositories
The Home Assistant core, documentation, custom cards, custom dashboards, and core packages commonly live alongside the frontend. When working across repositories, reference the available sibling checkout directly rather than guessing APIs or conventions. Follow each target repository's own instructions and skills.
Core (../core)
- Read the Core repository instructions when the frontend change involves backend APIs, WebSocket commands, entity models, or integration data structures.
- Reference core source (e.g.
homeassistant/components/<integration>/) to understand data shapes, service schemas, and WebSocket API handlers before consuming them in frontend code. - When adding or modifying frontend calls to backend APIs, verify the API exists in core and match parameter names, types, and response shapes to the core implementation.
- If asked to make changes that span both frontend and core (new WebSocket command, new entity feature), work in both repos and follow each repo's own
AGENTS.mdfor its conventions.
User Docs (../home-assistant.io)
- Read the user documentation repository instructions when asked to create or update user-facing documentation.
- Documentation for new frontend features, integrations, or UI changes goes here.
- Follow the documentation repository's writing style rather than imposing global frontend copy guidance.
- When a frontend change adds user-visible functionality, remind that corresponding docs may be needed and offer to create them following the docs repo's conventions.
Contributor Docs (../contributors.home-assistant.io)
- contributors.home-assistant.io replaces developers.home-assistant.io, design.home-assistant.io and data.home-assistant.io; the old
developers.home-assistantrepository is archived and its links redirect. - The
/frontend/area covers frontend development, custom cards and dashboards;/design/covers components, patterns and UI text with live frontend components;/glossary/gives each term's current name in code and UI, and its former names (service to action, add-on to app, Lovelace to dashboard). - The blog at
/blog/announces frontend and Core API changes. Use it to find what changed, then confirm in the frontend and Core source, which win where they differ. - Pages live in
src/content/docs/<area>/and blog posts insrc/content/blog/. Read them in the sibling checkout, or inhome-assistant/contributors.home-assistant.ioon GitHub when there is none. For the published site as an agent, start athttps://contributors.home-assistant.io/llms.txtor/<area>/llms.txt, and addindex.mdto a page URL for its Markdown. - When creating or updating contributor documentation for custom card APIs, dashboard strategies, frontend development guides or design components, work in this repo.
- Discover and follow that repository's
AGENTS.mdand repo-local skills (.claude/skills/) before making changes.
In this repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentic-workflowsSkill
- asking-questionsSkill
- broSkill
- browser-accessSkill
- change-review-handoffSkill
- changeset-scopeSkill
- check-skill-updatesSkill
- chillSkill
- ci-loopSkill
- cleanup-unnecessary-variablesSkill
- code-reviewSkill
- decision-modelsSkill
- diagnoseSkill
- effect-principlesSkill
- evidence-firstSkill
- gh-stackSkill
- git-contextSkill
- github-development-rulesetsSkill
- github-repository-setupSkill
- grillingSkill
- handoffSkill
- herdr-workflowsSkill
- home-assistant-lit-renderingSkill
- human-step-guideSkill
- import-external-skillSkill
- inbox-reportingSkill
- issue-loopSkill
- lit-renderingSkill
- maintain-docsSkill
- npm-jsr-first-publishSkill
- opencode-effectSkill
- pitchfork-dev-serversSkill
- pkexec-rootSkill
- planSkill
- release-oxlint-rulesSkill
- remote-change-diffSkill
- remove-single-use-functionsSkill
- researchSkill
- retroSkill
- review-stagesSkill
- review-steeringSkill
- safe-process-signalsSkill
- session-coordinationSkill
- shared-workflowsSkill
- show-meSkill
- skill-prefixesSkill
- staged-implementationSkill
- task-focusSkill
- task-runnersSkill
- testingSkill
- to-questionnaireSkill
- types-enforce-tsSkill
- wranglerSkill
- writing-dot-skillsSkill
- writing-styleSkill
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.

