Cursor Prompt Library for SaaSKit - vm5lab/SaaSKit GitHub Wiki
๐ฏ Cursor Prompt Library for SaaSKit
This guide is a curated list of AI prompts optimized for Cursor, designed to accelerate the development of SaaSKit โ a modern SaaS framework built with Next.js 15, Supabase, Prisma, and Tailwind.
๐งฑ Project Initialization
๐น Scaffold Project
Create a modern SaaS boilerplate using Next.js 15 App Router, React 19, Supabase, Prisma, Tailwind CSS, MUI, and TypeScript.
๐น Generate Folder Structure
Generate a folder structure for a SaaS dashboard project including app, components, lib, prisma, and layout directories.
๐น Set up .env File
Add required environment variables for Supabase and describe their purpose.
๐ฅ๏ธ UI & Layout
๐น Sidebar + Topbar Layout
Create a responsive layout with a collapsible Sidebar and a Topbar using Tailwind and MUI.
๐น Dark Mode Support
Add dark mode toggle to the layout using Tailwind's dark: variant and MUI theming.
๐น Reusable UI Components
Generate a Button component with variants for primary, secondary, and outline using Tailwind and MUI.
๐ Authentication & RBAC
๐น Supabase Login Page
Create a login page that authenticates users using Supabase Email Magic Link login.
๐น RBAC Middleware
Write middleware that redirects non-admin users from accessing /admin routes based on user role.
๐น Supabase RLS Policy
Generate a Row-Level Security policy for Supabase that allows users to access only their own records.
๐งฌ Prisma & Database
๐น Define Models
Create a Prisma schema with User, Project, and Team models. Link Project to User with a foreign key.
๐น Push Schema
Generate the command and instructions to push the Prisma schema to Supabase.
โ๏ธ Server Actions
๐น Create Project Action
Create a Server Action that accepts form data, validates input, and inserts a new project into the database.
๐น Add Error Handling
Add try-catch error handling to this Server Action with a user-friendly error message.
๐น Form + Server Action Example
Build a form component that submits data to a Server Action and displays loading and error states.
๐ Deployment & CI/CD
๐น Vercel Deployment Guide
Write deployment steps for deploying a Next.js 15 app to Vercel including environment variables and Supabase setup.
๐งช Testing & Refactoring
๐น Unit Test Generator
Write unit tests for this function using Jest, including success and error cases.
๐น Refactor for Readability
Refactor this function to improve readability and maintainability.
๐น Performance Optimization
Optimize this React component for rendering performance and memoization.
๐ Documentation & Comments
๐น Generate JSDoc
Add JSDoc comments to this function explaining its parameters, return values, and usage.
๐น README.md Generator
Generate a README.md file for this SaaSKit project with sections for setup, usage, and deployment.
๐ง Cursor Pro Tips
- Use
// describe:
comments to help Cursor understand the file's intent. - Prefer small, atomic prompts over large, vague requests.
- Use โ+K to access "Explain", "Refactor", and "Generate Tests" on selected code.
This prompt library is designed to help you build, extend, and optimize SaaSKit rapidly with Cursor as your AI pair programmer.