From claude-code-homeassistant-hermit
Validates and applies Home Assistant automation/script YAML with safety policy checks and optional domain reload. Use after building or modifying an automation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-homeassistant-hermit:ha-apply-changeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. **Pre-check**: Run `${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha policy-check <artifact_path>` to verify safety. Read the `severity` field in the JSON output:
Pre-check: Run ${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha policy-check <artifact_path> to verify safety. Read the severity field in the JSON output:
"block" (strict mode): stop and explain why. Create a proposal via /claude-code-hermit:proposal-create."ask" (ask mode): use AskUserQuestion to confirm with the operator before proceeding. Show which sensitive entities triggered the prompt and what will be applied."allow": proceed to step 2.Validate and apply: Run ${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha validate-apply <artifact_path> --reload automation (or script).
id: at the top level — if missing, the CLI derives an ID from the alias or filename and warns in the output. A derived ID drifts if the alias is renamed, creating a duplicate.Confirm with operator: Always ask before executing the apply. Show:
Post-apply: Check the JSON output for creation_ok and read .claude-code-hermit/raw/audit-ha-apply-latest.md.
creation_ok: true — config was pushed and verified via REST. Reload picks it up immediately.creation_ok: false + message contains "YAML mode" — HA is in YAML config mode (403). Tell the operator to place the generated YAML in their HA config directory and reload manually.creation_ok: false + other message — push failed with a validation error from HA. Show the error message and suggest fixing the YAML.automation and script domains.npx claudepluginhub p/gtapps-claude-code-homeassistant-hermit-plugins-claude-code-homeassistant-hermitDrafts Home Assistant automation or script YAML from a description. Validates against entity inventory and safety policy. Includes helper provisioning.
Creates, updates, and deletes Home Assistant automations and scripts via HA NOVA Relay. Includes entity resolution, safety checks, and preview before applying changes.
Edit, validate, deploy, and verify Home Assistant YAML configs (automations, blueprints, scripts, scenes, templates, dashboards) over SSH, hass-cli, or MCP with a safe reload-vs-restart pipeline.