Add Ship with AI rules: Next.js 15 + shadcn/ui, FastAPI + SQLAlchemy 2.0, React Native + Expo#303
Add Ship with AI rules: Next.js 15 + shadcn/ui, FastAPI + SQLAlchemy 2.0, React Native + Expo#303thebuilderlabs wants to merge 1 commit into
Conversation
…2.0, React Native + Expo Adds three stack-specific rule sets from Ship with AI — production-tested rules with DO/DON'T code examples for each framework version. - Next.js 15 (shadcn/ui, Tailwind v4, Drizzle): async params, RSC, server actions, cn() utility, loading/error boundaries - Python FastAPI (SQLAlchemy 2.0, Pydantic v2): Mapped columns, ConfigDict, async sessions, service-layer architecture, typed routes - React Native Expo (SDK 52, Router v4): Pressable, FlashList, expo-image, Gesture API v2, Reanimated shared values, TanStack Query Each file is ~380 lines with 8 rules targeting version-specific patterns that AI models trained on older framework versions frequently get wrong.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR expands the awesome-cursorrules catalog by adding three new Cursor rules prompt files and updating the README. Three technology stacks receive production-focused guidance: Next.js 15 with shadcn/ui and Tailwind v4, FastAPI with SQLAlchemy 2.0 and Pydantic v2, and React Native Expo with SDK 52. ChangesCursor Rules Catalog Expansion
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
What this adds
Three stack-specific rule sets from Ship with AI — production-tested rules with DO/DON'T code examples targeting version-specific patterns that AI models frequently get wrong.
1. Next.js 15 + shadcn/ui + Tailwind v4 + Drizzle (380 lines, 8 rules)
paramsis now a Promise)"use client"to leavesActionStatepattern@themeconfig (notailwind.config.js)$inferSelecttypes + relational queriescn()utility for class merging with CVAloading.tsx/error.tsxper route segment2. Python FastAPI + SQLAlchemy 2.0 + Pydantic v2 (374 lines, 8 rules)
Mapped[]columns (not legacyColumn())ConfigDict(notclass Config)expire_on_commit=Falsedictasync defvsdef— blocking I/O rulespydantic-settingsfor config management3. React Native Expo SDK 52 + Router v4 (388 lines, 8 rules)
PressableoverTouchableOpacityFlashListoverFlatList(withestimatedItemSize)expo-imageover RNImage(blurhash, caching)Gesture.Pan()+GestureDetector)SafeAreaViewfromreact-native-safe-area-contextWhy this is useful
Each rule targets a specific framework version and its real patterns — not generic advice. Every rule includes actual code showing the wrong pattern and the correct one, so AI can pattern-match correctly.
The full open-source rule set (24 rules across 3 stacks) is at thebuilderlabs/ship-with-ai (MIT).
Format
.mdcfiles include proper frontmatter (description,globs,alwaysApply)Summary by CodeRabbit