HA

ha-config-fetch

Retrieves local Home Assistant configuration files, allowing AI to audit and edit automations and scenes safely.

Install

mkdir -p .claude/skills/ha-config-fetch && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17975" && unzip -o skill.zip -d .claude/skills/ha-config-fetch && rm skill.zip

Installs to .claude/skills/ha-config-fetch

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Fetch local Home Assistant config snapshots from ha-data/ via fetch-ha-data.sh, gated by a freshness check. Use when a request touches existing automations, scenes, scripts, configuration.yaml, or Core/Supervisor logs — none of which the MCP server exposes.
257 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Fetch local Home Assistant config snapshots from `ha-data/`.
  • Perform a freshness check before reading config files.
  • Re-fetch data for debugging requests regardless of freshness.
  • Read specific configuration files like `automations.yaml` and `configuration.yaml`.
  • Access Home Assistant Core and Supervisor logs.

How it works

The skill fetches local Home Assistant config snapshots from `ha-data/`, performing a freshness check to ensure current data, and re-fetches for debugging purposes.

Inputs & outputs

You give it
A request involving Home Assistant configuration or logs.
You get back
Fetched Home Assistant configuration files and logs from `ha-data/`.

When to use ha-config-fetch

  • Analyze home assistant automations
  • Edit home assistant scripts
  • Troubleshoot configuration.yaml
  • Review scene definitions

About this skill

HA Config Fetch

When to use

  • The request involves existing automations, scenes, scripts, configuration.yaml, or logs.
  • The MCP server does not expose these — ha-data/ snapshots are the only source.

Freshness gate

Before reading any file from ha-data/, run:

find ha-data/ -name '*.yaml' -mmin +1440 -print -quit | grep -q . && echo STALE || echo FRESH
  • STALE, missing, or debugging request → run ./fetch-ha-data.sh from this skill's folder.
  • FRESH and not a debugging task → read directly, skip the fetch.

Debugging requests (troubleshooting, log analysis, error investigation) always re-fetch — logs and state change frequently.

If ha-data/ does not exist at all, treat it as stale.

Fetch step

Run from the repository root:

.github/skills/ha-config-fetch/fetch-ha-data.sh

Optional: override the config directory (default /config):

.github/skills/ha-config-fetch/fetch-ha-data.sh /custom/path

File map

After the script completes, read the file(s) you need:

  • ha-data/automations.yaml — all automations
  • ha-data/scenes.yaml — all scenes
  • ha-data/scripts.yaml — all scripts
  • ha-data/configuration.yaml — main configuration
  • ha-data/customize.yaml — entity customizations
  • ha-data/esphome/*.yaml — every ESPHome device YAML found under the ESPHome data dir (secrets.yaml is always skipped, never snapshotted)
  • ha-data/zigbee2mqtt/configuration.yaml — Zigbee2MQTT main config
  • ha-data/zigbee2mqtt/devices.yaml — Zigbee2MQTT device definitions
  • ha-data/zigbee2mqtt/groups.yaml — Zigbee2MQTT groups
  • ha-data/zigbee2mqtt/state.json — Zigbee2MQTT runtime state (not YAML; freshness gate does not cover it — debugging requests always re-fetch)
  • ha-data/logs/core.log — latest HA Core container logs (debugging)
  • ha-data/logs/supervisor.log — latest Supervisor container logs (debugging)

Rules

  • Never modify or commit files inside ha-data/ — gitignored, local-only snapshots.
  • Do not assume file contents — always check freshness first.

When not to use it

  • When the request does not involve existing automations, scenes, scripts, `configuration.yaml`, or logs.
  • When the MCP server exposes the required data.
  • When the user wants to modify or commit files inside `ha-data/`.

Limitations

  • The skill fetches data from local `ha-data/` snapshots.
  • The skill does not expose data via the MCP server.
  • The skill does not allow modifying or committing files inside `ha-data/`.

How it compares

This skill provides a mechanism to access local Home Assistant configuration files and logs, including a freshness check, which is not exposed by the MCP server, unlike direct API access.

Compared to similar skills

ha-config-fetch side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
ha-config-fetch (this skill)021dReviewBeginner
netalertx-plugin-run-development16moReviewIntermediate
vastai-webhooks-events09dReviewIntermediate
ads-network-killswitch03moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

netalertx-plugin-run-development

netalertx

Create and run NetAlertX plugins. Use this when asked to create plugin, run plugin, test plugin, plugin development, or execute plugin script.

14

vastai-webhooks-events

jeremylongshore

Implement Vast.ai webhook signature validation and event handling. Use when setting up webhook endpoints, implementing signature verification, or handling Vast.ai event notifications securely. Trigger with phrases like "vastai webhook", "vastai events", "vastai webhook signature", "handle vastai events", "vastai notifications".

01

ads-network-killswitch

engremran07

Network killswitch: per-network enable/disable. Use when: disabling problematic networks, emergency ad shutoff, toggling networks without deletion.

00

sms-inbox-manager

Little-King2022

Maintain a self-hosted realtime SMS inbox service. Use when inspecting received SMS messages, managing the web UI, debugging SMS forwarding, restarting or enabling the service, adjusting authentication, updating nginx routing, or locating data/log files.

00

amc-run-sample-calibration

NVIDIA

Run end-to-end calibration on the shipped sample dataset (sdg_08_2_sample_data_010926.zip) against a running AMC microservice. Use when user says 'test sample dataset', 'run sample calibration', 'verify AMC install', or 'launch and test'.

00

telegram-bot-builder

davila7

Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.

106130

Search skills

Search the agent skills registry