首页/ AI 技能 / @skilllib/skill-2014279402920554498
Skill站外收录 @skilllib/skill-2014279402920554498

cursor-rules-config

配置项目级 AI 行为规则,定义代码风格、技术栈上下文及开发规范,使 AI 生成的代码符合特定项目的结构与偏好,适用于多项目环境下的个性化智能编码支持。

0.0 (0) 242 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# Cursor Rules Config ## Overview ### What is .cursorrules? ``` .cursorrules is a project-level configuration file that: - Guides AI code generation style - Enforces coding standards - Provides project context - Customizes AI behavior per project ``` ## Prerequisites - Cursor IDE installed and authenticated - Project workspace open in Cursor - Write access to project root directory - Basic understanding of YAML syntax ## Instructions 1. Navigate to your project root directory 2. Create a new file named `.cursorrules` 3. Add project metadata (name, language, framework) 4. Define coding rules and conventions 5. Include examples of preferred patterns 6. Save the file and test with Cursor AI ## Output - `.cursorrules` file at project root - Customized AI code generation behavior - Consistent code style across AI suggestions - Project-specific context for Cursor AI ## Error Handling See `{baseDir}/references/errors.md` for comprehensive error handling. ## Examples See `{baseDir}/references/examples.md` for detailed examples. ## Resources - [Cursor Documentation](https://cursor.com/docs) - [YAML Syntax Guide](https://yaml.org/spec/) - [Cursor Community Discord](https://discord.gg/cursor)

评论 0

还没有评论,来抢沙发。