Add Next.js 15 + Supabase architecture rules (Vibe Stack)#220
Add Next.js 15 + Supabase architecture rules (Vibe Stack)#220vibestackdev wants to merge 1 commit intoPatrickJS:mainfrom
Conversation
…ules preventing AI hallucinations: getSession bypass, sync params crash, deprecated imports, missing RLS, Stripe key exposure
📝 WalkthroughWalkthroughAdded a new Cursor rules configuration file for Next.js 15 with Supabase, TypeScript, Tailwind, and Stripe integration. Includes comprehensive architectural constraints in the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
README.md (1)
90-90: Entry is correctly placed and well-structured.The new Next.js 15 + Supabase entry is alphabetically correct within the "Frontend Frameworks and Libraries" section, and the relative link follows the repository's conventions.
Optional: Consider condensing the description for consistency.
The description is notably longer and more technical than most entries in the list. While the detail is valuable, consider a more concise format to match the repository's style:
♻️ Suggested condensed description
-- [Next.js 15 (Supabase, TypeScript, Security)](./rules/nextjs15-supabase-cursorrules-prompt-file/.cursorrules) - 27 architecture rules preventing AI hallucinations: insecure auth (getSession vs getUser), synchronous params, deprecated imports, missing RLS, and Stripe key exposure. Built for Cursor Agent and Claude Code. +- [Next.js 15 (Supabase, TypeScript, Security)](./rules/nextjs15-supabase-cursorrules-prompt-file/.cursorrules) - 27 security-focused architecture rules preventing common Next.js 15 + Supabase vulnerabilities and deprecated patterns.As per coding guidelines: "Use consistent formatting for list items in the README.md file" and "Use clear and concise language in all documentation."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@README.md` at line 90, The list entry titled "[Next.js 15 (Supabase, TypeScript, Security)]" has an overly long, technical description; shorten it to match the concise style of other items by keeping the link and a single short clause summarizing key points (e.g., "27 architecture rules for auth, deprecated APIs, RLS, and secret exposure") and remove the extended examples ("getSession vs getUser", "synchronous params", "Stripe key exposure") while preserving that it's for Cursor Agent and Claude Code; update the README line so the relative link and brief summary remain but the wording is condensed and consistent with surrounding entries.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@README.md`:
- Line 90: The list entry titled "[Next.js 15 (Supabase, TypeScript, Security)]"
has an overly long, technical description; shorten it to match the concise style
of other items by keeping the link and a single short clause summarizing key
points (e.g., "27 architecture rules for auth, deprecated APIs, RLS, and secret
exposure") and remove the extended examples ("getSession vs getUser",
"synchronous params", "Stripe key exposure") while preserving that it's for
Cursor Agent and Claude Code; update the README line so the relative link and
brief summary remain but the wording is condensed and consistent with
surrounding entries.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 7d11c95e-afdc-4a5a-9b16-fcee96ff2117
📒 Files selected for processing (3)
README.mdrules/nextjs15-supabase-cursorrules-prompt-file/.cursorrulesrules/nextjs15-supabase-cursorrules-prompt-file/README.md
Adds a comprehensive .cursorrules file for Next.js 15 + Supabase projects.
Covers the 10 most common AI hallucination patterns including:
Includes a README with documentation and an installable npm package.
Full set of 27 .mdc rules: https://github.com/vibestackdev/vibe-stack
Summary by CodeRabbit