backend-debugging
Installation
SKILL.md
Backend Debugging Skill
Mission
Restore failing Encore.ts flows quickly by combining structured logs, targeted SQL queries, and the diagnostic script arsenal. This skill keeps the top-level procedure concise; each reference file contains deep dive playbooks.
When to Use
encore testfailures or flaky integration tests- Stalled workers (runs stuck
queued/in_progress) - Graph projector or subscription issues
- CI regressions surfaced by
task backend:testor smoke suites
Rapid Response Workflow
- Reproduce & capture context – Re-run the failing test with
encore test …and collect assertion + log data. - Inspect database state – Use targeted queries from
references/debug-queries.mdto confirm run status, events, and projector outcomes. - Run diagnostic scripts – Leverage the tools catalogued in
references/diagnostic-scripts.mdto inspect timelines, cursors, and agent snapshots. - Apply fix & verify – Update code, rerun tests, and document the outcome in Graphiti (include root cause + remediation).