General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
120
> Quick reference for Claude Code when working on prompts.chat
Loading actions...
<a href="https://prompts.chat">
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend linting, type safety, or ESLint configuration.
risks
Quick reference for Claude Code when working on prompts.chat
prompts.chat is a social platform for AI prompts built with Next.js 16 App Router, React 19, TypeScript, and PostgreSQL/Prisma. It allows users to share, discover, and collect prompts.
For detailed agent guidelines, see AGENTS.md.
# Development
npm run dev # Start dev server at localhost:3000
npm run build # Production build (runs prisma generate)
npm run lint # Run ESLint
# Database
npm run db:migrate # Run Prisma migrations
npm run db:push # Push schema changes
npm run db:studio # Open Prisma Studio
npm run db:seed # Seed database
# Type checking
npx tsc --noEmit # Check TypeScript types
| File | Purpose |
|---|---|
prompts.config.ts | Main app configuration (branding, theme, auth, features) |
prisma/schema.prisma | Database schema |
src/lib/auth/index.ts | NextAuth configuration |
src/lib/db.ts | Prisma client singleton |
messages/*.json | i18n translation files |
src/
├── app/ # Next.js App Router pages
│ ├── (auth)/ # Login, register
│ ├── api/ # API routes
│ ├── prompts/ # Prompt CRUD pages
│ └── admin/ # Admin dashboard
├── components/ # React components
│ ├── ui/ # shadcn/ui base components
│ └── prompts/ # Prompt-related components
└── lib/ # Utilities and config
├── ai/ # OpenAI integration
├── auth/ # NextAuth setup
└── plugins/ # Auth and storage plugins
"use client" only when neededuseTranslations() or getTranslations() from next-intlcn() utility for conditional classes@/lib/dbnpm run lint to check for issuessrc/components/ui/.env)