← Back to list

debug
by MigzCtrl
Tire Shop Management Dashboard
⭐ 0🍴 0📅 Jan 24, 2026
SKILL.md
name: debug description: Debug issues in TireOps. Use when encountering errors, bugs, or unexpected behavior.
Debugging TireOps
First: Read ARCHITECTURE.md for full system context.
Common Issues
"No shop found" / Auth Errors
- Check AuthContext loaded before accessing shop
- Verify user has profile with shop_id
- Check RLS policies in Supabase
Build Errors
- Run
npm run buildto see errors - Check TypeScript types in database.ts
- Verify imports are correct
Supabase Errors
- Check Supabase dashboard logs
- Verify RLS policies allow the operation
- Check if columns exist (run migrations)
API Route Errors
- Use lazy Supabase initialization
- Check environment variables
- Validate input with Zod
Debug Steps
- Check browser console for errors
- Check terminal for server errors
- Check Supabase dashboard for DB errors
- Verify environment variables are set
Key Files
src/middleware.ts- Auth redirectssrc/contexts/AuthContext.tsx- User statesrc/lib/supabase/- Database clients.env.local- Environment variables
Commands
npm run dev # Start dev server
npm run build # Check for build errors
npm run test # Run tests
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon