plugins/claude-code-homeassistant-hermit/skills/ha-apply-change/SKILL.md
Validate and apply a generated HA automation or script YAML with safety checks and optional reload. Use after building or modifying an automation.
npx skillsauth add gtapps/claude-code-hermit ha-apply-changeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.data-ai
Initializes or resumes a work session. Loads context from OPERATOR.md and SHELL.md, orients the agent, and establishes what to work on. Use at the beginning of every work session.
tools
Evolves hermit configuration and templates after a plugin update. Detects version gaps, presents new features, walks through new settings. Run after updating the plugin.
testing
Initializes the autonomous agent in the current project. Creates the state directory, templates, OPERATOR.md, and config.json. Appends session discipline to CLAUDE.md. Detects installed hermits. Run once per project, like git init.
tools
Generates Docker scaffolding and walks the operator through the full deployment — token setup, build, start, MCP plugin configuration, workspace trust, and verification. Offers to back up and overwrite existing Docker files. Run after /hatch.