Cursor · AI Coding Assets

Cursor Rules, Roles, Skills and Hooks for AI Coding

Browse copy-ready AI coding assets for Cursor. Find practical rules, roles, skills, hooks and workflows for building, debugging, reviewing, refactoring, testing and deploying software with AI.

How to use Cursor rules, roles, skills and hooks

Persistent instructions for Cursor Agent and Chat. Place project Cursor rules in .cursor/rules/ as .mdc or Markdown files at your repo root — for example .cursor/rules/*.mdc. Use AI coding roles and AI coding skills as copy-ready prompts, and AI coding hooks for short pre-task instructions. Cursor applies them automatically in Agent and Chat.

Open any asset page and click Copy to paste into your project. Combine Cursor prompts with Cursor workflows for multi-step tasks. See Cursor Agent & Skills rules for workflow tips.

Find Cursor Assets by Category and Framework

Narrow Cursor assets by development category and framework.

Framework

CURSOR RULES DATABASE / ORM

Supabase Database Rules

Row Level Security, Edge Functions, and Postgres best practices.

CURSOR RULES AI AGENT / RAG

MCP Server Development Rules

Build Model Context Protocol servers with typed tools, resources, and secure transport.

CURSOR RULES DOCUMENTATION / PRODUCTIVITY

Cursor Agent & Skills Rules

Guide Cursor Agent behavior, Skills usage, and safe autonomous coding workflows.

CURSOR RULES AI AGENT / RAG

Vercel AI SDK Rules

Streaming chat UIs, tool calling, and server-side AI routes with Vercel AI SDK.

CURSOR RULES TESTING / QA

Playwright E2E Testing Rules

Reliable end-to-end tests with Playwright — selectors, fixtures, and CI patterns.

CURSOR RULES DATABASE / ORM

Prisma ORM Rules

Schema design, migrations, typed queries, and Prisma Client best practices.

CURSOR RULES DEVOPS / DEPLOYMENT

GitHub Actions CI/CD Rules

Reusable workflows, caching, matrix builds, and secure CI pipelines.

CURSOR RULES CODE QUALITY / SECURITY

Auth.js / NextAuth Rules

Authentication with Auth.js — providers, sessions, middleware, and RBAC.

CURSOR RULES FRONTEND / UI

SvelteKit Frontend Rules

SvelteKit routing, load functions, forms, and progressive enhancement.

CURSOR RULES DOCUMENTATION / PRODUCTIVITY

Turborepo Monorepo Rules

Monorepo structure, turbo pipelines, shared packages, and caching.

CURSOR RULES FRONTEND / UI

shadcn/ui Component Rules

Accessible UI components with shadcn/ui, Radix primitives, and Tailwind.

CURSOR RULES FULLSTACK

Next.js App Router + TypeScript Rules

Rules for building clean, scalable Next.js App Router projects with TypeScript, server components, API routes, and reusable architecture.

CURSOR RULES FRONTEND / UI

React + TypeScript Component Rules

Rules for writing maintainable React components with TypeScript, clear props, reusable hooks, and clean component structure.

CURSOR RULES DATABASE / ORM

Supabase Auth + RLS Security Rules

Rules for building secure Supabase apps with authentication, row level security, policies, and safe database access.

CURSOR RULES MOBILE

Expo React Native Mobile App Rules

Rules for creating clean Expo React Native apps with reusable screens, navigation, state management, and mobile-friendly structure.

CURSOR RULES CODE QUALITY / SECURITY

AI Code Review + Security Rules

Rules for asking AI coding agents to review code for bugs, security risks, maintainability, performance, and edge cases.

CURSOR ROLES FULL-STACK

Senior Full-Stack Developer Role

A senior engineering role prompt for building production-ready full-stack features with clear planning, clean architecture, and safe implementation.

CURSOR ROLES FULL-STACK

Next.js Architect Role

A Next.js architecture role for App Router, server components, API routes, and production-ready structure.

CURSOR ROLES FRONTEND

TypeScript Expert Role

A TypeScript role for safer types, better interfaces, and fewer runtime errors.

CURSOR ROLES TESTING

AI Code Reviewer Role

A code review role for finding bugs, maintainability issues, security risks, and edge cases.

CURSOR ROLES DEBUGGING

Debugging Expert Role

A debugging role that focuses on root cause analysis before changing code.

CURSOR ROLES SECURITY

Security Engineer Role

A security role for authentication, authorization, validation, secrets, and data exposure.

CURSOR ROLES SAAS

SaaS Product Engineer Role

A product-focused engineering role for building SaaS MVP features quickly and safely.

CURSOR SKILLS SAAS

Build SaaS MVP Skill

Build a simple SaaS MVP with authentication, dashboard, database, and clean structure.

About Cursor Assets

What are Cursor rules, roles, skills and hooks?

Cursor assets are copy-ready instructions that shape how Cursor Agent and Chat write, review, and refactor code. Rules encode team conventions in .cursor/rules/. Roles, skills and hooks are paste-ready prompts for specific tasks and personas.

Where should Cursor rules be stored?

Save project rules as .mdc or Markdown files in .cursor/rules/ at your repo root — for example .cursor/rules/*.mdc. Cursor applies them automatically in Agent and Chat.

Best Cursor rules by stack

FAQ

Where do Cursor rules go?

Put project rules in .cursor/rules/ at your repo root. Use .mdc files (recommended) or Markdown — for example .cursor/rules/*.mdc. Cursor applies them automatically in Agent and Chat. See our Cursor Agent & Skills rules for workflow tips.

How do I use an asset from AI Agent Dock?

Browse the Cursor Assets Directory, open an asset detail page, and click the copy button (Copy Rule, Copy Role, Copy Skill, or Copy Hook depending on asset type). For rules, paste into .cursor/rules/; for roles, skills and hooks, paste into Agent or Chat. Each asset has a permanent URL (e.g. /rules/nextjs-fullstack).

Can I edit assets after copying?

Yes. Assets are starting templates — remove sections you do not need, add project-specific conventions, and keep total length reasonable so you do not overrun the AI context window.

Are these assets free to use?

Yes. Most assets on this site are MIT-licensed unless noted otherwise on the detail page. Check the License line on each card or detail page.

How do I submit my own asset?

Visit Submit an AI Coding Asset for guidelines, then send your asset by email.

Looking for Windsurf assets instead?

Windsurf rules go in .devin/rules/*.md (preferred) or legacy .windsurf/rules/*.md. Browse the Windsurf Assets Directory or see Also explore in the sidebar.