A collection of powerful cursorrules for enhancing AI-assisted development in Cursor.
This repository contains a carefully curated set of cursorrules files designed to enhance the capabilities of AI-assisted development in Cursor. Each cursorrule file provides specialized instructions and guidance for different development scenarios.
The main .cursorrules file includes:
- Core principles and guidelines
- Multi-Agent Scratchpad functionality
- Project structure conventions
- Code style guidelines
- Common tools and libraries
- AI optimization techniques
- Advanced features
The frontend-react-nextjs-tailwind.cursorrules file provides:
- Guidelines for React, Next.js, TypeScript, and Tailwind CSS
- Project structure recommendations
- Component design principles
- Performance optimization techniques
- State management patterns
- Accessibility best practices
The backend-python-fastapi.cursorrules file includes:
- Guidelines for Python, FastAPI, and SQLAlchemy
- Project structure recommendations
- API design principles
- Database design patterns
- Authentication and security best practices
- Performance optimization techniques
The ai-integration-patterns.cursorrules file covers:
- Prompt engineering techniques
- Model selection guidelines
- RAG implementation patterns
- Chain-of-thought reasoning approaches
- AI system architecture recommendations
- Security and privacy considerations
The repository includes several Python-based tools to support the Multi-Agent system:
- tools/plan_exec_llm.py: Connects to powerful LLMs for planning and reasoning tasks
- tools/llm_api.py: A unified interface for querying different LLM providers (OpenAI, Anthropic, etc.)
- tools/web_scraper.py: Extracts content from web pages
- tools/search_engine.py: Performs web searches using various search engines
The repository includes example setups for each specialized cursorrule:
- Frontend Example: Demonstrates how to use the frontend cursorrules in a Next.js project
- Backend Example: Shows how to apply the backend cursorrules in a FastAPI project
- AI Integration Example: Illustrates the use of AI integration patterns
See the setup guide for detailed instructions on setting up and using MagicCursorrules.
- Clone this repository
- Copy the desired .cursorrules file to your project's root directory
- Customize the file to fit your project's specific needs
- Enjoy enhanced AI-assisted development in Cursor!
These cursorrules were developed based on analysis of the awesome-cursorrules repository and best practices in AI-assisted development.