debug
Skill214 starsChanged 31 days agoMITView on GitHub
Debug errors, bugs, and unexpected behavior systematically in Home Assistant integration. Use when investigating errors, analyzing stack traces, fixing bugs, or troubleshooting unexpected behavior.
192 other projects use a version of this.
Adopted by
Most recently taken up by
- PeanutGT/NutsSkillstheir own version, first seen Nov 8, 2026
- jskswamy/skillstheir own version, first seen Nov 8, 2026
- Firzus/agent-skillstheir own version, first seen Nov 8, 2026
- domengabrovsek/agent-configtheir own version, first seen Nov 8, 2026
- domengabrovsek/claudetheir own version, first seen Nov 8, 2026
- microsoft/veronatheir own version, first seen Nov 8, 2026
Used with
Projects with it also use add-discord, add-slack and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkilladd-discord
Add Discord bot channel integration via Chat SDK.
Also in 11 projects that use this
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 11 projects that use this
- +10 more from microsoft
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- anthropics/knowledge-work-plugins★ 35ksame name
- gavrielc/nanoclaw★ 31ksame name
- nanocoai/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- openai/symphony★ 27ksame name
- FalkorDB/FalkorDB★ 10ksame name
- NVIDIA/TensorRT-Model-Optimizer★ 5.6ksame name
- NVIDIA/Model-Optimizer★ 5.6ksame name
182 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .aidriven/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- implementSkill
- release-betaSkill
- release-checkSkill
- release-rollbackSkill
- release-stableSkill
- reviewSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
When does it occur? (startup, service call, state change)
- Distinctive: line 86
Read the file where error occurs
- Distinctive: line 113
Follow code standards from .aidriven/rules/clean_code.md
- Distinctive: line 114
Add error handling if missing
- Distinctive: line 115
Update documentation if behavior changed
- Distinctive: line 120
Verify error is gone
- Distinctive: line 121
Check logs for new errors
- Distinctive: line 133
Update inline comments if needed
- Distinctive: line 135
Update CHANGELOG if user-facing
- Very specific: line 142
Solution: Add await before async function calls
- Distinctive: line 152
Solution: Check entry setup and platform registration
- Distinctive: line 161
Solution: Verify state updates and coordinator refresh
“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Debug Errors and Bugs Systematically
Debug errors, bugs, and unexpected behavior in the Linus Dashboard Home Assistant integration.
Context Loading
Before debugging, load:
- .aidriven/memorybank.md - Project architecture
- .aidriven/rules/clean_code.md - Code standards
- .aidriven/rules/homeassistant_integration.md - HA patterns
- .aidriven/rules/async_patterns.md - Async best practices
Debug Process
Step 1: Understand the Error
Collect Information:
- Error message (full stack trace)
- When does it occur? (startup, service call, state change)
- Which file/function is involved?
- User actions that trigger it
- Home Assistant version and logs
Questions to Ask:
- Is this a Python exception or HA-specific error?
- Does the error occur consistently or randomly?
- Are there related errors in
home-assistant.log? - What changed recently (code, config, HA version)?
Step 2: Analyze Root Cause
Common Error Categories:
1. Async/Await Issues
# Symptoms:
# - "coroutine was never awaited"
# - Event loop blocking
# - Timeouts
# Check for:
await missing_function() # Missing await
blocking_io_call() # Blocking I/O in async context2. Home Assistant Integration Errors
# Symptoms:
# - Integration fails to load
# - Config flow errors
# - Entity not showing up
# Check for:
# - Missing async_setup_entry/async_unload_entry
# - Incorrect platform registration
# - Missing unique_id on entities
# - Data not stored in hass.data correctly3. API/Network Errors
# Symptoms:
# - Connection refused
# - Timeouts
# - 4xx/5xx HTTP errors
# Check for:
# - Supabase URL/key configuration
# - Network connectivity
# - API rate limits
# - Timeout valuesStep 3: Investigate
Review Code:
- Read the file where error occurs
- Trace the execution path
- Check function signatures
- Review recent changes with
git log
Check Logs:
# Home Assistant logs
tail -f /config/home-assistant.log | grep linus
# Check for warnings
grep -i "warning.*linus" /config/home-assistant.logAdd Debug Logging:
import logging
_LOGGER = logging.getLogger(__name__)
_LOGGER.debug("Variable value: %s", variable)
_LOGGER.info("Entering function with args: %s", args)Step 4: Fix the Issue
Apply Fix:
- Make minimal changes to fix root cause
- Follow code standards from .aidriven/rules/clean_code.md
- Add error handling if missing
- Update documentation if behavior changed
Test the Fix:
- Restart Home Assistant
- Reproduce the original error scenario
- Verify error is gone
- Check logs for new errors
- Test related functionality
Step 5: Verify and Document
Verification:
- Error no longer occurs
- No new errors introduced
- Related features still work
- Logs are clean
Documentation:
- Update inline comments if needed
- Note the fix in commit message
- Update CHANGELOG if user-facing
Common Issues and Solutions
Issue: "coroutine was never awaited"
Solution: Add await before async function calls
# Before
result = async_function()
# After
result = await async_function()Issue: Integration doesn't load
Solution: Check entry setup and platform registration
# Ensure proper setup
async def async_setup_entry(hass, entry):
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
return TrueIssue: Entity not updating
Solution: Verify state updates and coordinator refresh
# Ensure coordinator updates
await self.coordinator.async_request_refresh()Issue: Timeout errors
Solution: Increase timeout or optimize slow operations
# Add proper timeout
async with timeout(30):
result = await slow_operation()Debug Tools
Home Assistant Developer Tools:
- Services tab - Test service calls
- States tab - Check entity states
- Events tab - Monitor events
- Template tab - Test templates
Python Debugging:
# Add breakpoint (if debugging locally)
import pdb; pdb.set_trace()
# Add detailed logging
_LOGGER.debug("State: %s, Attrs: %s", self.state, self.extra_state_attributes)Git Tools:
# Find when bug was introduced
git log --oneline -- path/to/file.py
# Check recent changes
git diff HEAD~5 -- path/to/file.pyChecklist
Before completing debug:
- Root cause identified
- Fix implemented following code standards
- Error no longer reproduces
- Related functionality tested
- Logs reviewed for new issues
- Changes documented
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

