Borrowing it
Nothing to install: this file belongs to flz/iaqualink-py. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/flz/iaqualink-py/master/.claude/commands/ha-review.mdgit clone --depth 1 https://github.com/flz/iaqualink-pyWrote 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.
[](https://agentmods.dev/commands/flz/iaqualink-py/ha-review)<a href="https://agentmods.dev/commands/flz/iaqualink-py/ha-review"><img src="https://agentmods.dev/badge/commands/flz/iaqualink-py/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.
<a href="https://agentmods.dev/commands/flz/iaqualink-py/ha-review"><img src="https://agentmods.dev/badge/commands/flz/iaqualink-py/ha-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00478 |
| Opus 5 | $0.00000 | $0.00239 |
| Sonnet 5 | $0.00000 | $0.00096 |
| Haiku 4.5 | $0.00000 | $0.00048 |
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 9d 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.
What it actually says
/ha-review
Review the library against Home Assistant integration requirements.
Modes
Run with no argument or one of:
| Argument | What it does |
|---|---|
| (none) | Reviews the current diff vs master for HA compatibility |
devices |
Reviews the full device hierarchy for HA compatibility and improvement opportunities |
<ClassName> |
Reviews a specific device class (e.g., /ha-review IaquaThermostat) |
Steps
1. Gather context
No argument / diff mode:
git fetch origin master 2>/dev/null || true
BASE=$(git merge-base HEAD origin/master 2>/dev/null || git rev-list --max-parents=0 HEAD)
git diff "$BASE"...HEAD -- src/
Pass the diff to the ha-reviewer agent.
devices mode:
Read src/iaqualink/device.py, src/iaqualink/systems/iaqua/device.py, src/iaqualink/systems/exo/device.py, src/iaqualink/systems/i2d/device.py. Pass all four to the agent.
Class name mode:
Grep for the class across src/iaqualink/ and read the file. Pass to the agent.
2. Invoke ha-reviewer
Pass the gathered context to the ha-reviewer subagent with the instruction:
- For diff mode: "Review this diff for HA entity compatibility issues."
- For devices mode: "Review the full device hierarchy for HA compatibility and suggest improvements."
- For class mode: "Review
<ClassName>for HA entity compatibility and suggest improvements."
3. Output
Print the agent's report. Highlight any issues that would break existing HA integrations in red (prefix with BREAKING:).
Notes
- Does not modify any files. Review only.
- To action a suggestion from this review, open a follow-up with the specific change in mind and implement it.
- HA entity base classes are fetched from
github.com/home-assistant/coreat review time — no local HA install required.
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.
- 9d ago First seen · 53 lines · 0 tokens per session scan A 26ef8f03b476
ha-review is a command published in the GitHub repository flz/iaqualink-py (45 stars, last pushed 8d ago), licensed BSD-3-Clause. It costs nothing until one of its globs matches a file; then it loads 478 tokens. 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-30.
Other commands, from other repositories
esp-teach
One-time project setup -- discover hardware, find datasheets, persist context to CLAUDE.md.
esp-debug
Help debug ESP32 crashes, hangs, and peripheral issues.
esp-harden
Harden and inspect ESP32 firmware for field failures, crashes, memory, and security.
esp-optimize
Optimize ESP32 firmware for performance, memory, power, or binary size.
review-firmware
Run embedded firmware code review (memory safety, ISR, RTOS, C/C++ UB).
sdd-init
Initialize SDD context — detects project stack and bootstraps persistence backend.