Automated summary
Applies safety and maintainability rules to ESPHome YAML, lambdas, sensors, switches, relays, and boot/failsafe behavior.
Strengths
- Prioritizes safe behavior for relays, mains loads, heaters, pumps, and other real hardware.
- Requires inspecting existing YAML, substitutions, pins, IDs, and secrets before making changes.
- Gives concrete boot, reconnect, restore-mode, and failsafe considerations.
- Specifies validation via esphome config and esphome compile.
Limitations
- Cannot verify wiring, voltage/current limits, or physical behavior; it depends on accurate project context.
- Focuses on review and editing guidance rather than covering every ESPHome component in depth.
- Validation commands only work when ESPHome and the project environment are available.
Use when editing or reviewing ESPHome device configurations, especially those controlling relays or other potentially dangerous loads.
Do not use for Home Assistant automations unrelated to ESPHome firmware or for non-ESPHome embedded projects.
Security analysis
SafeThe skill gives conservative ESPHome configuration and hardware-safety guidance. It does not instruct destructive actions, secret exfiltration, obfuscated payloads, or disabling safety controls. The only commands mentioned are standard local ESPHome validation/compile commands, and they are appropriately gated on availability and project relevance.
No concerns found
How this analysis is madeExamples
Review this ESPHome YAML for a relay that controls a pump. Preserve existing IDs, check boot/restore behavior and failsafe defaults, and tell me which esphome validation commands to run.Add a temperature sensor to my ESPHome node using the existing substitutions and !secret references. Do not invent pins or board details; validate the YAML with esphome config if available.Refactor this ESPHome lambda so it does not block, handles NaN sensor values, and avoids excessive flash writes while toggling a relay.name: esphome description: "Applies safe ESPHome rules for YAML, lambdas, sensors, switches, relays, boot behavior, fail-safes, and validation."
Skill: esphome
Purpose
Apply safe, maintainable rules to ESPHome YAML, lambdas, sensors, switches, relays, and ESPHome integrations.
Safety First
ESPHome often controls real hardware. Bugs are not just failed unit tests with extra plastic smell.
Be careful with:
- relays;
- heaters;
- boilers;
- pumps;
- locks;
- gates;
- fans;
- mains-connected devices;
- battery charging;
- high-current loads.
Use failsafe defaults where appropriate.
Inspect First
Before changing ESPHome config, inspect:
- existing YAML structure;
- substitutions;
- packages/includes;
- board type;
- framework;
- pins/GPIO usage;
- IDs;
- secrets references;
- boot behavior;
- reconnect behavior;
- existing lambdas;
- Home Assistant entities linked to the node.
Do not invent pins, wiring, voltage/current limits, or board behavior.
YAML Rules
- Preserve existing IDs unless explicitly changing them.
- Avoid duplicate entity IDs.
- Use
!secretfor sensitive values. - Avoid hardcoded Wi-Fi credentials.
- Keep YAML structure valid.
- Prefer substitutions/packages for repeated configuration when already used.
- Avoid excessive update intervals.
- Consider flash wear.
- Keep lambdas small and readable.
- Avoid blocking lambdas.
Boot and Failsafe Behavior
Consider:
- relay default state;
- restore mode;
- boot priority;
- Wi-Fi loss;
- API/MQTT reconnect;
- safe state after reboot;
- sensor unavailable states;
- brownouts.
For relays controlling dangerous loads, default-off is usually safer unless project requirements prove otherwise.
Lambdas
- Keep lambdas short.
- Avoid hidden state unless necessary and documented.
- Avoid blocking delays.
- Handle NaN/unavailable values.
- Prefer named IDs and clear calculations.
- Move complex logic into custom components only when justified.
Validation
Prefer:
esphome config <file.yaml>
esphome compile <file.yaml>
Only run commands that are available and appropriate for the project.
Report exact commands and results.
Shared Cross-Ecosystem Style
Apply the shared engineering style from:
../../engineering/05_design_principles.md../../engineering/06_responsibility_model.md../../engineering/07_complexity_budget.md../../engineering/12_naming_bible.md
Language-specific idioms control syntax and ecosystem details, but they must not weaken the core rules: small cohesive units, explicit boundaries, honest validation, no dumping grounds, and no fake placeholders.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/esphome-safety-rules-mrwakfrr/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/esphome-safety-rules-mrwakfrr' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/esphome-safety-rules-mrwakfrr/download' --output '.skill-downloads/esphome-safety-rules-mrwakfrr/SKILL.md.part' && mv '.skill-downloads/esphome-safety-rules-mrwakfrr/SKILL.md.part' '.skill-downloads/esphome-safety-rules-mrwakfrr/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/esphome-safety-rules-mrwakfrr/SKILL.md' && test -s '.skill-downloads/esphome-safety-rules-mrwakfrr/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/esphome' && cp -R '.skill-downloads/esphome-safety-rules-mrwakfrr' '.claude/skills/esphome'Cursor
test -f '.skill-downloads/esphome-safety-rules-mrwakfrr/SKILL.md' && test -s '.skill-downloads/esphome-safety-rules-mrwakfrr/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/esphome' && cp -R '.skill-downloads/esphome-safety-rules-mrwakfrr' '.cursor/skills/esphome'Codex
test -f '.skill-downloads/esphome-safety-rules-mrwakfrr/SKILL.md' && test -s '.skill-downloads/esphome-safety-rules-mrwakfrr/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/esphome' && cp -R '.skill-downloads/esphome-safety-rules-mrwakfrr' '.agents/skills/esphome'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/esphome-safety-rules-mrwakfrr'openskills read 'esphome-safety-rules-mrwakfrr'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/esphome-safety-rules-mrwakfrr/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.