ha-validate

Validate Home Assistant custom card registration patterns for synchronous customElements.define.

1|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/johnneerdael/shadcn-ui-ha-card --skill ha-validate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ha-validate
Source: https://github.com/johnneerdael/shadcn-ui-ha-card/tree/main/.claude/skills/ha-validate
Command: npx skills add https://github.com/johnneerdael/shadcn-ui-ha-card --skill ha-validate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill acts as the Quality Assurance gatekeeper for Home Assistant Custom Cards, preventing common failure modes by validating architecture and registration patterns before release.

Core Features & Use Cases

  • Synchronous Registration Enforcement: Ensures customElements.define is at the top level or within a synchronous IIFE to avoid loader race conditions.
  • Documentation Lookup Strategy: Guides you to official docs via Context7 and local decisions via zread when unsure about APIs.
  • Validation Workflow: Integrates a disciplined check before finalizing Phase 1 or Phase 2 tasks to reduce deployment issues.

Quick Start

Run ha-validate against your card's entry file to verify that the custom element is registered synchronously and per the project’s guidelines.