- Use Go standard formatting (goimports)
# Golang Project Rules ## Code Style - Use Go standard formatting (goimports) - Follow Go naming conventions (CamelCase for exported, camelCase for unexported) - Keep functions and methods concise and focused - Avoid unnecessary comments - let the code speak for itself - Use meaningful variable and function names ## Project Structure - Follow 3-layer architecture pattern strictly - Keep handlers, services, and repositories in separate packages - Use interfaces for dependency injection and testability ## Error Handling - Always handle errors explicitly - Use structured error responses for HTTP APIs - Log errors with appropriate context using logrus ## Dependencies - Prefer standard library when possible - Use well-maintained third-party packages - Keep dependencies minimal and focused
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.