Ha Review ha-review

Reviews Home Assistant code changes and provides constructive feedback. Should be used when a review is requested to provide a consistent review behavior and output format. This skill can be used for code reviews in general, not just for GitHub pull requests.

Works in Claude, ChatGPT, Codex and more
Our test
7/10✓ Verified
tested Dec 6, 2026
GitHub stars
93k
home-assistant/core
Added by
0
members
Updated
Dec 6
commit 7b3d9fa
Content
1 file
no scripts · 3 KB
License
Apache 2.0
free to use

What our test found

Le skill propose une méthode structurée et des commentaires concrets adaptés aux revues Home Assistant, mais impose des sous-agents qui peuvent ne pas être disponibles.

Request we tested it on“Can you review this Home Assistant change? In `coordinator.py`, I’m adding `self.api_key = entry.data["api_key"]` and logging `LOGGER.debug("Using API key %s", self.api_key)` to diagnose connection failures.”

Limits spotted

  • Requires subagents to verify every finding, which is not always possible.
  • Asks to determine and compare Git references, a step that is impossible without repository access.
  • The example format mixes severity levels without precisely defining their criteria.
View on GitHub ↗
name: ha-review
description: Reviews Home Assistant code changes and provides constructive feedback. Should be used when a review is requested to provide a consistent review behavior and output format. This skill can be used for code reviews in general, not just for GitHub pull requests.

Review Code Changes

Scope:

  • Unless instructed otherwise, review the full changes (the ones from the branch plus uncommitted ones) against the target branch. Resolve the base to an available ref (prefer upstream/<base>, then origin/<base>, then local <base>) and review git diff "$(git merge-base "$BASE_REF" HEAD)"; use dev as the default base.

Analyze the code changes for:

  • Code quality and style consistency
  • Potential bugs or issues
  • Performance implications
  • Security concerns
  • Test coverage
  • Documentation updates if needed
  • Values that reach new code from existing code. Read the producing side, including its fallbacks and defaults, not only the diff.
  • State added to an entity or coordinator. Check where it is reset, for example on reconnect or reload.

Quality scale:

  • If the changes include a quality_scale.yaml file, run a subagent to verify all the added or modified rules, following the ha-quality-scale-verify skill.
  • Include the verification results in the final review comments.

Verification:

  • After the review, run parallel subagents for each finding to double-check it.
  • When a finding suggests a change, also check that the suggested change is valid, for example that it does not violate one of the Home Assistant pylint plugin rules.
  • Spawn up to a maximum of 10 parallel subagents at a time.
  • Gather the results from the subagents and summarize them in the final review comments.

IMPORTANT:

  • Just review. DO NOT make any changes.
  • Be constructive and specific in your comments.
  • Suggest improvements where appropriate.
  • No need to run tests or linters, just review the code changes.
  • No need to highlight things that are already good.

Output format:

  • List specific comments for each file/line that needs attention.
  • In the end, summarize with an overall assessment (approve, request changes, or comment) and bullet point list of changes suggested, if any.
  • Example output: ``` Overall assessment: request changes.
  • [CRITICAL] sensor.py:143 - Memory leak
  • [PROBLEM] data_processing.py:87 - Inefficient algorithm
  • [SUGGESTION] test_init.py:45 - Improve x variable name
  • [NIT][PRE-EXISTING] const.py:12 - Unused constant ```
  • Make sure to include the file and line number when possible in the bullet points.
  • Flag findings with [PRE-EXISTING] after the category when the issue already exists on the base branch and the change only touches, moves or sits next to that code. Confirm against the base branch before flagging. Pre-existing findings should not on their own make the overall assessment "request changes".