Generate Python data processing pipelines with pandas, validation, logging, and error recovery.
Create a data processing pipeline for [data_description]. Requirements: - Use pandas for data manipulation (or polars if already in project) - Define clear pipeline stages: Extract → Validate → Transform → Load - Add data validation at each stage with descriptive error messages - Handle missing values: specify strategy (drop, fill, interpolate) - Add type conversion with error handling (pd.to_numeric with errors='coerce') - Include data quality checks (duplicates, outliers, schema validation) - Add structured logging at each pipeline stage with row counts - Implement retry logic for external data source connections - Save intermediate results for debugging (optional, configurable) - Write output to [destination: CSV/PostgreSQL/S3/BigQuery] - Add CLI interface with argparse for running with different configs - Include pipeline metrics: rows processed, duration, error count - Type hints throughout, docstrings on public functions
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.