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.zipInstalls 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.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
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.shfrom 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 automationsha-data/scenes.yaml— all scenesha-data/scripts.yaml— all scriptsha-data/configuration.yaml— main configurationha-data/customize.yaml— entity customizationsha-data/esphome/*.yaml— every ESPHome device YAML found under the ESPHome data dir (secrets.yamlis always skipped, never snapshotted)ha-data/zigbee2mqtt/configuration.yaml— Zigbee2MQTT main configha-data/zigbee2mqtt/devices.yaml— Zigbee2MQTT device definitionsha-data/zigbee2mqtt/groups.yaml— Zigbee2MQTT groupsha-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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| ha-config-fetch (this skill) | 0 | 21d | Review | Beginner |
| netalertx-plugin-run-development | 1 | 6mo | Review | Intermediate |
| vastai-webhooks-events | 0 | 9d | Review | Intermediate |
| ads-network-killswitch | 0 | 3mo | No flags | Beginner |
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.
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".
ads-network-killswitch
engremran07
Network killswitch: per-network enable/disable. Use when: disabling problematic networks, emergency ad shutoff, toggling networks without deletion.
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.
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'.
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.