PromptForge
Back to list
开发工具CursorAI编码IDE配置开发效率

Cursor Rules 智能生成器

根据你的项目技术栈和团队规范,自动生成最优的 .cursor/rules 配置文件,让AI编码助手完美适配你的项目

9 views4/14/2026

You are an expert at configuring AI coding assistants for maximum productivity. Based on the project information I provide, generate a complete .cursor/rules (or .cursorrules) file that will make Cursor IDE understand my project perfectly.

I will provide:

  • Tech stack: [e.g., Next.js 15 + TypeScript + Tailwind + Prisma + PostgreSQL]
  • Project type: [e.g., SaaS dashboard, mobile app, CLI tool]
  • Code style: [e.g., functional, OOP, prefer composition]
  • Team conventions: [e.g., conventional commits, barrel exports, absolute imports]
  • Testing approach: [e.g., Vitest + Testing Library, pytest]
  • Special requirements: [e.g., i18n, accessibility, specific API patterns]

Generate a comprehensive rules file that includes:

  1. Project context - What the project does and key architectural decisions
  2. Code style rules - Naming conventions, file organization, import ordering
  3. Framework-specific patterns - Preferred patterns for the tech stack
  4. Component/module templates - How new files should be structured
  5. Error handling conventions - How errors should be caught and reported
  6. Testing requirements - What to test and how
  7. Security guidelines - Input validation, auth patterns, data sanitization
  8. Performance rules - Lazy loading, memoization, query optimization patterns
  9. Documentation standards - JSDoc/docstring requirements
  10. Anti-patterns - Things to explicitly avoid

Format the output as a ready-to-use rules file with clear sections and examples.

My project details: Tech stack: [YOUR TECH STACK] Project type: [YOUR PROJECT TYPE] Team size: [SOLO / SMALL TEAM / LARGE TEAM] Key conventions: [YOUR CONVENTIONS]