awesome-cursorrules-zh

作者 holtwood已验证

Cursor AI 编程规则精选集 | 132+ 规则,覆盖前端/后端/AI/DevOps 等 32 个领域

227
Stars
35
Forks
JavaScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/holtwood/awesome-cursorrules-zh

快速入门

使用 awesome-cursorrules-zh 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Awesome Cursor Rules 中文版

Project Status Website GitHub Pages Translation Progress GitHub Stars GitHub Forks License

🇨🇳 中文 | 🇺🇸 English

为中文开发者打造的 Cursor AI 编程规则集合 Chinese localized version of Awesome Cursor Rules

132 个规则文件 · 32 个技术领域 · 190 个技术文档 · 6,500+ 行代码

🚀 快速开始 · 📂 规则目录 · 💡 使用指南 · 📚 官网 · 🤝 贡献


📋 目录


这是什么?

Awesome Cursor Rules 是优秀的 Cursor AI 编程助手规则集合。本项目是其中文本地化版本,专为中文开发者优化:

  • 🎯 精准翻译 — 高质量中文翻译,技术术语准确专业
  • 📂 结构清晰 — 按技术领域分类,便于快速查找
  • 🚀 开箱即用 — 复制 .cursorrules 文件即可开始使用
  • 🌍 双语支持 — 完整的中英文文档对照
  • ⚡ 132 个规则 — 涵盖前端、后端、移动端、AI、DevOps 等

🌐 在线文档: awesome-cursorrules-zh.js.org


什么是 .cursorrules?

.cursorrulesCursor AI 编辑器的项目级配置文件,用于定义 AI 如何协助你的编程:

功能说明示例
编码规范定义代码风格、命名约定PascalCase 组件名、camelCase 函数名
技术栈指定框架、库、工具链React + TypeScript + Tailwind CSS
最佳实践自动应用行业标准错误处理、性能优化、安全策略
AI 行为定制 AI 回复和代码生成风格详细注释、函数式编程

💡 本质:给 AI 助手的"项目工作手册",确保代码生成的一致性和高质量


✨ 特性亮点

🏆 热门技术栈

TypeScript
覆盖最广
React
前端首选
Python
后端 & AI
Next.js
全栈框架
Docker
DevOps

📊 覆盖领域

  • 🌐 应用开发: 前端、后端、移动端、数据库、系统编程
  • 🤖 AI 与数据: 机器学习、数据科学、数据工程
  • ☁️ 基础设施: DevOps、云服务、边缘计算、安全
  • 🔬 专业领域: 区块链、物联网、量子计算、生物科技

🚀 快速开始

安装使用

# 克隆仓库
git clone https://github.com/LessUp/awesome-cursorrules-zh.git

# 浏览可用规则
cd awesome-cursorrules-zh
ls rules/frontend/react/

使用方法

# 复制规则到你的项目
cp rules/frontend/react/nextjs-typescript/.cursorrules /你的项目路径/

完成!在 Cursor 中打开项目,AI 将自动遵循规则。

热门规则示例

技术栈规则命令
Next.js + TypeScriptnextjs-typescriptcp rules/frontend/react/nextjs-typescript/.cursorrules ./
Vue 3composition-apicp rules/frontend/vue/composition-api/.cursorrules ./
FastAPIfastapi-api-examplecp rules/backend/python/fastapi-api-example/.cursorrules ./
Flutterflutter-app-expertcp rules/mobile/flutter/flutter-app-expert/.cursorrules ./

📖 完整快速开始指南


📂 规则目录

🌐 应用开发
领域目录技术
前端frontend/React, Vue, Angular, Svelte, SolidJS, TypeScript
后端backend/Node.js, Python, Go, Java, PHP, .NET, Elixir
移动端mobile/Flutter, React Native, SwiftUI, Jetpack Compose
数据库database/云原生、时空数据库
系统编程systems/C++ 现代规范、Rust
🤖 AI 与数据
领域目录技术
AI/MLai/计算机视觉、MLOps、知识图谱、边缘 AI
数据科学data-science/Pandas, PyTorch, TensorFlow, Scikit-learn
数据工程data/Kafka, Spark, Flink, 数据仓库
☁️ 基础设施与 DevOps
领域目录技术
DevOpsdevops/Docker, Kubernetes, Terraform, CI/CD
云服务cloud/中间件、无服务器
边缘计算edge/AI 推理、模型压缩
安全security/零信任、隐私计算、同态加密
🔬 专业领域
领域目录技术
区块链blockchain/Solidity, Web3, 智能合约, Foundry
物联网iot/嵌入式、数字孪生
量子计算quantum/量子纠错、超导计算
生物科技bio/生物电子、生物传感器
硬件hardware/神经形态芯片、光子计算
游戏开发gaming/DragonRuby, 云游戏
🛠️ 工具与通用
领域目录技术
开发工具tools/Convex, GitHub Quality
通用规范general/代码规范、风格一致性、测试

完整目录请查看 rules/ 文件夹


💡 使用指南

单技术栈项目

cp rules/frontend/react/nextjs-typescript/.cursorrules ./

多技术栈项目

方案一:合并规则

cat rules/frontend/react/nextjs-typescript/.cursorrules > .cursorrules
echo "" >> .cursorrules
cat rules/backend/python/fastapi-api-example/.cursorrules >> .cursorrules

方案二:目录级规则(推荐用于单体仓库)

project/
├── .cursorrules           # 通用规则
├── frontend/
│   └── .cursorrules       # 前端规则
└── backend/
    └── .cursorrules       # 后端规则

自定义规则

# 追加项目特定规则
cat >> .cursorrules << 'EOF'

## 项目自定义规则
- API 路由使用 /api/v1 前缀
- 所有模型必须包含 created_at 和 updated_at 字段
- 优先使用函数组件而非类组件
EOF

📖 完整最佳实践指南


📊 数据统计

指标数值
规则文件132 个 .cursorrules
技术领域32 个分类
技术文档190 个 Markdown 文件
总行数6,500+ 行
翻译进度100% 中英双语
覆盖范围前端、后端、移动端、AI、DevOps、区块链、物联网等

热门技术

TypeScript  ████████████████████████████████  29 个规则
React       ██████████████████████            19 个规则
Tailwind    ███████████████                   13 个规则
Python      █████████████                     11 个规则
Next.js     ██████████                         8 个规则
Node.js     █████████                          7 个规则
Docker      █████████                          7 个规则

📚 文档

文档说明链接
🚀 快速开始5 分钟上手指南在线阅读 · GitHub
📖 安装指南详细安装配置在线阅读 · GitHub
💡 最佳实践配置和使用建议在线阅读 · GitHub
🔧 故障排除问题诊断解决在线阅读 · GitHub
📋 API 参考规则格式参考在线阅读 · GitHub
📝 更新日志版本历史中文 · English

🤝 贡献

欢迎所有形式的贡献:

  • 🐛 报告问题提交 Issue
  • 🔧 改进内容提交 Pull Request
  • 🔄 同步上游 — 帮助与原项目保持同步
  • 📝 完善文档 — 优化使用指南

详见 贡献指南


🙏 致谢

本项目是 PatrickJS/awesome-cursorrules 的中文本地化版本。感谢原作者和所有贡献者。


📄 许可证

MIT License


如果这个项目对你有帮助,请给一个 ⭐ Star!

🌐 访问官方网站 · ⬆ 返回顶部

常见问题

What is awesome-cursorrules-zh?

awesome-cursorrules-zh is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by holtwood. Cursor AI 编程规则精选集 | 132+ 规则,覆盖前端/后端/AI/DevOps 等 32 个领域. It has 227 GitHub stars.

Is awesome-cursorrules-zh safe to use?

Yes. awesome-cursorrules-zh passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install awesome-cursorrules-zh?

Clone the repository with "git clone https://github.com/holtwood/awesome-cursorrules-zh" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is awesome-cursorrules-zh written in?

awesome-cursorrules-zh is primarily written in JavaScript. It is open-source under holtwood on GitHub, so you can review or fork the full source.

Are there alternatives to awesome-cursorrules-zh?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh awesome-cursorrules-zh against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情