| name | potpie-debug-memory |
| description | Use while debugging or troubleshooting failures, flaky tests, incidents, production alerts, CI failures, local dev setup issues, repeated bugs, prior fixes, failed attempts, and verification history. |
Potpie Debug Memory
Use this skill before digging into a failure so prior symptoms, known fixes, and
failed attempts can guide the investigation.
Fast Path
Search by symptom first, not just component name. Include exact error text,
commands, failing tests, environment, service, dependency, and synonyms.
potpie graph read \
--subgraph debugging \
--view prior_occurrences \
--query "<expanded symptom query>" \
--scope service:<service-name> \
--limit 12
If no service is known, omit --scope. If the failure smells like a regression,
correlate with the timeline:
potpie graph read \
--subgraph recent_changes \
--view timeline \
--format table \
--time-window 7d \
--query "<symptom feature dependency>" \
--limit 20
If dependencies, adapters, environments, or deploys matter, read infra too:
potpie graph read \
--subgraph infra_topology \
--view service_neighborhood \
--scope service:<service-name> \
--depth 2 \
--direction both
Apply Results
Treat prior fixes as leads. Check whether the same symptom, environment,
version, dependency, data shape, command, or test path matches this incident.
Failed prior attempts are useful because they prevent repeated work.
Record Debug Memory
Record after the investigation when the learning is reusable: bug pattern, fix,
verification, failed attempt, incident summary, runbook note, or setup gotcha.