core: Skill for Claude Code

.claude/skills/ha-review/SKILL.md

ha-review is a skill for Claude Code from home-assistant/core. It costs 50 tokens per session (647 once invoked), scanned A, original, Apache-2.0.

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 Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

This is home-assistant/core's own configuration. It tells Claude Code how to work on core itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything core configures →

About the project

Home Assistant is open-source home automation software that lets people control devices and actions locally through a modular system. It is used by home-automation enthusiasts and DIY users, often on a Raspberry Pi or local server; the catalogue entries support operating or developing its integrations and codebase.

home-assistant/core · 91,801 stars · on GitHub · home-assistant.io

Reuse

Borrowing it

Nothing to install: this file belongs to home-assistant/core. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/home-assistant/core/dev/.claude/skills/ha-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/home-assistant/core

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ha-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/home-assistant/core/ha-review/github.svg)](https://agentmods.dev/skills/home-assistant/core/ha-review)
Your own site
<a href="https://agentmods.dev/skills/home-assistant/core/ha-review"><img src="https://agentmods.dev/badge/skills/home-assistant/core/ha-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ha-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/home-assistant/core/ha-review"><img src="https://agentmods.dev/badge/skills/home-assistant/core/ha-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 647 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00050 $0.00647
Opus 5.5 $0.00020 $0.00259
Sonnet 5.5 $0.00010 $0.00129
Haiku 4.5 $0.00005 $0.00065

Measured 7d ago against content hash 1670ced9c246, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 7d ago.

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 · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.
      1. [CRITICAL] sensor.py:143 - Memory leak
      2. [PROBLEM] data_processing.py:87 - Inefficient algorithm
      3. [SUGGESTION] test_init.py:45 - Improve x variable name
      4. [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".

Read the full file on GitHub · 51 lines

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. 7d ago Changed · +5 lines 1670ced9c246
  2. 1mo ago Changed e2a0263f610a
  3. 1mo ago 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 (91,801 stars, last pushed today), licensed Apache-2.0. It adds 50 tokens to every session and 647 once invoked, about $0.0002 per session on Opus 5.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.