返回提示词库
文本 · 通用大模型Cursor Rules 智能生成器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

Cursor Rules 智能生成器

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

12浏览
完整提示词可替换花括号中的变量后直接使用

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]

2026/4/14

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。