
Safe Action Advanced
Advanced next-safe-action features covering bind arguments, metadata, framework errors, type utilities, and server callbacks.
- CCM score
- 60 of 100
- skills.sh installs
- 1.2K
- GitHub stars
- 1
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers bind arguments, typed metadata, framework errors (redirect, notFound, forbidden, unauthorized), and type inference utilities
- Includes server-level callbacks
onSuccess,onError,onSettled, andonNavigationthat run in the Node.js runtime - Distinguishes server callbacks from hook callbacks such as
useAction({ onSuccess }), which run in the browser - Documents
throwServerErrorfor re-throwing handled errors, contrasted withreturnServerError()for expected typed errors
Install
$ npx -y skills add next-safe-action/skills --skill safe-action-advanced -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
next-safe-action Advanced Features
Overview
| Feature | Use Case |
|---|---|
| Bind arguments | Pass extra args to actions via .bind() (e.g., resource IDs) |
| Metadata | Attach typed metadata to actions for use in middleware |
| Framework errors | Handle redirect, notFound, forbidden, unauthorized in actions |
| Type utilities | Infer types from action functions and middleware |
Server-Level Action Callbacks
The second argument to .action() accepts callbacks that run on the server (not client-side hooks):
Details
- Repository
- github.com/next-safe-action/skills
- Categories
- Frontend & UI Code, Backend & APIs
- First seen
- May 16, 2026
More from next-safe-action/skills
All 8Similar to Safe Action Advanced
More Frontend & UI Code
safe-action-clientnext-safe-action/skills1.3K installsTyped action client for next-safe-action with chainable input, output, and middleware validation for Standard Schema.
safe-action-middlewarenext-safe-action/skills1.2K installsMiddleware layer for next-safe-action that adds auth, logging, and context via use() and useValidated() hooks.
server-actionsdavepoon/buildwithclaude204 installsNext.js Server Actions guide for defining, validating, and revalidating data mutations in the App Router.
nextjs-advanced-routingwsimmonds/claude-nextjs-skills338 installsGuide to advanced App Router patterns: Route Handlers, parallel and intercepting routes, Server Actions, and Suspense streaming.
nextjs-server-navigationwsimmonds/claude-nextjs-skills307 installsServer-side navigation in Next.js with Link and redirect(), without unnecessary 'use client' conversion.
clerk-authenticationmindrally/skills724 installsGuidance for Clerk authentication in Next.js covering middleware, hooks, server actions, and route protection.