Create a Server Action with validation and proper error handling.
# Generate Next.js Server Action Create a Server Action with validation and proper error handling. ## Arguments - `$ARGUMENTS` - Action name and description (e.g., "createPost with title and content validation") ## Instructions Create a Server Action based on the provided specifications: 1. **Analyze Requirements** - Parse action name from `$ARGUMENTS` - Identify required input fields - Determine validation requirements - Check if revalidation is needed 2. **Implementation** - Create in actions.ts or separate file - Add 'use server' directive - Implement Zod valid...