{"id":48883100,"url":"https://github.com/lessup/awesome-cursorrules-zh","last_synced_at":"2026-04-16T04:01:06.439Z","repository":{"id":296008109,"uuid":"991967891","full_name":"LessUp/awesome-cursorrules-zh","owner":"LessUp","description":"专为中文开发者优化的 Cursor AI 编程规则集合","archived":false,"fork":false,"pushed_at":"2025-07-02T07:01:52.000Z","size":406,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-02T07:41:48.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LessUp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"docs/roadmap.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-28T12:21:22.000Z","updated_at":"2025-07-02T07:01:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"b200b777-d057-4d5c-9b2b-a720f74bd400","html_url":"https://github.com/LessUp/awesome-cursorrules-zh","commit_stats":null,"previous_names":["lessup/awesome-cursorrules-zh"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LessUp/awesome-cursorrules-zh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LessUp%2Fawesome-cursorrules-zh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LessUp%2Fawesome-cursorrules-zh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LessUp%2Fawesome-cursorrules-zh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LessUp%2Fawesome-cursorrules-zh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LessUp","download_url":"https://codeload.github.com/LessUp/awesome-cursorrules-zh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LessUp%2Fawesome-cursorrules-zh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31870516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-16T04:01:05.002Z","updated_at":"2026-04-16T04:01:06.426Z","avatar_url":"https://github.com/LessUp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Awesome Cursor Rules 中文版\n\n[![Project Status](https://img.shields.io/badge/status-active-success?style=flat-square)](https://github.com/LessUp/awesome-cursorrules-zh)\n[![Translation Progress](https://img.shields.io/badge/progress-100%25-brightgreen?style=flat-square)](https://github.com/LessUp/awesome-cursorrules-zh)\n[![GitHub Stars](https://img.shields.io/github/stars/LessUp/awesome-cursorrules-zh?style=flat-square\u0026logo=github\u0026label=Stars)](https://github.com/LessUp/awesome-cursorrules-zh/stargazers)\n[![GitHub Forks](https://img.shields.io/github/forks/LessUp/awesome-cursorrules-zh?style=flat-square\u0026logo=github\u0026label=Forks)](https://github.com/LessUp/awesome-cursorrules-zh/network)\n[![License](https://img.shields.io/badge/License-MIT-blue?style=flat-square)](./LICENSE)\n\n**[🇨🇳 中文](#中文)** | **[🇺🇸 English](#english)**\n\n为中文开发者打造的 [Cursor](https://cursor.sh/) AI 编程规则集合  \n*A curated collection of Cursor AI coding rules for Chinese developers*\n\n**119** 个规则文件 · **43** 个技术领域 · **568** 个技术文档\n\n[快速开始](#快速开始) · [规则目录](#规则目录) · [使用指南](#使用指南) · [贡献](#贡献)\n\n\u003c/div\u003e\n\n---\n\n## 中文\n\n### 📖 这是什么？\n\n[Awesome Cursor Rules](https://github.com/PatrickJS/awesome-cursorrules) 是优秀的 Cursor AI 编程助手规则集合。本项目是其**中文本地化版本**，专为中文开发者优化：\n\n- **🎯 精准翻译** — 高质量中文翻译，技术术语准确\n- **📂 结构清晰** — 按技术领域分类，便于快速查找\n- **🚀 开箱即用** — 复制 `.cursorrules` 文件即可开始使用\n- **🌍 双语支持** — 完整的中英文文档\n\n### 🔧 什么是 .cursorrules？\n\n`.cursorrules` 是 Cursor AI 编辑器的项目级配置文件：\n\n| 功能 | 说明 | 示例 |\n|------|------|------|\n| 编码规范 | 定义代码风格、命名约定 | PascalCase 组件、camelCase 函数 |\n| 技术栈 | 指定框架、库、工具链 | React + TypeScript + Tailwind |\n| 最佳实践 | 自动应用行业标准 | 错误处理、性能优化、安全策略 |\n| AI 行为 | 定制 AI 回复和代码生成风格 | 详细注释、函数式编程 |\n\n\u003e 💡 **本质**：给 AI 助手的\"项目工作手册\"\n\n---\n\n### 🚀 快速开始\n\n#### 三步上手\n\n```bash\n# 1. 获取规则集\ngit clone https://github.com/LessUp/awesome-cursorrules-zh.git\n\n# 2. 选择规则\ncd awesome-cursorrules-zh\nls rules/frontend/react/  # 查看前端规则\n\n# 3. 应用到项目\ncp rules/frontend/react/nextjs-typescript/.cursorrules /你的项目路径/\n```\n\n#### 热门规则推荐\n\n| 技术栈 | 规则 | 路径 |\n|--------|------|------|\n| Next.js + TypeScript | `nextjs-typescript` | `rules/frontend/react/nextjs-typescript/` |\n| Vue 3 | `composition-api` | `rules/frontend/vue/composition-api/` |\n| FastAPI | `fastapi-api-example` | `rules/backend/python/fastapi-api-example/` |\n| Flutter | `flutter-app-expert` | `rules/mobile/flutter/flutter-app-expert/` |\n| Go 后端 | `backend-scalability` | `rules/backend/go/backend-scalability/` |\n\n📖 [完整快速开始指南](./docs/zh/getting-started.md)\n\n---\n\n### 📂 规则目录\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e🌐 应用开发\u003c/b\u003e\u003c/summary\u003e\n\n| 领域 | 目录 | 内容 |\n|------|------|------|\n| 前端 | [`frontend/`](./rules/frontend/) | React, Vue, Angular, Svelte, TypeScript |\n| 后端 | [`backend/`](./rules/backend/) | Node.js, Python, Go, Java, PHP, .NET |\n| 移动端 | [`mobile/`](./rules/mobile/) | Flutter, React Native, SwiftUI, Android |\n| 数据库 | [`database/`](./rules/database/) | 云原生、时空数据库 |\n| 系统编程 | [`systems/`](./rules/systems/) | C++ 现代规范 |\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e🤖 AI 与数据\u003c/b\u003e\u003c/summary\u003e\n\n| 领域 | 目录 | 内容 |\n|------|------|------|\n| AI/ML | [`ai/`](./rules/ai/) | 计算机视觉、MLOps、知识图谱 |\n| 数据科学 | [`data-science/`](./rules/data-science/) | Pandas, PyTorch, TensorFlow |\n| 数据工程 | [`data/`](./rules/data/) | Kafka, Spark, 数据仓库 |\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e☁️ 基础设施\u003c/b\u003e\u003c/summary\u003e\n\n| 领域 | 目录 | 内容 |\n|------|------|------|\n| DevOps | [`devops/`](./rules/devops/) | Docker, K8s, Terraform, CI/CD |\n| 云服务 | [`cloud/`](./rules/cloud/) | 中间件 |\n| 边缘计算 | [`edge/`](./rules/edge/) | AI 推理、模型压缩 |\n| 安全 | [`security/`](./rules/security/) | 零信任、隐私计算 |\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e🔬 专业领域\u003c/b\u003e\u003c/summary\u003e\n\n| 领域 | 目录 | 内容 |\n|------|------|------|\n| 区块链 | [`blockchain/`](./rules/blockchain/) | Solidity, Web3, 智能合约 |\n| IoT | [`iot/`](./rules/iot/) | 嵌入式、数字孪生 |\n| 量子计算 | [`quantum/`](./rules/quantum/) | 量子纠错、超导计算 |\n| 生物科技 | [`bio/`](./rules/bio/) | 生物电子、生物传感器 |\n\n\u003c/details\u003e\n\n完整目录见 [`rules/`](./rules/) 文件夹\n\n---\n\n### 💡 使用指南\n\n#### 单技术栈项目\n\n```bash\ncp rules/frontend/react/nextjs-typescript/.cursorrules ./\n```\n\n#### 多技术栈项目\n\n**方案一：合并规则**\n\n```bash\ncat rules/frontend/react/nextjs-typescript/.cursorrules \u003e .cursorrules\necho \"\" \u003e\u003e .cursorrules\ncat rules/backend/python/fastapi-api-example/.cursorrules \u003e\u003e .cursorrules\n```\n\n**方案二：目录级规则**（推荐）\n\n```\nproject/\n├── .cursorrules           # 通用规则\n├── frontend/\n│   └── .cursorrules       # 前端规则\n└── backend/\n    └── .cursorrules       # 后端规则\n```\n\n#### 自定义规则\n\n```bash\ncat \u003e\u003e .cursorrules \u003c\u003c 'EOF'\n\n## 项目自定义规则\n- API 路由使用 /api/v1 前缀\n- 所有模型必须包含 created_at 和 updated_at\nEOF\n```\n\n📖 [完整最佳实践指南](./docs/zh/best-practices.md)\n\n---\n\n### 📊 项目统计\n\n| 指标 | 数值 |\n|------|------|\n| 规则文件 | 119 个 `.cursorrules` |\n| 技术领域 | 43 个分类 |\n| 技术文档 | 568 个文件 |\n| 翻译进度 | 100% 完成 |\n| 文档语言 | 中文 + 英文 |\n\n---\n\n### 📚 文档\n\n| 文档 | 说明 | 链接 |\n|------|------|------|\n| 快速开始 | 5 分钟上手指南 | [中文](./docs/zh/getting-started.md) · [English](./docs/en/getting-started.md) |\n| 安装指南 | 详细安装配置 | [中文](./docs/zh/installation-guide.md) · [English](./docs/en/installation-guide.md) |\n| 最佳实践 | 配置和使用建议 | [中文](./docs/zh/best-practices.md) · [English](./docs/en/best-practices.md) |\n| 故障排除 | 问题诊断解决 | [中文](./docs/zh/troubleshooting.md) · [English](./docs/en/troubleshooting.md) |\n| API 参考 | 规则格式参考 | [中文](./docs/zh/api-reference.md) · [English](./docs/en/api-reference.md) |\n| 更新日志 | 版本历史 | [中文](./CHANGELOG.zh-CN.md) · [English](./CHANGELOG.md) |\n\n---\n\n### 🤝 贡献\n\n欢迎所有形式的贡献：\n\n- 🐛 **报告问题** — [提交 Issue](https://github.com/LessUp/awesome-cursorrules-zh/issues)\n- 🔧 **改进内容** — [提交 Pull Request](https://github.com/LessUp/awesome-cursorrules-zh/pulls)\n- 🔄 **同步上游** — 帮助与原项目保持同步\n- 📝 **完善文档** — 优化使用指南\n\n详见 [贡献指南](./CONTRIBUTING.md)\n\n---\n\n### 📄 许可证\n\n[MIT License](./LICENSE)\n\n---\n\n## English\n\n### 📖 What is this?\n\n[Awesome Cursor Rules](https://github.com/PatrickJS/awesome-cursorrules) is a curated collection of Cursor AI coding assistant rules. This project is the **Chinese localized version**, optimized for Chinese developers:\n\n- **🎯 Accurate Translation** - High-quality Chinese translations with accurate technical terminology\n- **📂 Clear Structure** - Organized by technology domain for easy discovery\n- **🚀 Ready to Use** - Copy `.cursorrules` file and start coding\n- **🌍 Bilingual Support** - Complete Chinese and English documentation\n\n### 🔧 What is .cursorrules?\n\n`.cursorrules` is a project-level configuration file for the Cursor AI editor:\n\n| Feature | Description | Example |\n|---------|-------------|---------|\n| Coding Standards | Define code style and naming conventions | PascalCase components, camelCase functions |\n| Tech Stack | Specify frameworks, libraries, toolchains | React + TypeScript + Tailwind |\n| Best Practices | Automatically apply industry standards | Error handling, performance, security |\n| AI Behavior | Customize AI response and code generation style | Detailed comments, functional programming |\n\n\u003e 💡 **Essence**: A \"project handbook\" for AI assistants\n\n---\n\n### 🚀 Quick Start\n\n#### Three Steps to Start\n\n```bash\n# 1. Get the rules\ngit clone https://github.com/LessUp/awesome-cursorrules-zh.git\n\n# 2. Choose rules\ncd awesome-cursorrules-zh\nls rules/frontend/react/  # View frontend rules\n\n# 3. Apply to project\ncp rules/frontend/react/nextjs-typescript/.cursorrules /path/to/your/project/\n```\n\n#### Popular Rules\n\n| Tech Stack | Rule | Path |\n|------------|------|------|\n| Next.js + TypeScript | `nextjs-typescript` | `rules/frontend/react/nextjs-typescript/` |\n| Vue 3 | `composition-api` | `rules/frontend/vue/composition-api/` |\n| FastAPI | `fastapi-api-example` | `rules/backend/python/fastapi-api-example/` |\n| Flutter | `flutter-app-expert` | `rules/mobile/flutter/flutter-app-expert/` |\n| Go Backend | `backend-scalability` | `rules/backend/go/backend-scalability/` |\n\n📖 [Complete Quick Start Guide](./docs/en/getting-started.md)\n\n---\n\n### 📂 Rule Categories\n\n- **🌐 App Development**: [Frontend](./rules/frontend/), [Backend](./rules/backend/), [Mobile](./rules/mobile/)\n- **🤖 AI \u0026 Data**: [AI/ML](./rules/ai/), [Data Science](./rules/data-science/), [Data Engineering](./rules/data/)\n- **☁️ Infrastructure**: [DevOps](./rules/devops/), [Cloud](./rules/cloud/), [Security](./rules/security/)\n- **🔬 Specialized**: [Blockchain](./rules/blockchain/), [IoT](./rules/iot/), [Quantum](./rules/quantum/)\n\nSee full directory in [`rules/`](./rules/)\n\n---\n\n### 💡 Usage\n\n```bash\n# Single tech stack\ncp rules/frontend/react/nextjs-typescript/.cursorrules ./\n\n# Multiple tech stacks - merge rules\ncat rules/frontend/react/nextjs-typescript/.cursorrules \u003e .cursorrules\ncat rules/backend/python/fastapi-api-example/.cursorrules \u003e\u003e .cursorrules\n```\n\n📖 [Complete Best Practices Guide](./docs/en/best-practices.md)\n\n---\n\n### 📚 Documentation\n\n| Document | Link |\n|----------|------|\n| Quick Start | [🇨🇳 中文](./docs/zh/getting-started.md) · [🇺🇸 English](./docs/en/getting-started.md) |\n| Installation | [🇨🇳 中文](./docs/zh/installation-guide.md) · [🇺🇸 English](./docs/en/installation-guide.md) |\n| Best Practices | [🇨🇳 中文](./docs/zh/best-practices.md) · [🇺🇸 English](./docs/en/best-practices.md) |\n| Troubleshooting | [🇨🇳 中文](./docs/zh/troubleshooting.md) · [🇺🇸 English](./docs/en/troubleshooting.md) |\n| API Reference | [🇨🇳 中文](./docs/zh/api-reference.md) · [🇺🇸 English](./docs/en/api-reference.md) |\n| Changelog | [🇨🇳 中文](./CHANGELOG.zh-CN.md) · [🇺🇸 English](./CHANGELOG.md) |\n\n---\n\n### 🤝 Contributing\n\nContributions are welcome:\n\n- 🐛 [Report Issues](https://github.com/LessUp/awesome-cursorrules-zh/issues)\n- 🔧 [Submit Pull Requests](https://github.com/LessUp/awesome-cursorrules-zh/pulls)\n- 📝 [Improve Documentation](./CONTRIBUTING.md)\n\n---\n\n### 📄 License\n\n[MIT License](./LICENSE)\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**If this project helps you, please give it a ⭐ Star!**\n\n[⬆ Back to Top](#awesome-cursor-rules-中文版)\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flessup%2Fawesome-cursorrules-zh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flessup%2Fawesome-cursorrules-zh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flessup%2Fawesome-cursorrules-zh/lists"}