cursor-rules
整理和收集来自不同项目的Cursor规则文件,提供多种编程语言和框架的规则支持。
Install / Use
npx skills add flyeric0212/cursor-rulesInstalls into whichever agent you are using.
.cursorrules
Cursor IDE rules (legacy)
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of cursor-rules
cursor-rules scores 75/100 on our quality scale, 3705th of 4,611 Development & Engineering skills we index.
Its .cursorrules is 3.9 KB long, well organised into 13 sections with 1 code example: a solid amount of guidance for an agent.
With 1,888 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 9 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- Our last check on 2026-10-20 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 77/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
cursor-rules compared with similar skills
All 4 of these similar skills score higher than cursor-rules; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| cursor-rules (this skill)by flyeric0212 | 75 | 1.9k | 9mo ago | .cursorrules |
| taste-skillby Leonxlnx | 100 | 110.8k | 1d ago | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 69.9k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 46.6k | 2d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 44d ago | SKILL.md |
Frequently asked questions
- How do I install cursor-rules?
- Run
npx skills add flyeric0212/cursor-rules. The install tabs above show the steps for each supported agent. - Which AI agents does cursor-rules work with?
- It is written for Cursor, as a .cursorrules file. Other agents that read the same format can often use it too.
- Is cursor-rules safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 77/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is cursor-rules still maintained?
- The repository was last updated about 9 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubCursor Rules 规则汇总
本项目用于收集、整理和标准化 Cursor Rules 规则文件,提供多种编程语言和框架的规则支持,使开发者能够更有效地利用 Cursor 进行开发工作。
Cursor Rules 最佳实践
文章教程:
- Cursor Rules 最佳实践总结
- Cursor Rules 进阶指南:打造企业级多语言开发规范
- Cursor 0.49.x 自动化生成 Project Rules 实用指南
- Cursor Rules 的一次全面总结,希望能够帮助到你!
- Cursor Rules 四大原则:让AI代码生成更稳定高效
视频教程:
https://www.bilibili.com/video/BV1S3VhzpEqL/
1、通用规则层
这些规则始终生效,为所有代码提供基础规范:
- core.mdc - 核心开发原则和响应语言
- tech-stack.mdc - 技术栈定义和官方文档链接
- project-structure.mdc - 项目结构和文件组织规范
- general.mdc - 通用编程规则(后续将移除)
2、编程语言层
根据文件扩展名自动应用的语言特定规范:
- Python (python.mdc)
- Java (java.mdc)
- TypeScript (typescript.mdc)
- Go (golang.mdc)
- C++ (c++.mdc)
- CSS (css.mdc)
- WXML (wxml.mdc) - 微信小程序标记语言
- WXSS (wxss.mdc) - 微信小程序样式表
- Kotlin (kotlin.mdc)
- C# (c#.mdc)
3、框架层
根据文件扩展名自动应用规范,或者AI可根据上下文自动判断并请求的框架特定规范:
前端框架
- React (react.mdc) - React 应用开发
- Vue.js (vuejs.mdc) - Vue.js 应用开发
- Next.js (nextjs.mdc) - React 全栈框架
- Tailwind CSS (tailwind.mdc) - 实用优先的 CSS 框架
- Shadcn UI (shadcn.mdc) - 基于 Radix UI 和 Tailwind 的组件库
- Zustand (zustand.mdc) - 轻量级状态管理
- Zod (zod.mdc) - TypeScript 优先的 Schema 声明和验证库
- React Hook Form (react-hook-form.mdc) - 高性能表单验证库
后端框架
- Django (django.mdc) - Python Web 框架
- Flask (flask.mdc) - Python 轻量级 Web 框架
- FastAPI (fastapi.mdc) - Python 现代 API 框架
- Spring Boot (springboot.mdc) - Java 企业级框架
移动开发框架
- Flutter (flutter.mdc) - 跨平台移动应用开发
- SwiftUI (swiftui.mdc) - iOS 原生 UI 框架
- React Native (react-native.mdc) - 跨平台移动应用开发
- Android(android.mdc) - Android 框架开发规范
4、其他工具层(可选,非必需)
需要用户明确请求的工具和流程规范,使用 @ 引入对应的规则。
- Git相关规则 (git.mdc)
- Git Flow工作流规则 (gitflow.mdc)
- 文档编写规则 (document.mdc)
使用方法
- 克隆本仓库
- 浏览相应语言和框架的规则
- 将适用的规则应用到您的项目中
- 贡献您自己的规则回馈社区
项目结构
cursor-rules/
├── base/ # 基础规则层(通用规则)
│ ├── core.mdc # 核心开发原则和响应语言
│ ├── tech-stack.mdc # 技术栈定义和官方文档链接
│ ├── project-structure.mdc # 项目结构和文件组织规范
│ └── general.mdc # 通用编程规则
├── languages/ # 编程语言特定规则
│ ├── c++.mdc # C++语言规则
│ ├── css.mdc # CSS样式规则
│ ├── golang.mdc # Go语言规则
│ ├── java.mdc # Java语言规则
│ ├── kotlin.mdc # Kotlin语言规则
│ ├── python.mdc # Python语言规则
│ ├── typescript.mdc # TypeScript语言规则
│ ├── wxml.mdc # 微信小程序标记语言规则
│ └── wxss.mdc # 微信小程序样式表规则
├── frameworks/ # 框架相关规则
│ ├── # 前端框架
│ ├── nextjs.mdc # Next.js框架规则
│ ├── react.mdc # React框架规则
│ ├── react-hook-form.mdc # React Hook Form规则
│ ├── react-native.mdc # React Native框架规则
│ ├── shadcn.mdc # Shadcn UI规则
│ ├── tailwind.mdc # Tailwind CSS规则
│ ├── vuejs.mdc # Vue.js框架规则
│ ├── zod.mdc # Zod验证规则
│ ├── zustand.mdc # Zustand状态管理规则
│ ├── # 后端框架
│ ├── django.mdc # Django框架规则
│ ├── fastapi.mdc # FastAPI框架规则
│ ├── flask.mdc # Flask框架规则
│ ├── springboot.mdc # Spring Boot框架规则
│ ├── # 移动开发框架
│ ├── android.mdc # Android框架规则
│ ├── android_bak.mdc # Android框架规则(备份版本)
│ ├── flutter.mdc # Flutter框架规则
│ └── swiftui.mdc # SwiftUI框架规则
├── other/ # 其他工具层规则
│ ├── document.mdc # 文档编写规则
│ ├── git.mdc # Git相关规则
│ └── gitflow.mdc # Git Flow工作流规则
└── demo/ # 示例配置
├── python/ # Python项目示例配置
└── vue/ # Vue项目示例配置
贡献指南
欢迎提交Pull Request 或者提交 Issue 来分享您的Cursor规则。请确保您的规则文件遵循项目的命名约定和结构。规则可以使用Markdown(.mdc)或JSON格式。
许可证
MIT
Related Skills
taste-skill
110.8kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
ai-job-search
69.9kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
46.6kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
