# Repository: f/prompts.chat # Stars: 159926 ## CLAUDE.md # CLAUDE.md > Quick reference for Claude Code when working on prompts.chat ## Project Overview **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](AGENTS.md). ## Quick Commands ```bash # 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 ``` ## Key Files | 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 | ## Project Structure ``` 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 ``` ## Code Patterns - **Server Components** by default, `"use client"` only when needed - **Translations:** Use `useTranslations()` or `getTranslations()` from next-intl - **Styling:** Tailwind CSS with `cn()` utility for conditional classes - **Forms:** React Hook Form + Zod validation - **Database:** Prisma client from `@/lib/db` ## Before Committing 1. Run `npm run lint` to check for issues 2. Add translations for any user-facing text 3. Use existing UI components from `src/components/ui/` 4. Never commit secrets (use `.env`) ## README.md

prompts.chat
prompts.chat

The world's largest open-source prompt library for AI
Works with ChatGPT, Claude, Gemini, Llama, Mistral, and more

formerly known as Awesome ChatGPT Prompts

Website Awesome Hugging Face Ask DeepWiki

🌐 Browse Prompts📖 Read the Book📄 View on GitHub🚀 Self-Host

🏆 Featured in Forbes · 🎓 Referenced by Harvard, Columbia · 📄 40+ academic citations · ❤️ Most liked dataset on Hugging Face
⭐ 143k+ GitHub stars · 🏅 GitHub Staff Pick · 🚀 First prompt library (Dec 2022)

Loved by AI pioneers:
Greg Brockman (OpenAI Co-Founder) · Wojciech Zaremba (OpenAI Co-Founder) · Clement Delangue (Hugging Face CEO) · Thomas Dohmke (Former GitHub CEO)

--- ## What is this? A curated collection of **prompt examples** for AI chat models. Originally created for ChatGPT, these prompts work great with any modern AI assistant. | Browse Prompts | Data Formats | |----------------|--------------| | [prompts.chat](https://prompts.chat/prompts) | [prompts.csv](prompts.csv) | | [PROMPTS.md](https://raw.githubusercontent.com/f/prompts.chat/main/PROMPTS.md) | [Hugging Face Dataset](https://huggingface.co/datasets/fka/prompts.chat) | **Want to contribute?** Add prompts at [prompts.chat/prompts/new](https://prompts.chat/prompts/new) — they sync here automatically. --- ## 📖 The Interactive Book of Prompting Learn prompt engineering with our **free, interactive guide** — 25+ chapters covering everything from basics to advanced techniques like chain-of-thought reasoning, few-shot learning, and AI agents. **[Start Reading →](https://fka.gumroad.com/l/art-of-chatgpt-prompting)** --- ## 🎮 Prompting for Kids

Promi

An interactive, game-based adventure to teach children (ages 8-14) how to communicate with AI through fun puzzles and stories. **[Start Playing →](https://prompts.chat/kids)**
--- ## 🚀 Self-Hosting Deploy your own private prompt library with custom branding, themes, and authentication. **Quick Start:** ```bash npx prompts.chat new my-prompt-library cd my-prompt-library ``` **Manual Setup:** ```bash git clone https://github.com/f/prompts.chat.git cd prompts.chat npm install && npm run setup ``` The setup wizard configures branding, theme, authentication (GitHub/Google/Azure AD), and features. 📖 **[Full Self-Hosting Guide](SELF-HOSTING.md)** • 🐳 **[Docker Guide](DOCKER.md)** --- ## 🔌 Integrations ### CLI ```bash npx prompts.chat ``` ### Claude Code Plugin ``` /plugin marketplace add f/prompts.chat /plugin install prompts.chat@prompts.chat ``` 📖 [Plugin Documentation](CLAUDE-PLUGIN.md) ### MCP Server Use prompts.chat as an MCP server in your AI tools. **Remote (recommended):** ```json { "mcpServers": { "prompts.chat": { "url": "https://prompts.chat/api/mcp" } } } ``` **Local:** ```json { "mcpServers": { "prompts.chat": { "command": "npx", "args": ["-y", "prompts.chat", "mcp"] } } } ``` 📖 [MCP Documentation](https://prompts.chat/docs/api) --- ## 💖 Sponsors

Clemta    Wiro    Cognition    CodeRabbit    Sentry    Each Labs    CommandCode

Built with Windsurf and Devin
Become a Sponsor →

--- ## 👥 Contributors --- ## 📜 License This project is dual-licensed: - **Source code** is licensed under the [MIT License](LICENSE-MIT). - **Prompt content and data** (prompts.csv, PROMPTS.md, user-submitted prompts) is dedicated to the public domain under [CC0 1.0 Universal](LICENSE-CC0). See [LICENSE](LICENSE) for details.