Rules optimizing Cursor Agent mode behavior including multi-file editing context, session management, and autonomous task completion patterns.
Agent Mode Best Practices: 1. Always read existing code before modifying 2. Make minimal, focused changes per edit 3. Run tests after each significant change 4. Use @codebase for broad context 5. Prefer editing existing files over creating new ones 6. Maintain consistent code style with the existing codebase 7. Add proper error handling and edge cases 8. Write descriptive commit messages 9. Keep file changes atomic and reviewable 10. Explain reasoning before making changes
Comprehensive .cursorrules file for Next.js 15 App Router projects with TypeScript, enforcing server components by default, proper use of "use client" directive, and App Router conventions.
Cursor rules for Python FastAPI projects enforcing async patterns, Pydantic v2 models, dependency injection, and proper error handling.
Rules for consistent React component development with TypeScript interfaces, proper hook patterns, and component composition.
Cursor rules for projects using Tailwind CSS with shadcn/ui component library, enforcing consistent utility class usage and component patterns.
Rules for Go backend services enforcing idiomatic Go patterns, proper error handling, and clean architecture conventions.
Cursor rules for Rust projects covering ownership patterns, error handling with thiserror/anyhow, and async runtime conventions.