/hermitd-homeassistant:domain-brainstormfrom hermitd-homeassistant
Brainstorms Home Assistant automation capability gaps by analyzing entity inventory, existing automations/scripts, and operator intent. Surfaces at most 2 triage-gated improvement ideas when asked about missing automations or coverage gaps.
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.
After ≥8 invocations, check the capability-brainstorm segment of core's proposal metrics: run .hermit/bin/hermitd-run proposal metrics .hermit --source=capability-brainstorm (the project-resident bin/hermitd-run resolves core's plugin root, which a path relative to this plugin can't reach). When its status is kill, treat it as a class-level signal that brainstorm output is noisy and raise it with the operator, naming the kill_reasons with their triage_survival_pct and acceptance_pct. The segment is shared with core's capability-brainstorm and the other domain brainstorm skills, so it cannot by itself say which skill to cut.
Read these in parallel — all are cheap cached reads plus one lightweight listing. Do not run ha refresh-context, fetch individual automation configs in a loop, or actuate any device.
Entity inventory
Read .hermit/raw/snapshot-ha-normalized-latest.json → entity_index (the universe of areas, devices, and domains).
hermitd-homeassistant:daily-ha-context and hermitd-homeassistant:ha-integration-health routines own scheduled refresh, do not refresh here.Automation/script inventory Run:
${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha list-automations
${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha list-scripts
These are live REST calls. On error or timeout: do not retry — note "automation inventory unavailable" and continue with cached artifacts only. With no inventory, [coverage-asymmetry] and [unbuilt-intent] are unsupportable; a degraded run will usually emit-zero.
Operator intent
Read the whole .hermit/OPERATOR.md and the auto-memory MEMORY.md index. Note any stated wants or preferences ("close garage at night", "welcome light when arriving") that no automation name clearly implements.
Suppression filters (read to exclude ideas — never to source them)
.hermit/state/integration-health-degraded-domains.json — skip any idea whose target entity sits in a degraded domain..hermit/raw/snapshot-ha-pattern-analysis-latest.json / patterns-latest.md — already-flagged silent/dead items are ha-analyze-patterns' territory; do not surface them as capability gaps.Think across all four inputs. For each candidate, both constraints must pass before including it:
entity:binary_sensor.bedroom_motion, area:garage, script:bom_dia, operator:OPERATOR.md "close garage at night", health:no degraded domains). These support the friction; friction is the bar.Map each passing idea to the closest HA capability-gap prefix:
[automation-gap] — a device, sensor, or area present in the entity inventory but wired into zero automations.[coverage-asymmetry] — a paired-pattern gap (e.g. a bom_dia script exists but no boa_noite; a motion sensor turns lights on but nothing turns them off).[unbuilt-intent] — an operator-stated want (OPERATOR.md / auto-memory) that no automation or script name clearly implements.Important precision note for [automation-gap]: a precise "wired into zero automations" coverage graph is not cheaply cached (ha-safety-audit persists entity references only for violating automations, not all). [automation-gap] therefore produces a candidate grounded in the alias inventory and entity_index — triage and the operator decision are the backstop. State this candidacy in the Evidence.
Drop any idea whose target entity/domain sits in a degraded integration (suppression filter). Cap at 2 ideas total. Emit-zero if none pass. Record discarded candidates (one line each) for Gate 4.
For each idea, invoke /hermitd:proposal-create once:
Title: [<prefix>] <short idea title>
Evidence Source: capability-brainstorm
Evidence: <one paragraph: friction sentence + named grounding items>
Set task metadata: source: auto-detected, category: improvement, tags: [capability-brainstorm].
Provenance is carried by those tags, which proposal-create writes onto both the triage-verdict row and the proposal task metadata. The cost: these proposals share core capability-brainstorm's kill-criteria segment, so the numbers are combined rather than per-skill.
/hermitd:proposal-create invokes proposal-triage internally. Parse its outcome:
CREATE: <title> — <task-id> (<handle>): proposal task opened; record its T- id.SUPPRESS: <title> — <code>: <reason>: record the suppression code. Don't retry.DUPLICATE: <title> — <task-id>: <reason>: record the existing task id. Don't create.Do NOT invoke proposal-triage directly — /proposal-create handles it.
Send one message per the Operator Notification protocol. Use the session language for all user-facing text.
Zero-emit:
🏠 Domain brainstorm — 0 ideas emitted (<reason: thin context | automation inventory unavailable | all suppressed | all duplicates | stale snapshot>)
Non-zero:
🏠 Domain brainstorm (<N> idea(s))
1. **[prefix] <title>** — <one-line description>
_Grounding: <item 1>, <item 2>_
_Friction: <one-sentence pain>_
T-YYYYMMDD-HHMMSS created · (or: suppressed — <code> · or: duplicate of T-YYYYMMDD-HHMMSS)
If ≥1 proposal task was created (not suppressed or duplicate), write:
.hermit/compiled/domain-brainstorm-YYYY-MM-DD-HHMM.md
---
title: Domain brainstorm — <ISO timestamp>
type: domain-brainstorm
created: <ISO timestamp with timezone>
tags: [domain-brainstorm, ideation]
source: interactive
proposals_created: [T-YYYYMMDD-HHMMSS, ...]
---
Body (150-line cap): ideas that passed (one paragraph each), discarded candidates (one line each), triage verdicts, inputs scanned (paths only, no content), note if inventory was degraded.
Do not tag foundational — this is a time-bounded ideation snapshot.
Zero-emit runs: skip the artifact entirely. Inside an open record's turn, pipe one line into .hermit/bin/hermitd-run task note .hermit <id>; otherwise skip the note:
domain-brainstorm: 0 ideas emitted (<reason>)
What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/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.npx claudepluginhub gtapps/hermitd --plugin hermitd-homeassistantOther plugins' skills for the same job