Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
Cursor ruleAn toànQuy trình & bộ nhớ agentDễ cho người mới

awesome-cursorrules

PatrickJS · PatrickJS/awesome-cursorrules

Cung cấp bộ sưu tập các quy tắc dự án dựa trên Markdown để tùy chỉnh và nâng cao hành vi của trình chỉnh sửa Cursor AI bằng hướng dẫn cụ thể theo dự án.

📄 Configuration files that enhance Cursor AI editor experience with custom rules and behaviors

41k sao3.5kGiấy phép: CC0-1.0Cập nhật 5 tháng trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Triển khai các tiêu chuẩn mã hóa cụ thể theo dự án trong Cursor AI.
  • Hướng dẫn Cursor sử dụng các thư viện hoặc mẫu kiến trúc ưu tiên.
  • Xác định các hành vi tùy chỉnh cho các loại tệp khác nhau trong dự án của bạn.

Thử hỏi agent của bạn

  • “Triển khai quy tắc 'React best practices' từ awesome-cursorrules cho tệp TypeScript này.”
  • “Cấu hình Cursor AI để tuân theo quy tắc 'Python PEP 8' cho tất cả các tệp `.py` trong dự án này.”
  • “Cho tôi xem các quy tắc có sẵn cho thiết kế lược đồ cơ sở dữ liệu trong awesome-cursorrules.”

Kiểm tra an toàn

An toàn

Không thấy dấu hiệu rủi ro trong các file đã quét.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Awesome Cursor Rules

Cursor Project Rules enhance Cursor AI editor behavior with project-specific guidance and reusable coding standards.

Cursor AI is an AI-powered code editor. Cursor Project Rules are Markdown-based .mdc files that live in .cursor/rules/ and tell Cursor how to behave for specific projects, file types, frameworks, and workflows.

Sponsorships

coderabbit.ai - Cut Code Review Time & Bugs in Half. Instantly.
  
	  
  
Unblocked MCP- Supercharge Cursor with your team’s knowledge 
  
	  
  
Warp - Built for coding with multiple AI agents
  
	  
  

Contents

Why Cursor Rules

Cursor rules help developers define project-specific instructions for Cursor AI. This repository uses the modern .mdc Project Rules format.

Customized behavior means Cursor can respond to the specific needs of a project instead of relying only on general coding knowledge. Rules can describe local architecture, preferred libraries, common methods, domain constraints, and other context that makes generated code more relevant.

Consistency is the other big win. By defining coding standards and best practices in .mdc files, teams can guide Cursor toward code that matches the project's style, naming, structure, and review expectations.

Project rules also reduce repeated manual editing. Well-scoped rules give Cursor reusable project knowledge up front, so suggestions are more likely to fit the codebase on the first pass and less likely to need the same corrections again.

For teams, shared .cursor/rules/*.mdc files keep AI assistance aligned across contributors. Everyone can work from the same project-specific guidance, whether the rule covers framework usage, security requirements, testing conventions, or workflow details.

By adding selected .mdc files to .cursor/rules/, you can use these rules directly in your project.

Rules

Frontend Frameworks and Libraries

Xem mã nguồn trên GitHub