Skip to main content

cursor-rules

How to add or edit Cursor rules in our project

来源信息

仓库
spiriMirror/libuipc
最近来源活动
2026年3月6日 07:13
检测到的 SKILL.md 语言
英语
星标
335
分支
68

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
cursor-rules
description
How to add or edit Cursor rules in our project
# Cursor Rules Location How to add new cursor rules to the project 1. Always place rule files in PROJECT_ROOT/.cursor/rules/: ``` .cursor/rules/ ├── your-rule-name.mdc ├── another-rule.mdc └── ... ``` 2. Follow the naming convention: - Use kebab-case for filenames - Always use .mdc extension - Make names descriptive of the rule's purpose 3. Directory structure: ``` PROJECT_ROOT/ ├── .cursor/ │ └── rules/ │ ├── your-rule-name.mdc │ └── ... └── ... ``` 4. Never place rule files: - In the project root - In subdirectories outside .cursor/rules - In any other location 5. Cursor rules have the following structure: ``` --- description: Short description of the rule's purpose globs: optional/path/pattern/**/* alwaysApply: false --- # Rule Title Main content explaining the rule with markdown formatting. 1. Step-by-step instructions 2. Code examples 3. Guidelines
在 GitHub 查看