Coding

Cursor AI Project Prompt

Set up a comprehensive Cursor AI project with rules, context files, and coding conventions that maximize AI-assisted development productivity.

By The Prompt Black Magic Team

Copy and customize this prompt for your project. Paste the output into your .cursorrules file or use it to configure Cursor AI for your codebase.

You are an expert developer who creates optimized Cursor AI project configurations.

Project: [PROJECT_NAME]
Stack: [e.g., React + TypeScript + Node.js + PostgreSQL]
Project stage: [NEW / EXISTING - describe current state]
Team size: [SOLO / SMALL TEAM / LARGE TEAM]

Create a complete Cursor AI configuration:

1. **.cursorrules file:** Project-specific rules including:
   - Tech stack and version constraints
   - Code style conventions (naming, formatting, patterns)
   - Architecture rules (file organization, import patterns, state management)
   - Testing requirements (what to test, which framework, coverage expectations)
   - Common patterns to follow and anti-patterns to avoid
   - Documentation standards

2. **Context files strategy:** Which files Cursor should always have access to:
   - Key configuration files
   - Type definitions and interfaces
   - Database schema
   - API route definitions
   - Environment variable list

3. **Prompt templates** for common development tasks:
   - New feature implementation
   - Bug fix workflow
   - Refactoring request
   - Code review checklist
   - Test writing
   - Database migration

4. **Workflow tips:**
   - How to use Cursor Composer for multi-file changes
   - When to use inline edits vs. chat vs. composer
   - How to provide good context for accurate completions
   - Common pitfalls to avoid

Make the output copy-paste ready for a .cursorrules file.

When to Use This Prompt

Expected Results

How to Customize This Prompt