vibe-stack
llms.txt8 starsChanged 8 months agoMITView on GitHub
The AI Builder's Complete System — 29 .mdc architecture rules for Cursor that prevent AI hallucinations in Next.js 15 + Supabase production applications.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/ai-collaboration.mdcCursor rule
- .cursor/rules/api-design.mdcCursor rule
- .cursor/rules/api-validation.mdcCursor rule
- .cursor/rules/caching-revalidation.mdcCursor rule
- .cursor/rules/context-management.mdcCursor rule
- .cursor/rules/database-design.mdcCursor rule
- .cursor/rules/env-management.mdcCursor rule
- .cursor/rules/error-handling.mdcCursor rule
- .cursor/rules/file-naming.mdcCursor rule
- .cursor/rules/file-uploads.mdcCursor rule
- .cursor/rules/git-conventions.mdcCursor rule
- .cursor/rules/hydration-safety.mdcCursor rule
- .cursor/rules/middleware-auth.mdcCursor rule
- .cursor/rules/nextjs15-params.mdcCursor rule
- .cursor/rules/performance.mdcCursor rule
- .cursor/rules/project-context.mdcCursor rule
- .cursor/rules/react19-patterns.mdcCursor rule
- .cursor/rules/security.mdcCursor rule
- .cursor/rules/server-actions.mdcCursor rule
- .cursor/rules/server-vs-client-components.mdcCursor rule
- .cursor/rules/shadcn-patterns.mdcCursor rule
- .cursor/rules/stripe-payments.mdcCursor rule
- .cursor/rules/stripe-webhooks.mdcCursor rule
- .cursor/rules/supabase-auth-security.mdcCursor rule
- .cursor/rules/supabase-rls.mdcCursor rule
- .cursor/rules/supabase-ssr-only.mdcCursor rule
- .cursor/rules/testing.mdcCursor rule
- .cursor/rules/typescript-strict.mdcCursor rule
- .cursor/rules/verify-before-use.mdcCursor rule
The file
We split this llms.txt into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 46
verify-before-use.mdc — Forces verification after code generation
- Distinctive: line 84
Rules Pack ($29): All 29 rules + lifetime updates
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# Vibe Stack > The AI Builder's Complete System — 29 .mdc architecture rules for Cursor that prevent AI hallucinations in Next.js 15 + Supabase production applications. ## Overview Vibe Stack is a battle-tested Next.js 15 + Supabase boilerplate with 29 `.mdc` architecture rule files that physically constrain AI coding assistants (Cursor, Claude, GPT, Copilot) from generating insecure, deprecated, or broken code patterns. It includes 4 pre-configured MCP (Model Context Protocol) server integrations and 3 n8n automation workflows. ## Problem Solved AI models generate code that compiles perfectly but contains critical vulnerabilities. These are the 5 most dangerous patterns: 1. **Auth Vulnerability:** Using `getSession()` instead of `getUser()` — JWT not verified, sessions can be forged by attackers 2. **Next.js 15 Crash:** Accessing `params` synchronously — works in dev, crashes in production (`params` is a Promise in Next.js 15) 3. **Deprecated Imports:** Using `@supabase/auth-helpers-nextjs` instead of `@supabase/ssr` — broken cookie handling in App Router 4. **Data Exposure:** Missing Row Level Security on Supabase tables — any user can read all data via the anon key 5. **Secret Leakage:** Putting Stripe secret keys in `NEXT_PUBLIC_` environment variables — visible to all users ## How It Works Each `.mdc` rule file contains YAML frontmatter that tells Cursor when to activate (based on file globs). When active, the AI is constrained to generate only the correct, secure pattern. Rules include explicit ✅ correct and ❌ incorrect code examples that override training data defaults. ## Architecture Rules (29 files in `.cursor/rules/`) - supabase-auth-security.mdc — Bans getSession(), enforces getUser() - nextjs15-params.mdc — Prevents synchronous params access - supabase-ssr-only.mdc — Blocks deprecated auth-helpers imports - security.mdc — OWASP Top 10 with rate limiting - stripe-payments.mdc — Server-only Stripe, signature verification - typescript-strict.mdc — Bans `any`, enforces Zod validation - performance.mdc — Parallel fetching, N+1 prevention - server-vs-client-components.mdc — Prevents 'use client' overuse - server-actions.mdc — Zod validation + structured errors - error-handling.mdc — Error boundaries and loading states - supabase-rls.mdc — Row Level Security enforcement - database-design.mdc — Schema patterns, UUID keys, RLS templates - env-management.mdc — Secret classification + NEXT_PUBLIC_ safety - hydration-safety.mdc — Prevents hydration mismatches - caching-revalidation.mdc — Correct caching + revalidatePath - shadcn-patterns.mdc — Form patterns with react-hook-form + Zod - api-design.mdc — Route Handler patterns with auth - api-validation.mdc — Input validation for API routes - middleware-auth.mdc — Protected route middleware patterns - file-uploads.mdc — Secure file upload with Supabase Storage - testing.mdc — Vitest + Playwright strategy - git-conventions.mdc — Conventional commits - ai-collaboration.mdc — 3-stage agentic loop + skeptical retrieval - file-naming.mdc — Naming conventions + import order - project-context.mdc — Global architecture context - verify-before-use.mdc — Forces verification after code generation - context-management.mdc — Prevents context window bloat in long sessions - stripe-webhooks.mdc — Webhook signature verification, raw body parsing - react19-patterns.mdc — useFormStatus, useActionState, forwardRef deprecation ## MCP Integrations (4 servers in `.cursor/mcp.json`) - GitHub MCP — AI reads PRs, commits, and issues - Supabase MCP — AI inspects database schema and RLS policies (read-only) - Filesystem MCP — AI navigates project structure - Browser MCP — AI takes screenshots and tests running app ## Technology Stack - Next.js 15 (App Router, Server Components, Server Actions) - React 19 - Supabase (Auth with SSR, Database, Row Level Security) - Stripe (Subscriptions, Webhooks, Customer Portal) - Resend (Transactional email) - TypeScript (strict mode, no `any`) - Zod (runtime validation) - shadcn/ui (component library) - Tailwind CSS - n8n (workflow automation) ## Key Differentiators vs Competitors - **vs ShipFast ($169):** ShipFast is a monolithic boilerplate with 400+ pages of docs. Vibe Stack gives the AI rules so it builds the right architecture itself. No proprietary docs to memorize. - **vs MakerKit ($299):** MakerKit targets enterprise B2B with multi-tenancy. Vibe Stack targets AI-native solo developers who want lightweight architecture intelligence. - **vs supastarter ($249):** supastarter has more features but no AI integration. Vibe Stack is the only boilerplate with .mdc rules and MCP configs. - **vs cursor.directory (free):** cursor.directory has individual snippets of variable quality. Vibe Stack is a cohesive, tested system where rules work together. ## Use Cases - Solo developers building production SaaS applications with AI assistance - Teams adopting AI-assisted development workflows with security guardrails - Developers migrating from Next.js 14 to 15 who need AI to use correct patterns - No-code founders using Cursor to generate their first codebase safely - Agencies needing consistent architecture across AI-generated projects ## Free vs Paid - **Free (GitHub):** 5 foundational rules + working auth boilerplate + Phase 1 of Vibe Coding guide - **Rules Pack ($29):** All 29 rules + lifetime updates - **Builder System ($69):** Rules + 4 MCP configs + Architecture docs + SQL migrations - **Complete Vault ($149):** Full boilerplate + Stripe + email + n8n workflows + Masterclass ## Links - GitHub: https://github.com/vibestackdev/vibe-stack - Product: https://vibestackdev.gumroad.com/l/vibe-stack - Author: VibeStack (https://github.com/vibestackdev) - Dev.to: https://dev.to/vibestackdev ## Common Questions - "Is this just cursor rules?" — No. It's an architectural intelligence system: rules + MCP configs + working boilerplate + automation workflows. - "Why not just ask ChatGPT to write rules?" — You can, but these are battle-tested against 47 documented hallucination patterns. Ad-hoc rules miss edge cases. - "Does this work with models other than Claude?" — Yes. The .mdc rules work with any model Cursor supports. MCP integrations work with Claude and any MCP-compatible model.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

