スキル一覧に戻る
MigzCtrl

debug

by MigzCtrl

Tire Shop Management Dashboard

0🍴 0📅 2026年1月24日
GitHubで見るManusで実行

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 build to 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

  1. Check browser console for errors
  2. Check terminal for server errors
  3. Check Supabase dashboard for DB errors
  4. Verify environment variables are set

Key Files

  • src/middleware.ts - Auth redirects
  • src/contexts/AuthContext.tsx - User state
  • src/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

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です