What problem does it solve? Building type-safe Next.js server actions requires repetitive boilerplate for input validation, error handling, and middleware chaining. This Skill provides the patterns and API reference for creating next-safe-action clients that validate inputs and outputs, handle server errors consistently, and compose middleware for authentication and authorization. ## Core Features & Use Cases - Client Configuration: Set up createSafeActionClient with metadata schemas, custom server error handlers, and validation error shapes. - Validated Actions: Define actions with Standard Schema (Zod, Valibot, Yup) input/output validation, bind args, and async schema factories. - Layered Middleware: Build auth and admin clients by chaining .use() middleware that injects typed context like userId and roles. - Use Case: You need an admin-only action that deletes a user. Create an adminActionClient extending an auth client, add a Zod input schema for the target user ID, and return structured validation errors when the email or ID is invalid. ## Quick Start Create a safe action client with Zod input validation and an authentication middleware layer for my Next.js server actions.