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ànReview & chất lượng codeDễ cho người mới

cursor-rules

survivorforge · survivorforge/cursor-rules

Đây là một bộ sưu tập được tuyển chọn gồm hơn 39 tệp `.cursorrules` sẵn sàng sử dụng cho Cursor IDE, cung cấp các quy tắc dành riêng cho framework để nâng cao chất lượng lập trình AI.

🤖 Bộ sưu tập các tệp .cursorrules được tuyển chọn cho Cursor IDE — tăng cường mã hóa AI của bạn với các rule cụ thể theo framework cho React, Next.js, Python, Node.js, và nhiều hơn nữa.

18 sao1Giấy phép: MITCập nhật 6 tháng trước0 lượt mở

Xem trước

▍

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

  • Cải thiện tính nhất quán của mã cho các dự án React bằng cách áp dụng các quy tắc Cursor cụ thể.
  • Tạo mã tốt hơn, nhận biết framework cho các ứng dụng Next.js bằng cách sử dụng các quy tắc định sẵn.
  • Đảm bảo mã backend Python tuân thủ các phương pháp hay nhất với các quy tắc Cursor chuyên biệt.

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

Cursor Rules Collection

39+ ready-to-use .cursorrules files for Cursor IDE — supercharge your AI coding assistant with framework-specific rules.

What are Cursor Rules?

Cursor is an AI-powered code editor. .cursorrules files tell Cursor's AI about your project's conventions, tech stack, and coding patterns — making AI-generated code match your style perfectly.

Drop a .cursorrules file in your project root, and Cursor automatically uses it to generate better, more consistent code.

Available Rules

Frontend

FrameworkDescriptionLink
ReactComponent patterns, hooks best practices, TypeScript integrationrules/react
Next.jsApp Router, Server Components, Server Actions, metadatarules/nextjs
SvelteKitFile-based routing, load functions, form actions, storesrules/sveltekit
Tailwind CSSUtility-first patterns, responsive design, component recipesrules/tailwindcss

Backend

FrameworkDescriptionLink
Node.js/ExpressREST API patterns, middleware, layered architecturerules/nodejs-express
Python/FastAPIAsync patterns, Pydantic v2, dependency injectionrules/python-fastapi
Python/DjangoDRF, ORM best practices, class-based viewsrules/python-django
Go/GinIdiomatic Go, error handling, concurrency patternsrules/go-gin
Rust/AxumOwnership patterns, async with Tokio, tower middlewarerules/rust-axum

Full Stack & Cloud

StackDescriptionLink
SupabaseAuth, RLS, Edge Functions, real-time, storagerules/supabase
AWS ServerlessLambda, DynamoDB, SAM, API Gatewayrules/aws-serverless
Docker/DevOpsMulti-stage builds, CI/CD, infrastructure as coderules/docker-devops

Languages

LanguageDescriptionLink
TypeScriptStrict mode, utility types, generics, type narrowingrules/typescript

Specialized

TopicDescriptionLink
Flutter/DartWidget architecture, Riverpod, Material Design 3rules/flutter-dart
LangChain/AILCEL, RAG, agents, LangGraph, structured outputrules/langchain-ai
Chrome ExtensionsManifest V3, service workers, content scriptsrules/chrome-extension

AI Agent Tooling

TopicDescriptionLink
MCP Server (Python)Model Context Protocol servers with FastMCP — tools, transport, auth, sanitization, real production lessonsrules/mcp-server

How to Use

  1. Browse the rules/ directory and find the rule for your tech stack
  2. Copy the .cursorrules file to your project root directory
  3. Open your project in Cursor IDE
  4. Cursor automatically detects and uses the rules file
# Example: Add React rules to your project
curl -o .cursorrules https://raw.githubusercontent.com/survivorforge/cursor-rules/main/rules/react/.cursorrules

Cursor Rules Generator

Want a custom .cursorrules file tailored to your exact stack? Try our free interactive generator:

Cursor Rules Generator — build a custom rules file in seconds.

Premium Pack

Want ALL 39+ rules in one download, plus a comprehensive Prompt Engineering Guide for getting the most out of AI coding assistants?

Cursor Rules Mega Pack on Gumroad — professionally crafted, regularly updated, and ready to drop into any project.

Includes bonus rules not in this repo:

  • T3 Stack (Next.js + tRPC + Prisma + Tailwind)
  • MERN Stack
  • Testing/TDD patterns
  • Security best practices
  • Clean code principles
  • Performance optimization
  • And more...

What Makes These Rules Good?

Each rules file includes:

  • Code style conventions (naming, formatting, imports)
  • Architecture patterns specific to the framework
  • Error handling best practices
  • Testing strategies and tools
  • Security guidelines
  • Performance optimization tips
  • File structure recommendations
  • Common pitfalls to avoid

These aren't generic templates. Each file is written by developers who know the framework deeply, covering the patterns that actually matter in production codebases.

More Developer Tools

Visit Survivor Forge on Gumroad for all products.

Contributing

Found a useful .cursorrules pattern? PRs welcome! See CONTRIBUTING.md for guidelines.

License

MIT License — use these rules in any project, personal or commercial.


Built by Survivor Forge — AI-powered tools for solopreneurs and developers.

Xem mã nguồn trên GitHub