setup-infrastructure
Skill by dcb
Sets up this repo's connection to a Home Assistant instance. It checks the API token, SSH access and config pull, and is meant for first-time setup or repairing a broken connection.
Install setup-infrastructure
Built from the published package, never by AI.
git clone --depth 1 https://github.com/dcb/homeassistant-claude-kit /tmp/homeassistant-claude-kit && mkdir -p ~/.claude/skills && cp -r /tmp/homeassistant-claude-kit/.claude/skills/setup-infrastructure ~/.claude/skills/setup-infrastructureRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/dcb/homeassistant-claude-kit /tmp/homeassistant-claude-kit && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/homeassistant-claude-kit/.claude/skills/setup-infrastructure ~/.gemini/antigravity-cli/skills/setup-infrastructureAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install setup-infrastructure in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill configures the connection layer between the repo and a Home Assistant instance. It checks that the HA API token works, tests SSH access, and detects the correct remote config path. It then writes a dashboard environment file, runs make pull to copy the HA configuration locally, and checks the Python validation tools. It also installs the claude-code-ha CLI tools (ha-api and ha-ws) on the HA instance and saves a setup checkpoint file.
The skill is idempotent, so it can be run again to verify or repair the connection without changing the user's configuration. Before reading any Home Assistant data, it asks for consent, because the data is sent to Anthropic's API as part of the conversation. It also offers an optional privacy mode. It is aimed at people who are setting up this repo for the first time, reconnecting after a token expires, or checking that their infrastructure still works.
Written from the project's SKILL.md and checked against it.
What it can do
- HA API token checkTests the Home Assistant API with the token from .env and prints the HA version.
- SSH connectivity checkTests SSH access to the HA host using the configured SSH user and host.
- Remote path detectionFinds whether HA_REMOTE_PATH should be /config/ or /homeassistant/ and offers to update .env.
- Dashboard env generationWrites dashboard/.env.local with the HA URL, token and go2rtc URL.
- Config pullRuns make pull to sync automations, scripts, configuration.yaml and .storage/ locally.
- Python tooling checkCreates a venv, installs pyyaml and runs the YAML validator on config/.
- claude-code-ha installClones and installs the ha-api and ha-ws CLI tools on the HA instance over SSH.
- Setup checkpointWrites setup-state.json so the setup-customize skill knows infrastructure is ready.
- Kit version stampFills in the commit field of .kit-version when git history is available.
What you need
- A Home Assistant instance with a long-lived access token
- SSH access to the HA host, such as the SSH add-on
- A filled-in .env file copied from .env.example
- Python 3.10 or newer
- make, for make pull and make push
Try asking
- Set up my Home Assistant connection and check that the token works
- Verify my setup and tell me if SSH access has stopped working
- Pull my current Home Assistant config into the config folder
Good to know
- HA OS updates reset the root filesystem, so the install script must be re-run after each update.
- .env values must not use inline comments because Makefile include reads them as part of the value.
- Requires the user's consent before reading Home Assistant data, which is sent to Anthropic's API.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/setup-infrastructure/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to setup-infrastructure
All alternatives →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
Compare with react-component-performance, react-component-performance or lecture-style
setup-infrastructure: common questions
What do I need before running setup-infrastructure?
The source says you need a filled-in .env file with HA_TOKEN, HA_URL, HA_HOST, SSH_USER and HA_REMOTE_PATH. The skill waits for you to fill it in if the file is missing.
Will this skill change my Home Assistant configuration?
The skill is described as idempotent and as verifying or repairing the connection without affecting your configuration. It does pull config locally and installs CLI tools on the HA instance.
What should I do after a Home Assistant OS update?
Re-run the claude-code-ha install script over SSH, because HA OS updates reset symlinks and pip packages on the root filesystem.
How do I install setup-infrastructure?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is setup-infrastructure free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is setup-infrastructure safe to use?
It scores 70 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to setup-infrastructure?
Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.
