ha-review

A code-review guide for checking Home Assistant changes and other code changes. It defines what to inspect and how to report findings.

In plain words
What is it for?
Use it to review branch changes, including uncommitted work, against a target branch and to double-check review findings. It can also verify added or changed Home Assistant quality-scale rules.
Why use it?
It gives reviews a consistent scope and format, helping catch bugs, security concerns, performance problems, missing tests, and documentation gaps without editing the code.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/home-assistant/core/ha-review
Any agent
npx skills add home-assistant/core --skill ha-review
Clone the repo
git clone --depth 1 https://github.com/home-assistant/core

Made for: Claude Code, Codex.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 472 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00050 $0.00472
Opus 5 $0.00025 $0.00236
Sonnet 5 $0.00010 $0.00094
Haiku 4.5 $0.00005 $0.00047

Measured today against content hash 17041f35c9c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ha-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/ha-review/SKILL.md · 46 lines

What it actually says

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

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.
  • 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
      
    • Make sure to include the file and line number when possible in the bullet points.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 46 lines · 50 tokens per session scan A 17041f35c9c5

Subscribe to this mod's changes

ha-review is a skill published in the GitHub repository home-assistant/core (90,198 stars, last pushed today), licensed Apache-2.0. It adds 50 tokens to every session and 472 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

iot-developer

Expert in IoT development, microcontrollers, sensors, and MQTT protocols.

daffy0208/ai-dev-standards · 18 tokens

edge-iot

Edge computing, IoT protocols, and embedded systems integration.

miles990/claude-software-skills · 15 tokens

acme-cse

Answer questions about the ACME oneM2M CSE open source project — installation, configuration, runtime options, protocol bindings, plugins, scripting, and development. Use this skill whenever the user asks anything about ACME CSE, oneM2M, acmecse, acme.ini, CSE setup, or running/configuring the ACME middleware, even if…

ankraft/ACME-oneM2M-CSE · 105 tokens

aether-iot-query

Use this skill when the user asks about a live AetherEdge runtime: channels, points, real-time values, history, alarms, rules, models, instances, routing, SHM health, service health, or system status. Use aether CLI commands to answer — do NOT inspect source code, local database files, or config YAMLs to answer…

EvanL1/AetherEdge · 82 tokens

aether-iot

Build, integrate, diagnose, or generate applications for the AetherEdge AI-native edge kernel. Use for AetherEdge onboarding, SDK compositions, device and topology clients, read-only operations UIs, MCP integration, Domain Packs, or governed IoT commands where live-state authority and physical-device safety must be…

EvanL1/AetherEdge · 68 tokens

devices-mcp-home

Live inventory of the user's smart home on this devices-mcp installation — cameras, Hue lights, Tapo P115 plugs, Netatmo weather, Ring, Nest Protect, Shelly sensors, and robots. Use when the user asks what devices they have, what's online, or wants a status summary before controlling hardware.

sandraschi/devices-mcp · 69 tokens