cursor-rules-config
10
总安装量
10
周安装量
#28977
全站排名
安装命令
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill cursor-rules-config
Agent 安装分布
opencode
9
codex
9
gemini-cli
9
continue
8
openhands
8
zencoder
8
Skill 文档
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
- Navigate to your project root directory
- Create a new file named
.cursorrules - Add project metadata (name, language, framework)
- Define coding rules and conventions
- Include examples of preferred patterns
- Save the file and test with Cursor AI
Output
.cursorrulesfile 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.