with one click
fix-sentry-issues
// Triage and fix Sentry issues in ayunis-core (backend and frontend). Use when the user asks to fix a Sentry issue, look at recent Sentry errors, or investigate crashes reported in Sentry.
// Triage and fix Sentry issues in ayunis-core (backend and frontend). Use when the user asks to fix a Sentry issue, look at recent Sentry errors, or investigate crashes reported in Sentry.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | fix-sentry-issues |
| description | Triage and fix Sentry issues in ayunis-core (backend and frontend). Use when the user asks to fix a Sentry issue, look at recent Sentry errors, or investigate crashes reported in Sentry. |
Workflow for investigating and fixing Sentry issues in the ayunis-core backend and frontend.
locabooayunis-core-backend — NestJS backendayunis-core-frontend — React frontendIf the user hasn't given a specific issue ID, list recent unresolved issues:
# Backend
sentry issue list locaboo/ayunis-core-backend --query "is:unresolved" --limit 10 \
--json --fields shortId,title,level,count,userCount,lastSeen
# Frontend
sentry issue list locaboo/ayunis-core-frontend --query "is:unresolved" --limit 10 \
--json --fields shortId,title,level,count,userCount,lastSeen
Pick the most relevant one with the user (or the one they named). Issue IDs look like AYUNIS-CORE-BACKEND-AB1 or AYUNIS-CORE-FRONTEND-CD2.
sentry issue view <SHORT_ID>
This gives you the stack trace, affected users, release, and a sample event. Read carefully — the top frame of the stack trace usually points directly at the file and line to fix.
For deeper analysis:
sentry issue explain <SHORT_ID> # AI root cause analysis
sentry issue plan <SHORT_ID> # AI-generated fix plan
Use these as input, not gospel — always verify against the actual code.
The stack trace names files relative to the source root. Map the project to the repo path:
ayunis-core-backend → ~/dev/ayunis/ayunis-core/ayunis-core-backend/ayunis-core-frontend → ~/dev/ayunis/ayunis-core/ayunis-core-frontend/Read the implicated file at the reported line. Check the surrounding context before deciding what's broken.
Only fix the root cause the Sentry issue points at. Don't bundle unrelated cleanup.
Before reporting done:
# Backend
cd ayunis-core-backend && npm run lint && npx tsc --noEmit && npm run test
# Frontend
cd ayunis-core-frontend && npm run lint && npx tsc --noEmit
If you can reproduce the bug locally (e.g. via curl for backend or the browser for frontend), confirm it no longer fires.
Summarize for the user:
Don't resolve the Sentry issue from the CLI — let it auto-resolve on the next release that includes the fix, or let the user do it manually.
sentry issue list --json --fields ... keeps output compact for the context windowsentry issue view <ID> -w opens it in the browser if the user wants to share a linksentry event list <SHORT_ID> to see multiple events for the same issue if you need to spot variations in user/request shapelocaboo/ayunis-core-backend or locaboo/ayunis-core-frontend explicitly