Skip to content

RanaAhmar/cursor-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

📝 Cursor Rules Collection

Maintained Yes Editor Cursor

A curated collection of highly effective `.cursorrules` templates tailored for different technology stacks and team workflows.

✨ Overview

The Cursor IDE uses a .cursorrules file to instruct the built-in AI (like Claude 3.5 Sonnet or GPT-4o) on how to understand your codebase, format code, and adhere to project-specific architectural guidelines.

This repository provides copy-paste ready .cursorrules files designed to dramatically improve the quality and consistency of AI generation across your projects.

🗂️ Available Templates

  • React / Next.js: Rules for Server Components, hooks, Tailwind CSS, and strict typing.
  • Python / FastAPI: Guidelines for Pydantic v2, dependency injection, and PEP 8 formatting.
  • Go / Microservices: Emphasizes idiomatic Go, minimal dependencies, and robust error handling.
  • Node.js / Express: Focuses on async/await, centralized error handling, and modular routing.
  • System Design / Architecture: Rules forcing the AI to outline architecture before writing implementation code.

🚀 How to Use

  1. Check the rules/ directory for the stack that matches your project.
  2. Copy the content of the relevant file.
  3. Create a .cursorrules file in the root directory of your project.
  4. Paste the content and modify any project-specific details.
  5. Reload your Cursor window.

🤝 Contributing

Have a battle-tested rule that improves AI output? We want it! Read our CONTRIBUTING.md for details on how to submit a Pull Request.


🚀 Discover More from Stackaura

If you found this tool useful, check out our other high-performance web utilities and follow Ahmar Hussain for more open-source excellence.

🌟 Featured Projects

🔗 Stay Connected


About

A curated collection of highly effective .cursorrules templates for AI code generation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors