Generate complex React forms with field validation, error messages, accessibility, and submission handling.
Create a form component for [form_purpose]. Requirements: - Use react-hook-form (or existing form library in project) - Zod schema for validation with custom error messages - Form fields: [list your fields] - Field-level validation with inline error messages - Form-level validation for cross-field rules - Proper input types (email, password, tel, number, date) - Accessible: labels, aria-describedby for errors, fieldset/legend for groups - Loading state on submit button with disabled state - Success and error toast/notification on submission - Reset form after successful submission (configurable) - Handle server-side validation errors (map to specific fields) - Prevent double submission - Auto-focus first error field on failed validation - Mobile-friendly with proper input modes (inputMode="numeric") - Match existing form patterns in this codebase
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.