Skill: Config Validation
SkillFiles & storageValidate Home Assistant YAML configuration for syntax, structure, entity references, duplicates, and secrets usage before applying changes. Use when writing or modifying any YAML config file, before suggesting changes to packages/, when the user asks "does this look right?" or "validate my config", or after any automation or integration change.
Available today. Use it from your connected AI after setup.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Skill: Config Validation skill
What this skill tells your AI
The instructions your AI receives, as published by apocrathia/home-assistant-config in .agents/skills/config-validate/SKILL.md and read by ahel’s review.
Purpose
Validate Home Assistant YAML configurations for syntax, structure, and best practices before applying changes.
When to Use
- Writing or modifying any YAML config file
- Before suggesting changes to
packages/files - When the user asks "does this look right?" or "validate my config"
- After any automation or integration change
Steps
- Identify target file — Determine which package file is being modified
- Check YAML syntax — Validate indentation, quoting, special characters
- Verify entity references — Ensure
entity_id,device_id,area_idreferences exist - Check for duplicates — No duplicate entity IDs, automation aliases, or service calls
- Validate structure — Ensure top-level keys match HA schema (light, sensor, automation, etc.)
- Review secrets usage — Flag any hardcoded credentials
- Report findings — List issues by severity (error, warning, info)
Common Validation Checks
| Check | Severity | Example |
|---|---|---|
| Indentation | Error | Mixed tabs/spaces, wrong indent level |
| Duplicate entity_id | Error | Two entities with same ID |
| Missing required field | Error | action: without a service/action value |
| Legacy automation keys | Error | trigger:/action:/condition:/service:/platform: (use triggers/actions/conditions/action/trigger) |
| Invalid entity reference | Warning | entity_id: light.nonexistent |
| Hardcoded secret | Warning | api_key: "my-secret-key" instead of !secret |
| Deprecated option | Info | Using old-style latitude: instead of recorder: config |
| Missing description | Info | Automation without description: field |
Output Format
Validation Results for packages/areas/kitchen.yaml:
❌ ERROR (line 12): Duplicate entity_id 'light_kitchen_counter'
⚠️ WARNING (line 28): Hardcoded API key found, use !secret
ℹ️ INFO: Automation missing 'description' field
Tools
POST /api/config/core/check_config— Home Assistant config validator (Bearer token)- Developer Tools → YAML — UI config check / reload
yamllint— External YAML linting toolpre-commit— Git hook for pre-commit validation
Notes
- This skill is procedural — it guides the agent through validation, not code
- Always validate in the context of the full configuration, not just the modified file
- Entity references may be defined in other packages — check across
packages/
Signals
- GitHub stars
- 179
- Forks
- 32
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
config-validate- Source
- github.com/apocrathia/home-assistant-config