hass-sync

Verify src/hass file locations and code matches upstream Home Assistant frontend.

127|5|Updated Mar 11, 2025
One-click install
npx skills add https://github.com/homeassistant-extras/device-card --skill hass-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hass-sync
Source: https://github.com/homeassistant-extras/device-card/tree/main/.claude/skills/hass-sync
Command: npx skills add https://github.com/homeassistant-extras/device-card --skill hass-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that the copied code from the Home Assistant frontend (src/hass) is accurately synchronized with the upstream source, preventing drift and identifying discrepancies.

Core Features & Use Cases

  • File Location Verification: Checks if files in src/hass are in the correct relative paths compared to the upstream Home Assistant frontend repository.
  • Code Consistency Check: Verifies that the code content in src/hass matches the upstream source, flagging any unintentional modifications or omissions.
  • Unused Code Identification: Scans for and flags any imports or exports within src/hass that are not being used, helping to maintain a clean codebase.
  • Use Case: When updating the Home Assistant frontend code that is mirrored in your project, use this Skill to automatically audit all copied files for location accuracy, code integrity, and to remove any obsolete code.

Quick Start

Audit all files in src/hass for sync issues and report any discrepancies.

Frequently Asked Questions about hass-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if my Home Assistant frontend code is synced with the upstream repository?

To check if your Home Assistant frontend code is synced, this Skill verifies that local src/hass files match the upstream source content and correct relative paths by parsing GitHub URLs from file comments, reporting any discrepancies.

How do I identify unused code in my Home Assistant frontend src folder?

To identify unused code in your Home Assistant frontend src folder, this Skill scans src/hass imports and exports to flag any obsolete code that is not being used, helping maintain a clean codebase.

What is the best way to audit copied Home Assistant frontend files for location accuracy?

The best way to audit copied Home Assistant frontend files for location accuracy is using this Skill to verify that files in src/hass are in the correct relative paths compared to the upstream repository structure.

Why does my copied Home Assistant frontend code have file location discrepancies?

Your copied Home Assistant frontend code has file location discrepancies when local src/hass files are not in the correct relative paths compared to the upstream repository, which this Skill detects by mapping local paths to upstream paths.

Can I verify code consistency for Home Assistant frontend source files without manual comparison?

Yes, you can verify code consistency for Home Assistant frontend source files without manual comparison by using this Skill to automatically compare file content in src/hass against the upstream source and flag unintentional modifications.