homeassistant-yaml-dry-verifier

Installation
SKILL.md

Home Assistant YAML DRY Verifier

Use this skill to lint Home Assistant YAML for repeat logic before or after edits, then refactor repeated blocks into reusable helpers.

Mandatory Resolution Policy

  • If the verifier reports findings for files touched in the current task, do not stop at reporting.
  • Resolve the findings in the same task by refactoring YAML to remove duplication.
  • Re-run the verifier after refactoring and iterate until targeted findings are cleared.
  • If a finding cannot be safely resolved, explicitly document the blocker and the smallest safe follow-up.
  • If touched YAML performs cleanup, registry hygiene, purge, deletion, or other destructive maintenance, require preview/dry-run behavior, explicit confirmation, and audit/backup output before any destructive action is considered complete.

Quick Start

  1. Run the verifier script on the file(s) you edited.
  2. Review repeated block findings first (highest confidence).
  3. Refactor into shared scripts/helpers/templates where appropriate.
  4. If the change renames/removes entity references or adds maintenance cleanup behavior, perform the read-only entity/reference safety pass.
  5. Re-run the verifier and then run your normal Home Assistant config check.
Related skills
Installs
25
GitHub Stars
5.2K
First Seen
Feb 24, 2026