A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Archive-grade .mdc rule library for Cursor AI — 26 production-ready rules for teams seeking stable, reusable AI coding g
Archive-grade Cursor .mdc rule library for teams that want stable, reusable AI coding guidance
cursor-rules 的目标不是做一个“什么都放一点”的提示词仓库,而是提供一组可以直接复制到 .cursor/rules/ 的高质量 .mdc 规则文件,并围绕这些规则建立一套低漂移的目录、校验和项目控制文档。
This repository is intentionally small in scope:
.mdc files are the product.mkdir -p .cursor/rules
curl -fsSL https://raw.githubusercontent.com/LessUp/cursor-rules/master/clean-code.mdc -o .cursor/rules/clean-code.mdc
curl -fsSL https://raw.githubusercontent.com/LessUp/cursor-rules/master/python.mdc -o .cursor/rules/python.mdc
然后在你的项目里让 Cursor 读取这些规则文件即可。
Then validate this repository locally when you change or curate rules:
npm test
npm run build:catalog
从这三个层面组合即可:
| Layer | Examples | Use it for |
|---|---|---|
| General | clean-code.mdc, codequality.mdc, gitflow.mdc | 所有项目的通用约束 |
| Language / Framework | python.mdc, react.mdc, spring.mdc | 语言或框架级实践 |
| Engineering | database.mdc, docker.mdc | 跨项目工程主题 |
完整可筛选目录请直接使用 GitHub Pages:
.
├── *.mdc # Public rule files
├── scripts/ # Validation and catalog generation
├── docs/index.html # GitHub Pages shell
├── docs/public/assets/rules.json
└── docs/openspec/ # Project control documents
请注意两条核心约束:
.mdc 文件。这是对外路径契约。docs/public/assets/rules.json。它是由脚本生成的目录产物。这些文档用于维护、收尾与交接;README 只保留对外入口所需的信息。
仓库当前提供两条核心命令:
npm test
npm run build:catalog
它们分别负责:
.mdc 文件结构docs/public/assets/rules.json这个仓库适合:
这个仓库不打算变成:
MIT
Cursor AI 编程规则精选集 | 132+ 规则,覆盖前端/后端/AI/DevOps 等 32 个领域
Curated AI Prompts for Cursor Rules, Cline, Windsurf and Github Copilot
📄 Configuration files that enhance Cursor AI editor experience with custom rules and behaviors
A practical approach to managing multiple AI agents in Cursor through strict file-tree partitioning and domain boundarie