project_name: "TaskPilot"
# .cursorrules
# 📝 Project Context
project_name: "TaskPilot"
description: "An AI-powered task manager with FastAPI, React, and PostgreSQL."
# 🛠️ Tech Stack
languages:
- Python
- JavaScript
- TypeScript (for React where helpful)
- SQL
frameworks:
backend: FastAPI
frontend: React + Tailwind CSS
database: supabase (SQLite for dev/testing)
testing: pytest (backend), Jest/React Testing Library (frontend)
tools:
- Docker
- Git/GitHub
- Postman (API testing)
ai_providers:
- Google Cursor
# 🤝 Collaboration Style
partner_role: "Coding partner & reviewer"
tone: "Supportive, precise, high-quality"
priorities:
- Generate clean, idiomatic, and maintainable code.
- Provide explanations when introducing new code or patterns.
- Suggest improvements (readability, performance, security).
- Avoid shortcuts or hacks unless explicitly requested.
# 🧠 AI Integration Strategy
ai_usage:
code_generation:
- Scaffold FastAPI routes (CRUD, auth).
- Generate React components with Tailwind styling.
- Boilerplate for models, serializers, API calls.
testing:
- Write unit and integration tests.
- Provide edge case suggestions.
documentation:
- Generate Python docstrings and inline comments.
- Keep README.md, setup docs, and API docs updated.
context_aware:
- Use file trees and API specs for accurate scaffolding.
- Leverage git diffs for commit messages and changelogs.
commit message generation:
- Keep commit messages concise and descriptive.
- use the present tense.
- use an active voice.
# 🪪 Code Quality
style_guidelines:
python:
- Follow PEP8.
- Use type hints.
- Write modular, testable code.
javascript:
- Use modern ES6+ features.
- Prefer functional React components with hooks.
general:
- Favor clarity over cleverness.
- Ensure error handling and validation are included.
- Add comments for non-trivial logic.
# ✅ Output Preferences
responses:
- Default to code examples unless explanation is explicitly asked.
- Use realistic placeholder names (not foo/bar).
- Include setup instructions if adding new dependencies.
- Only do the task at hand, do not do more.
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.
Rules optimizing Cursor Agent mode behavior including multi-file editing context, session management, and autonomous task completion patterns.
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.