ha-test-harness-augment

ha-test-harness-augment is a skill for Claude Code from nolte/claude-home-assistant. It costs 110 tokens per session (1,389 once invoked), scanned A, original, MIT.

A test-writing helper for an existing Home Assistant Custom Integration. It adds tests for one supporting code path, such as a platform, service, helper, or Lovelace cleanup code.

In plain words
What is it for?
It creates a test class, adds fixtures and snapshots where needed, then runs and repairs the new tests against the existing suite.
Why use it?
It extends the test suite without replacing existing tests and helps keep fixtures and JSON snapshots consistent with the code being tested.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-home-assistant plugin — 64 skills, 11 agents shipped together

Good fit It creates a test class, adds fixtures and snapshots where needed, then runs and repairs the new tests against the existing suite.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nolte/claude-home-assistant/ha-test-harness-augment
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.

Any agent
npx skills add nolte/claude-home-assistant --skill ha-test-harness-augment
Clone the repo
git clone --depth 1 https://github.com/nolte/claude-home-assistant

Made for: Claude Code.

Or install claude-home-assistant, the plugin that ships this one along with the rest of its 64 skills, 11 agents.

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-test-harness-augment

README.md
[![agentmods](https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-test-harness-augment/github.svg)](https://agentmods.dev/skills/nolte/claude-home-assistant/ha-test-harness-augment)
Your own site
<a href="https://agentmods.dev/skills/nolte/claude-home-assistant/ha-test-harness-augment"><img src="https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-test-harness-augment/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-test-harness-augment

Your own site · 80×15
<a href="https://agentmods.dev/skills/nolte/claude-home-assistant/ha-test-harness-augment"><img src="https://agentmods.dev/badge/skills/nolte/claude-home-assistant/ha-test-harness-augment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,389 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.
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.00110 $0.01389
Opus 5.5 $0.00044 $0.00556
Sonnet 5.5 $0.00022 $0.00278
Haiku 4.5 $0.00011 $0.00139

Measured 2mo ago against content hash d90a0beaeb26, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ha-test-harness-augment 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 2mo 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.

skills/ha-test-harness-augment/SKILL.md · 102 lines

How it starts

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

HA Test Harness Augment

Spec: spec/claude/ha-test-harness-augment/en.md (EN canonical) / spec/claude/ha-test-harness-augment/de.md (DE translation).

Why this is a skill, not an agent

  • Run-and-fix loop in the main thread (decisive): added tests are executed and repaired iteratively against the live suite; that loop needs the conversation's context of what just changed and why.
  • Mid-flow approval: which secondary path to cover and which snapshot shape to freeze is agreed with the operator first.
  • Counter-dimension considered: test generation for one path is a bounded unit (agent bias), but a fire-and-forget agent returning a red suite would push the debugging back into the main thread anyway — keeping the loop here is cheaper.

When this skill activates

Use this skill to augment the test suite of an existing HA Custom Integration with one secondary test class per call.

When NOT to activate

  • end-to-end tests against a real HA instance → separate spec (planned)
  • refactoring existing tests → manual code edit
  • coverage-threshold enforcement → CI configuration

Hard rules

  1. Never overwrite or delete existing tests. Augment is additive only.
  2. Never address real backends or real HA instances. Mocks (mock_api) and fixtures (load_fixture) only.
  3. Never include generic except Exception:. Catch only specific known errors.
  4. Always extend conftest.py rather than create parallel fixtures. Reuse existing fixture names; add new ones only when none fits.
  5. Always run the coverage-report command after augment. Skill output names the new coverage delta.
  6. Verify HA internals against the official docs. Don't reproduce HA API signatures, lifecycle hooks, conventions, or schemas from memory — when uncertain, consult the official docs before generating or relying on it: Developer docs developers.home-assistant, architecture/blueprint/YAML docs home-assistant.io (see spec/ha/upstream-docs-verification/en.md).

Read the full file on GitHub · 102 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. 2mo ago First seen · 102 lines · 110 tokens per session scan A d90a0beaeb26

Subscribe to this mod's changes

ha-test-harness-augment is a skill published in the GitHub repository nolte/claude-home-assistant (1 stars, last pushed 2mo ago), licensed MIT. It adds 110 tokens to every session and 1,389 once invoked, about $0.0004 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-09-15.

Related

ha-test-harness-augment compared with skills from other repositories

ha-test-harness-augment next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ha-test-harness-augmentnolte/claude-home-assistantSkill12mo agoMITA110Claude Code
generate-testsFlorianBruniaux/claude-code-pluginsSkill47yesterdayMITA39Claude Code
unit-testjohnqtcg/awesome-skillsSkill311mo agoMITA100Claude Code
fuzzing-testjohnqtcg/awesome-skillsSkill311mo agoMITA74Claude Code
python-testing-patternsFluxonLab/SkillrySkill133d agononeA38Claude Code, Codex
temporal-python-testingFluxonLab/SkillrySkill133d agononeA45Claude Code, Codex
migrate-to-shoehornstevesolun/ctxSkill5931mo agoMITA48Claude Code, Codex