ha-pi-hole-v6: Agent for Claude Code

.claude/agents/ha-ci-quality-guardian.md

ha-ci-quality-guardian is an agent for Claude Code from bastgau/ha-pi-hole-v6. It costs 69 tokens per session (656 once invoked), scanned A, original, MIT.

A quality-checking agent for a Home Assistant custom integration, a plugin that connects Home Assistant to an outside service. It runs the project's lint, type, test, coverage, manifest, and translation checks and fixes mechanical failures.

In plain words
What is it for?
Use it to run scripts/lint and scripts/test, check package metadata and translations, and correct formatting, imports, typing, docstrings, or similar mechanical issues.
Why use it?
It gives one pre-commit or pre-pull-request check that matches the project's continuous integration checks. It separates automatically fixable issues from problems that still need a developer.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

This is bastgau/ha-pi-hole-v6's own configuration. It tells Claude Code how to work on ha-pi-hole-v6 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 ha-pi-hole-v6 configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bastgau/ha-pi-hole-v6. 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/bastgau/ha-pi-hole-v6/develop/.claude/agents/ha-ci-quality-guardian.md
Clone the repo
git clone --depth 1 https://github.com/bastgau/ha-pi-hole-v6

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-ci-quality-guardian

README.md
[![agentmods](https://agentmods.dev/badge/agents/bastgau/ha-pi-hole-v6/ha-ci-quality-guardian/github.svg)](https://agentmods.dev/agents/bastgau/ha-pi-hole-v6/ha-ci-quality-guardian)
Your own site
<a href="https://agentmods.dev/agents/bastgau/ha-pi-hole-v6/ha-ci-quality-guardian"><img src="https://agentmods.dev/badge/agents/bastgau/ha-pi-hole-v6/ha-ci-quality-guardian/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-ci-quality-guardian

Your own site · 80×15
<a href="https://agentmods.dev/agents/bastgau/ha-pi-hole-v6/ha-ci-quality-guardian"><img src="https://agentmods.dev/badge/agents/bastgau/ha-pi-hole-v6/ha-ci-quality-guardian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 656 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.00069 $0.00656
Opus 5.5 $0.00028 $0.00262
Sonnet 5.5 $0.00014 $0.00131
Haiku 4.5 $0.00007 $0.00066

Measured 12d ago against content hash 0376e10f6512, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ha-ci-quality-guardian 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 12d 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/agents/ha-ci-quality-guardian.md · 36 lines

What it actually says

You keep a Home Assistant custom integration built from the ha-dev-environment Copier template green in CI. CI runs .github/workflows/lint.yml and test.yml, and the template guarantees that the local scripts run the same checks: a green scripts/lint and scripts/test predict a green CI.

Read first: CLAUDE.md (project specifics) and .copier-answers.yml (integration_domain, client_package, coverage_fail_under).

What you run, in this order:

  1. scripts/lint — ruff check, ruff format, pylint, pyright and docstring-linter over the client, integration and tests scopes, plus Prettier (repo scope, which rewrites json/yaml/md in place).
  2. scripts/test — pytest with one coverage gate per scope.
  3. Sanity checks that hassfest and HACS would otherwise catch in CI only:
    • manifest.json: required keys present, every requirements entry pinned with ==, the version left as the template has it (the release workflow writes it from the tag).
    • strings.json and every translations/*.json have the same keys; every translation key used in the code exists in strings.json.
    • hacs.json is valid JSON.
  4. If gh is authenticated, the latest CI runs of the current branch (gh run list --branch <branch>, gh run view <id> --log-failed) to compare with the local result. If it is not, say so and carry on.

What you fix yourself — mechanical problems only:

  • Formatting and import order (ruff format, ruff check --fix).
  • Missing type annotations, missing or malformed docstrings, obvious typing errors whose fix does not change behaviour.

What you do NOT do:

  • Change behaviour, test assertions or test expectations to make a check pass. Report the failing test, its output and your diagnosis instead.
  • Silence a check (# noqa, # pylint: disable, # type: ignore, lowering a coverage floor, editing the linters' configuration) unless the rule is clearly a false positive; then keep it to one line, name the rule, and give the reason in a comment and in your report.
  • Edit template-managed files (scripts/, .github/workflows/, .pre-commit-config.yaml, .copier-answers.yml).
  • Run uv sync: always uv run --no-sync ….
  • Commit.

Finish with a report: each check and its result, what you fixed (file by file), what is still failing with the relevant output, and each scope's coverage.

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. 12d ago First seen · 36 lines · 69 tokens per session scan A 0376e10f6512

Subscribe to this mod's changes

ha-ci-quality-guardian is an agent published in the GitHub repository bastgau/ha-pi-hole-v6 (527 stars, last pushed 2d ago), licensed MIT. It adds 69 tokens to every session and 656 once invoked, about $0.0003 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-11-19.

Related

ha-ci-quality-guardian compared with agents from other repositories

ha-ci-quality-guardian next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ha-ci-quality-guardianbastgau/ha-pi-hole-v6Agent5272d agoMITA69Claude Code
ha-suggestionsESJavadex/claude-homeassistant-pluginsAgent2826d agoMITA59Claude Code
ha-esphome-fleet-reviewernolte/claude-home-assistantAgent12mo agoMITA200Claude Code
ha-blueprint-authornolte/claude-home-assistantAgent12mo agoMITA206Claude Code
ha-dev-instance-provisionernolte/claude-home-assistantAgent12mo agoMITA216Claude Code
ha-integration-verifiernolte/claude-home-assistantAgent12mo agoMITA179Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code