OpenParable
Skip to content
← Back to skills

Ha Frontend Review

Testing & Quality
ha-frontend-review

Ha Frontend Review is an Agent Skill for testing & quality published in the home-assistant/frontend repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Home Assistant frontend PR and review guidance. Use when reviewing frontend changes, preparing a PR, checking recurring review issues, or applying the PR template.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/home-assistant/frontend/blob/HEAD/.agents/skills/ha-frontend-review/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ha-frontend-review, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

HA Frontend Review

Use this skill when reviewing Home Assistant frontend changes or preparing a pull request.

Pull Request Body

When creating a pull request, use .github/PULL_REQUEST_TEMPLATE.md as the body.

  • Do not omit, reorder, or rewrite template sections.
  • Check the appropriate "Type of change" box based on the actual change.
  • Do not check checklist items on behalf of the user.
  • If the PR includes UI changes, remind the user to add screenshots or a short video.
  • Explain what the change does for users, not only implementation details.
  • Use Markdown.

Pre-Submission Checklist

  • yarn lint passes when practical for the scope.
  • yarn test or focused relevant tests are green when practical for the scope.
  • Tests are added or updated for new data processing and utilities where applicable.
  • User-facing text is localized and follows ha-frontend-user-facing-text guidance.
  • Components handle loading, error, unavailable, and missing-entity states.
  • Entity existence is checked before property access.
  • Event listeners and subscriptions are cleaned up.
  • UI is accessible to screen readers and keyboard users.

Recurring Review Issues

User experience and accessibility:

  • Forms need proper labels, helper text, and validation feedback.
  • Form markup should not cause password managers to identify fields incorrectly.
  • Clickable areas should be large enough for touch interaction.
  • Hover, active, disabled, loading, and focus states should be clear.

Dialog and modal patterns:

  • Multi-step operations should show progress.
  • Dialog state should survive background operations correctly.
  • Cancel and close buttons should behave consistently.
  • Defaults should be helpful without blocking user override.

Component design patterns:

  • Terminology should be consistent. Use words like "Join" or "Apply" instead of "Group" when that better matches the user action.
  • Visual hierarchy should use appropriate font sizes, weights, and spacing ratios.
  • Components should align to the design grid.
  • Badges and indicators should be placed consistently.

Code quality:

  • Null and undefined paths should be handled explicitly.
  • Potentially undefined array and object access should be guarded.
  • Event handlers, timers, observers, and subscriptions should be cleaned up.

Configuration and props:

  • Make configuration fields optional when sensible.
  • Provide reasonable defaults.
  • Keep APIs extensible without adding speculative abstractions.
  • Validate configuration before applying changes.

Review Flow

  • Identify behavioral regressions, bugs, accessibility issues, and missing tests first.
  • Keep style-only comments secondary unless they affect maintainability or user experience.
  • Prefer small, direct fixes over large refactors during review follow-up.
  • Cross-load ha-frontend-contexts, ha-frontend-components, ha-frontend-styling, ha-frontend-testing, or ha-frontend-user-facing-text when a finding falls in that area.