Systematic debugging for Encore.ts backend incidents using diagnostic scripts, database queries, and structured logging. Use when backend tests fail, services crash, or async flows stall.
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.
encore test failures or flaky integration testsqueued/in_progress)task backend:test or smoke suitesencore test … and collect assertion + log data.references/debug-queries.md to confirm run status, events, and projector outcomes.references/diagnostic-scripts.md to inspect timelines, cursors, and agent snapshots.references/common-failures.md – Symptom ➜ cause ➜ fix matrix for the most frequent issues (queued runs, hanging services, alias errors, projector lag, budget exhaustion).references/detailed-examples.md – Step-by-step walkthroughs, including the "0 screens discovered" scenario and RCA templates.queued)status = 'completed')encore.dev/log with module, actor, and identifiers (runId).setTimeout sleeps.references/debug-queries.md – SQL snippets for runs, events, projector state, and lag analysisreferences/diagnostic-scripts.md – CLI usage notes for inspect-run.ts, check-agent-state.ts, check-cursor-ordering.ts, and friendsreferences/common-failures.md – Symptom → cause → fix catalogue for top regressionsreferences/detailed-examples.md – Expanded case studies (e.g., projector lag, budget exhaustion)# .github/workflows/test.yml
- name: Run backend tests
run: |
cd backend
encore test
Prerequisites: Appium + device available for integration suites, environment variables configured, Run logs streamed via task backend:logs when debugging CI.
backend-development_skill – Integration-first testing patterns that prevent regressionse2e-testing_skill – Playwright coverage for verifying frontend/backends flows end-to-endgraphiti-mcp-usage_skill – Capture debugging RCA and permanent fixes in the knowledge graph