What problem does it solve? Calling next-safe-action server actions from React client components requires managing execution state, results, errors, and navigation behavior manually. This Skill provides the correct patterns for useAction, useOptimisticAction, and useStateAction so you avoid type errors and broken UI states. ## Core Features & Use Cases - useAction execution patterns: Covers execute vs executeAsync, the discriminated-union result object, status shorthands (isPending, hasSucceeded, hasErrored), and lifecycle callbacks (onExecute, onSuccess, onError, onNavigation, onSettled). - Optimistic UI updates: Shows how useOptimisticAction wraps React.useOptimistic with currentState and updateFn for instant like buttons, todo toggles, and list add/delete operations. - Stateful form actions: Explains useStateAction with the formAction dispatcher, initResult seeding, and the required .stateAction() server-side definition with prevResult access. - Use Case: You are building a feedback form in a Next.js 15 app and need validation errors displayed per field, a pending submit button, and a success message. Use this Skill to wire useStateAction with a .stateAction() server action correctly. ## Quick Start Ask the AI to show how to call a next-safe-action server action from a client component using useAction with success and error callbacks.