Verify Home Assistant Quality Scale Rule

VerifiedSafe

Verifies whether a Home Assistant integration follows a specific quality scale rule by analyzing code and rule documentation.

Sby Skills Guide Bot
DevelopmentIntermediate
8/29/2026
Claude Code
#home-assistant#code-review#quality-assurance#integration-audit#static-analysis

Recommended for

Automated summary

Verifies that a Home Assistant integration complies with a specific quality scale rule by comparing the official rule documentation with the integration's code.

Strengths

  • Uses the official rule documentation fetched from the home-assistant/developers.home-assistant repository.
  • Checks the rule status in quality_scale.yaml (done, todo, exempt) and the declaration in manifest.json.
  • Produces localized evidence (files, code excerpts) and actionable recommendations.
  • Accounts for exemptions and the cumulative nature of the Bronze through Platinum tiers.

Limitations

  • Checks only one rule at a time; a full tier audit must be orchestrated rule by rule.
  • Relies on static code analysis, with no execution or tests.
  • Requires network access to GitHub/PyPI and a local checkout of the Home Assistant repository.
When to use it

Use it to audit a Home Assistant integration against a specific quality scale rule or to verify whether it reaches a tier such as Bronze, Silver, Gold, or Platinum.

When not to use it

Do not use it for non-Home Assistant code, runtime testing, or when the repository and rule documentation are not accessible.

Security analysis

Safe
Quality score88/100

The skill only instructs reading public documentation and analyzing integration code; it does not execute destructive commands, exfiltrate data, or use obfuscated payloads. It relies on read-only retrieval and inspection.

No concerns found

How this analysis is made

Examples

Check config-flow rule
Check whether the peblar integration follows the config-flow quality scale rule. Report only violations, with file locations, code evidence, and concrete fixes.
Verify Bronze tier
Verify whether the myintegration integration meets the Bronze quality tier. Check each Bronze rule and report only the rules with issues or invalid exemptions.
Review an exemption
Inspect the acme integration's quality_scale.yaml and code to determine whether its exemption for the entity-unique-id rule is valid. Explain what is missing if it is not.

name: ha-quality-scale-verify description: Verifies that a Home Assistant integration follows a specific quality scale rule, checking whether it implements the required patterns, configurations, or code structures defined by the quality scale system. Use when asked to check a rule (e.g. "check if the peblar integration follows the config-flow rule") or to verify an integration reaches a quality tier (Bronze, Silver, Gold, Platinum).

Verify Quality Scale Rule

You are verifying whether a Home Assistant integration follows a specific quality scale rule. Verify one rule at a time; to check a full tier, verify each of that tier's rules (run in parallel subagents when possible).

1. Fetch rule documentation

Retrieve the official rule documentation from: https://raw.githubusercontent.com/home-assistant/developers.home-assistant/refs/heads/master/docs/core/integration-quality-scale/rules/{rule_name}.md where {rule_name} is the rule identifier (e.g. config-flow, entity-unique-id, parallel-updates).

2. Understand rule requirements

Parse the rule documentation to identify:

  • Core requirements and mandatory implementations
  • Specific code patterns or configurations required
  • Common violations and anti-patterns
  • Exemption criteria (when a rule might not apply)
  • The quality tier this rule belongs to (Bronze, Silver, Gold, Platinum)

3. Analyze the integration code

Examine the integration's codebase at homeassistant/components/<integration domain>, focusing on:

  • manifest.json for quality scale declaration and configuration
  • quality_scale.yaml for rule status (done, todo, exempt)
  • Relevant Python modules based on the rule requirements
  • Configuration files and service definitions as needed

Additional sources:

  • Integration docs: Fetch https://raw.githubusercontent.com/home-assistant/home-assistant.io/refs/heads/current/source/_integrations/<integration domain>.markdown
  • PyPI package info: https://pypi.org/pypi/<package>/json

4. Verification process

  • Check if the rule is marked done, todo, or exempt in quality_scale.yaml
  • If marked exempt, verify the exemption reason is valid
  • If marked done, verify the actual implementation matches the requirements
  • Identify specific files and code sections that demonstrate compliance or violations
  • Consider the integration's declared quality tier when applying rules
  • Look for the exact implementation patterns specified in the rule
  • Check for common mistakes, anti-patterns, edge cases, and error handling requirements
  • Validate that implementations follow Home Assistant conventions

Quality scale rules are cumulative: Bronze rules apply to all integrations with a quality scale, Silver rules apply to Silver+ integrations, and so on. Always consider the integration's target quality level when determining which rules to enforce.

5. Report findings

Report only the rules that have issues. Do not list rules that pass or that are validly exempt. For each rule with an issue, provide:

  • Rule: The rule identifier and the problem (non-compliance, or an invalid/unjustified exemption)
  • Evidence: Specific file locations and code showing the violation
  • Recommendation: Actionable steps to achieve compliance

If no rules have issues, say so in a single line. Be thorough but focused: examine only the aspects relevant to the rules being verified. If you cannot access the rule documentation or find the integration code, clearly state what information is missing and what you would need to complete the verification.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/verify-home-assistant-quality-scale-rule-mte1lg9j/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/verify-home-assistant-quality-scale-rule-mte1lg9j' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/verify-home-assistant-quality-scale-rule-mte1lg9j/download' --output '.skill-downloads/verify-home-assistant-quality-scale-rule-mte1lg9j/SKILL.md.part' && mv '.skill-downloads/verify-home-assistant-quality-scale-rule-mte1lg9j/SKILL.md.part' '.skill-downloads/verify-home-assistant-quality-scale-rule-mte1lg9j/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/verify-home-assistant-quality-scale-rule-mte1lg9j/SKILL.md' && test -s '.skill-downloads/verify-home-assistant-quality-scale-rule-mte1lg9j/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/ha-quality-scale-verify' && cp -R '.skill-downloads/verify-home-assistant-quality-scale-rule-mte1lg9j' '.claude/skills/ha-quality-scale-verify'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/verify-home-assistant-quality-scale-rule-mte1lg9j'

openskills read 'verify-home-assistant-quality-scale-rule-mte1lg9j'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/verify-home-assistant-quality-scale-rule-mte1lg9j/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills