--- name: Next.js Server Actions description: Mutations, Form handling, and RPC-style calls. metadata: labels: [nextjs, actions, mutations] triggers: files: ['**/actions.ts', '**/*.tsx'] keywords: [use server, Server Action, revalidatePath, useFormStatus] --- # Server Actions ## **Priority: P1 (HIGH)** Handle form submissions and mutations without creating API endpoints. ## Implementation - **Directive**: Add `'use server'` at the top of an async function. - **Usage**: Pass to `action` prop of `