Generate production-ready Dockerfiles and docker-compose configurations with multi-stage builds and security best practices.
Create Docker configuration for this project. Requirements: - Multi-stage Dockerfile: - Builder stage: install deps and build - Runner stage: minimal production image - Use specific version tags (not :latest) - Run as non-root user - Set proper NODE_ENV/PYTHON_ENV - Copy only necessary files (use .dockerignore) - Order layers for optimal cache utilization - Health check with HEALTHCHECK instruction - docker-compose.yml: - Application service with resource limits - Database service with persistent volume - Redis/cache service if needed - Network isolation between services - Environment variables from .env file - Proper depends_on with health checks - Named volumes for data persistence - Port mapping only for services that need external access - Include .dockerignore file - Add Makefile or scripts for common Docker operations
Generate optimized .cursorrules files tailored to your project's tech stack, conventions, and team preferences. Covers TypeScript, Python, Rust, Go, and more.
Leverage Cursor's Agent mode to build complete features end-to-end. Handles file creation, terminal commands, dependency installation, and multi-file edits in one flow.
Generate complete React components with TypeScript types, props interface, stories, and unit tests in one prompt.
Generate robust Next.js API routes with Zod validation, error handling, rate limiting, and TypeScript types.
Design database tables with proper types, constraints, indexes, and migration files for PostgreSQL/Supabase.
Generate FastAPI endpoints with Pydantic request/response models, dependency injection, and async database operations.