vibestackdev/vibe-stack

29 .mdc architecture rules that prevent AI coding assistants from hallucinating insecure auth, deprecated imports, and broken Next.js 15 patterns. Built for Cursor Agent and Claude Code.

This repository also configures its own agents. See what vibe-stack tells them →

8Stars on the repository
35Mods indexed here, across every type
todayLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

api-validation

03

vibestackdev/vibe-stack

Cursor rule Cursor

API route validation — enforces Zod validation on all route handlers and server actions.

not rated 8 today A 0 tokens original MIT

context-management

05

vibestackdev/vibe-stack

Cursor rule Cursor

Context window management — prevents AI from losing track during long sessions.

not rated 8 today A 0 tokens original MIT

database-design

06

vibestackdev/vibe-stack

Cursor rule Cursor

Database schema design patterns for Supabase with proper types and relationships.

not rated 8 today A 0 tokens original MIT

file-naming

09

vibestackdev/vibe-stack

Cursor rule Cursor

File naming conventions and project organization rules.

not rated 8 today A 0 tokens original MIT

file-uploads

10

vibestackdev/vibe-stack

Cursor rule Cursor

Image and file upload patterns — prevents insecure client-side uploads and missing file validation.

not rated 8 today A 0 tokens original MIT

middleware-auth

13

vibestackdev/vibe-stack

Cursor rule Cursor

Next.js middleware auth — prevents auth logic being placed in middleware instead of route handlers.

not rated 8 today A 0 tokens original MIT

nextjs15-params

14

vibestackdev/vibe-stack

Cursor rule Cursor

Critical Next.js 15 breaking changes regarding async params and searchParams.

not rated 8 today A 0 tokens original MIT

performance

15

vibestackdev/vibe-stack

Cursor rule Cursor

Next.js performance optimization — caching, bundle size, and Core Web Vitals.

not rated 8 today A 0 tokens original MIT

project-context

16

vibestackdev/vibe-stack

Cursor rule Cursor

Core project context — tech stack, folder structure, and global conventions.

not rated 8 today A 508 tokens original MIT

security

18

vibestackdev/vibe-stack

Cursor rule Cursor

Security rules and OWASP Top 10 enforcement for AI-generated code.

not rated 8 today A 0 tokens original MIT

server-actions

19

vibestackdev/vibe-stack

Cursor rule Cursor

Guidelines for Server Actions — validation, error handling, and when to use Route Handlers instead.

not rated 8 today A 0 tokens original MIT

stripe-payments

22

vibestackdev/vibe-stack

Cursor rule Cursor

Stripe payment integration patterns — server-only, webhook handling.

not rated 8 today A 0 tokens original MIT

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: