home-assistant-frontend
Skill1 starsChanged 56 days agoApache-2.0View on GitHub
Home Assistant frontend skill routing and personal engineering overlays. Use when editing or reviewing the Home Assistant frontend so repository-local `ha-frontend-*` skills stay authoritative and applicable Lit, TypeScript, cleanup, and HA companion skills are also loaded.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentic-workflowsSkill
- asking-questionsSkill
- branch-context-consumerSkill
- broSkill
- browser-accessSkill
- browser-controlSkill
- changeset-scopeSkill
- check-skill-updatesSkill
- chillSkill
- 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-lazy-contextSkill
- home-assistant-list-componentsSkill
- home-assistant-lit-renderingSkill
- human-step-guideSkill
- import-external-skillSkill
- lit-renderingSkill
- maintain-docsSkill
- opencode-effectSkill
- pitchfork-dev-serversSkill
- pkexec-rootSkill
- planSkill
- release-oxlint-rulesSkill
- remove-single-use-functionsSkill
- researchSkill
- retroSkill
- safe-process-signalsSkill
- session-coordinationSkill
- shared-workflowsSkill
- show-meSkill
- skill-prefixesSkill
- staged-implementationSkill
- task-focusSkill
- testingSkill
- to-questionnaireSkill
- types-enforce-tsSkill
- wranglerSkill
- writing-dot-skillsSkill
- writing-styleSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when working in the Home Assistant frontend repository or on code that follows its conventions.
- Distinctive: line 16
Read the repository's applicable instructions before editing or reviewing.
- Very specific: line 18
Treat those repo-local 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 44
Prefer a narrow canonical helper or shared module over callback-heavy abstractions, pass-through wrappers, widened signatures, duplicate …
- Distinctive: line 50
Treat readiness as the first displayable terminal result, including stable empty and error states.
- Distinctive: line 51
Every value affecting memoized output must participate in invalidation, either as an explicit key or through deliberate cache invalidation.
- Distinctive: line 64
Keep maintenance of existing test infrastructure in dedicated work.
- Distinctive: line 65
Prefer watched background development servers while iterating, but treat CI as final verification when local and CI environments may differ.
- Distinctive: line 73
Read the Core repository instructions when the frontend change involves backend APIs, WebSocket commands, entity models, or integration …
- Distinctive: line 75
When adding or modifying frontend calls to backend APIs, verify the API exists in core and match parameter names, types, and response …
- Distinctive: line 76
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 80
Read the user documentation repository instructions when asked to create or update user-facing documentation.
- Distinctive: line 82
Follow the documentation repository's writing style rather than imposing global frontend copy guidance.
- Distinctive: line 83
When a frontend change adds user-visible functionality, remind that corresponding docs may be needed and offer to create them following the …
- Distinctive: line 88
When creating or updating documentation for custom card APIs, dashboard strategies, Lovelace extensibility, or frontend development guides, …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 when working in the Home Assistant frontend repository or on code that follows its conventions. It routes to the project'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:
- Read the repository's applicable instructions before editing or reviewing.
- Discover and load every applicable repo-local
ha-frontend-*skill based on its description. - Treat those repo-local skills as authoritative for components, contexts, styling, testing, user-facing text, and review conventions.
- Do not replace repository guidance with a global pattern or copy repository conventions into this skill.
When to Apply
- Editing files in a Home Assistant frontend checkout
- 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.
Apply these cross-project engineering preferences without overriding explicit repository rules:
Scope And Surface
- Make one independently reviewable change at a time unless batching is explicitly requested. Stay within the requested area and preserve existing semantics during migrations unless changing them is in scope.
- Prefer a narrow canonical helper or shared module over callback-heavy abstractions, pass-through wrappers, widened signatures, duplicate types, or ceremonial aliases.
- Challenge optional feature surface that adds network, lifecycle, consistency, or documentation cost without supporting the core task.
Async State And Readiness
- Model asynchronous UI as transitions: establish immutable baselines before awaits, guard stale responses, preserve unsaved mounted state, and classify an action's current meaning before dirty-gating it.
- Treat readiness as the first displayable terminal result, including stable empty and error states. Do not resolve between a failed request and its fallback.
- Every value affecting memoized output must participate in invalidation, either as an explicit key or through deliberate cache invalidation.
- 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
- 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-testingand, for reviews,ha-frontend-review. Add tests for meaningful failures or important logic, with a concrete benefit rather than coverage for its own sake. Honour explicit requirements and the repository's rendering-test prohibition. - 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.
- Prefer watched background development servers while iterating, but treat CI as final verification when local and CI environments may differ.
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.
Developer Docs (../developers.home-assistant)
- Developer documentation for custom cards, custom dashboards, frontend architecture, and core packages lives here (developers.home-assistant.io).
- When creating or updating documentation for custom card APIs, dashboard strategies, Lovelace extensibility, or frontend development guides, work in this repo.
- Reference
docs/frontend/anddocs/frontend.mdfor existing frontend developer documentation. - Core packages are cloned here — use them as reference for documenting Python package APIs and integration development patterns.
- Discover and follow that repository's
AGENTS.mdand repo-local skills before making changes.
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.

