/hermitd-homeassistant:ha-build-automationfrom hermitd-homeassistant
Drafts Home Assistant automation or script YAML from natural language descriptions, validates against entity inventory and safety policy, and provisions missing helper entities.
Ships in hermitd-homeassistant. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Gather context:
.hermit/raw/snapshot-ha-normalized-latest.json for available entities and services.alias and description in the operator's language unless a CLAUDE file instruction names another.GetLiveContext via MCP for current state.Draft the YAML:
id: as the first field, using a stable, language-neutral snake_case value (e.g., kitchen_motion_after_sunset_notification). The validate-apply command uses this as the REST config ID — omitting it causes a derived, fragile ID that breaks on alias rename.alias and description unless a CLAUDE file instruction names another.mode explicitly where concurrency matters..hermit/raw/automation-<automation_id>.yaml.Provision missing helpers:
input_boolean.*, input_number.*, input_text.*, input_select.*, input_datetime.*, timer.*, counter.*, schedule.*) that are absent from the entity inventory snapshot. If none are absent, skip to step 4.${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha list-helpers --type <type> once to check whether any absent helper of that type already exists under a different entity_id. If found, reference that entity instead.input_boolean / input_text: {"name": "Friendly Name"}input_number: {"name": "...", "min": <N>, "max": <N>} (optional: step, initial, mode)input_select: {"name": "...", "options": ["opt_a", "opt_b"]}input_datetime: {"name": "...", "has_date": true, "has_time": true}timer: {"name": "...", "duration": "HH:MM:SS"}counter: {"name": "...", "initial": 0, "step": 1}schedule: {"name": "..."} with weekday blocks — run ha list-helpers --type schedule to inspect the schema of any existing helper; if none exists, check the HA schedule integration docs for the required block format.${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha create-helper <type> '<json>' and handle the result:
{"status":"blocked","reason":"strict_mode"}: ha_safety_mode is strict; explain the boundary and create a proposal via /hermitd:proposal-create. Do not retry the denied operation. Continue to validation so the operator sees which entities are still missing.{"data",...}: helper created; continue.{"error":...}: surface the error to the operator.${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha refresh-context --incremental to update the snapshot before validation.Validate:
${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha simulate <path> to check entity references and policy. It prints OK, or {"status":"invalid",...} listing missing_entities and blocked_reasons.${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha policy-check <path> for a safety assessment.Handle results:
decision: "allow"; valid and safe: offer to apply via /hermitd-homeassistant:ha-apply-change.decision: "ask" (ask mode); explain which sensitive entities are involved, then offer to apply. The apply step will require explicit operator confirmation.decision: "deny" (strict mode); explain why and create a proposal using /hermitd:proposal-create.snake_case, language-neutral, descriptiveplatform: explicitlyservice: with full domain (e.g., light.turn_on)entity_id over area/device when specificUnder ha_safety_mode: strict (explicit): never draft automations that actuate lock, alarm_control_panel, or security-related cover/button/switch. If the user requests this, explain the safety boundary and create a proposal for manual review. Under ask: draft and run ha policy-check; the decision field in the result drives step 5.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gtapps/hermitd --plugin hermitd-homeassistant19 skills in this plugin
/domain-brainstormOn-demand HA-voice brainstorm — reads entity inventory, automation/script listings, and operator intent to surface at most 2 capability-gap ideas, each gated by proposal-triage before becoming a proposal task. Invoke when the operator asks "what automations am I missing?", "any coverage gaps?", or "brainstorm improvements". Never runs autonomously./ha-analyze-patternsAnalyze Home Assistant history data and entity patterns to identify automation opportunities, unused devices, and energy anomalies. Use periodically or when looking for optimization opportunities./ha-apply-changeValidate and apply a generated HA automation or script YAML with safety checks and optional reload. Use after building or modifying an automation./ha-apply-updateApply a Home Assistant update surfaced by ha-update-check, when the operator accepts a [ha-update] proposal. Enforces the tier rule -- add-ons/HACS may auto-apply, Core/OS/Supervisor always wait for an explicit operator go-ahead./ha-automation-diffReport which Home Assistant automations were added, removed, edited, enabled, or disabled since the last snapshot — change memory across sessions, including UI edits that bypass this plugin. Read-only. Use when the operator asks "what changed", "what moved since last time", or to explain a regression./ha-automation-explorerBrowse and explain the hermit's Home Assistant automations — list by topic, filter by keyword with plain-language YAML explanations, or sort by last-fired. Read-only. Use when the operator asks "what automations do I have / what does this one do / which haven't fired."Other plugins' skills for the same job