next-safe-action avatar

Safe Action Advanced

Once you're past basic server actions, you'll need this for the patterns that actually show up in production apps. It covers bind arguments for passing resource IDs without exposing them to the client, metadata schemas for passing typed data through middleware chains, and server-side callbacks that run after your actions complete (as opposed to the client-side hooks). The framework errors section handles Next.js redirects and auth boundaries properly. The type inference utilities are there when you need to extract input or result types from your action definitions. This is the stuff that's not obvious from the basic docs but becomes necessary once you're building anything real.

skills.sh installs
1.2K
GitHub stars
1
last updated
Aug 21, 2026

Install

$ npx -y skills add next-safe-action/skills --skill safe-action-advanced --agent claude-code

Installs into .claude/skills of the current project.

Files

next-safe-action Advanced Features

Overview

FeatureUse Case
Bind argumentsPass extra args to actions via .bind() (e.g., resource IDs)
MetadataAttach typed metadata to actions for use in middleware
Framework errorsHandle redirect, notFound, forbidden, unauthorized in actions
Type utilitiesInfer 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):

Sponsors

Details

Repository
github.com/next-safe-action/skills
Category
Backend & APIs
First seen
May 16, 2026

More from next-safe-action/skills

All 9
1vtex avatarvtex-io-app-settingsvtex/skillsApply when defining, validating, or consuming VTEX IO app settings. Covers settingsSchema, app-level configuration boundaries, and how backend or frontend code 1.2Kskills.sh installs
2davila7 avatarsenior-architectdavila7/claude-code-templatesComprehensive software architecture skill for designing scalable, maintainable systems using ReactJS, NextJS, NodeJS, Express, React Native, Swift, Kotlin, Flut1.2Kskills.sh installs
3secondsky avatarsap-fiori-toolssecondsky/sap-skillsDevelops SAP Fiori applications using SAP Fiori tools extensions for VS Code and SAP Business Application Studio. Use when: generating Fiori Elements or Freesty1.2Kskills.sh installs
4am-will avatarcontext7am-will/codex-skillsFetch up-to-date library documentation via Context7 CLI. Use PROACTIVELY when: (1) Working with ANY external library (React, Next.js, Supabase, etc.) (2) User a1.2Kskills.sh installs
5alirezarezvani avatarsenior-qaalirezarezvani/claude-skillsGenerates unit tests, integration tests, and E2E tests for React/Next.js applications. Scans components to create Jest + React Testing Library test stubs, analy1.2Kskills.sh installs
6pika-labs avatarlanguage-swappika-labs/pika-pluginsUse when the user asks for language swap or a task matching the examples below. Translate and dub a video into another language. One worker call preserves each 1.2Kskills.sh installs