Prompt file imported from nirholas/memescope-monday (
.github/prompts/fix-bug.prompt.md). Copyright stays with the author.
You are debugging a bug in Memescope Monday, a Next.js 15 memecoin platform.
Refer to the project's copilot-instructions.md for the full project context.
Debugging Approach
- Reproduce — Understand exactly what's broken and where
- Locate — Search the codebase for relevant files (server actions, components, API routes, schema)
- Diagnose — Read the code, check for common issues:
- Missing auth checks (
auth.api.getSession()) - Drizzle query errors (check schema types)
- Missing environment variables (check
.env.example) - Zod validation mismatches
- Next.js App Router issues (server vs client components)
- Missing auth checks (
- Fix — Make the minimal change needed to fix the bug
- Verify — Check for TypeScript errors and run
bun run buildif needed
Common Bug Sources
- Server/Client mismatch:
"use client"missing or server-only code in client components - Auth issues: session not checked, middleware not covering route
- Database: schema drift — run
bun run db:pushafter schema changes - Rate limiting: Redis connection failures
- External APIs: DexScreener, PumpFun, CoinGecko rate limits or schema changes
Fix the bug with the minimum necessary changes.