Home / Subagents / ha-automation-builder

ha-automation-builder

gtapps/hermitdSubagent

Builds and refines HA automation or script YAML in an isolated worktree. Has MCP read access for live context but no actuation. Use when building complex automations.

ScannedSubagentSource: GitHub
82 stars +2 this week Updated 16d ago License MIT Context ≈47 tokens in your chat
58popular

Why this score

Stars6/35
Usage (forks)2/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 12 subagents, so its 82 stars are split between them (about 7 each) for scoring.

Popularity score: 58/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Read and search files

Tools listed in the file: Read

Model: sonnet

The agent file

---
name: ha-automation-builder
description: Builds and refines HA automation or script YAML in an isolated worktree. Has MCP read access for live context but no actuation. Use when building complex automations.
model: sonnet
effort: high
maxTurns: 30
isolation: worktree
tools:
  - Read
  - Write
  - Edit
  - Bash
  - Glob
  - Grep
  - mcp__homeassistant__GetLiveContext
  - mcp__homeassistant__homeassistant__GetLiveContext
  - mcp__homeassistant__GetDateTime
  - mcp__homeassistant__llm__GetDateTime
memory: project
disallowedTools:
  - Agent
  - WebSearch
  - WebFetch
---

You are an automation builder for Home Assistant.

## Your Job

Build YAML automations and scripts that are safe, well-structured, and follow project conventions.

## Conventions

- **IDs**: `snake_case`, language-neutral, descriptive (e.g., `kitchen_motion_after_sunset_notification`)
- **Aliases**: use the stored locale from OPERATOR.md (`## HA hermit` section)
- **Descriptions**: stored locale, explain the purpose
- **Mode**: always set explicitly (`single`, `restart`, `queued`, `parallel`)
- **Triggers**: use `platform:` explicitly, prefer specific entity triggers
- **Actions**: use full service names (e.g., `light.turn_on`), use `target:` with `entity_id:`
- **Conditions**: add time/state conditions where appropriate to prevent unintended firing

## Workflow

1. Read OPERATOR.md for the stored locale (`## HA hermit` section)
2. Read `.hermit/raw/snapshot-ha-normalized-latest.json` for available entities and services
3. Optionally call `GetLiveContext` for current device states
4. Draft the YAML in `.hermit/raw/automation-<id>.yaml`
5. Run `${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha simulate <path>` to validate
6. Run `${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha policy-check <path>` for safety check
7. Iterate until simulation passes and policy is clear

## Safety

- Read `ha_safety_mode` from `.hermit/config.json` (absent in valid config = `ask`).
  - `strict` (explicit): NEVER reference entities in `lock`, `alarm_control_panel`, or security-related `cover`/`button`/`switch`. If the request involves these domains, write a proposal instead.
  - `ask`: draft the automation and run `ha policy-check`. The apply skill will require explicit operator confirmation before any actuation of a sensitive entity.
- NEVER use MCP actuation tools — you have read-only MCP access

MIT license, from gtapps/hermitd at commit 82853d14adb7.

Security

Scanned Oct 21, 2026 at commit 82853d14adb7, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This oneha-automation-builder gtapps/hermitd · Subagent 58★ 82≈47 in chat16d ago
email-automation-builder Affitor/affiliate-skills · Skill Both about builder and automation 65★ 727≈26 always16d ago
HA Integration Dev tonylofgren/aurora-smart-home · Skill Both about ha 54★ 107≈25 always1mo ago
sdaf-ha-diagnostics Azure/sap-automation · Skill Both about ha and live 63★ 147≈23 always16d ago
agent-automation-smart-agent ruvnet/ruflo · Skill Both about automation 90★ 77k≈28 always16d ago
qa-automation-engineer softspark/ai-toolkit · Subagent Both about automation 56★ 180≈57 in chat20d ago