
Safe Action Middleware
next-safe-action/skills/skills/safe-action-middlewareby next-safe-actiona2605bd2e84321245cba8f5718c144a6e4a5fa47No licenseListed Oct 9, 2026Updated Oct 9, 2026
Use when implementing middleware for next-safe-action -- authentication, authorization, logging, rate limiting, error interception, context extension, or creating standalone reusable middleware with createMiddleware() or createValidatedMiddleware(). Covers both use() (pre-validation) and useValidated() (post-validation) middleware.
Only the file list is public. File contents are available once the skill is installed in a workspace.
| Path | Size | Type |
|---|---|---|
| auth-patterns.md | 3.2 KB | text/markdown |
| logging-monitoring.md | 4 KB | text/markdown |
| SKILL.md | 7 KB | text/markdown |
| standalone-middleware.md | 5.4 KB | text/markdown |
Source and attribution
Source:next-safe-action/skillsinskills/safe-action-middlewareat commita2605bd
License: No license
Content belongs to its original authors. SourceWeft indexes it from a public repository.
More from next-safe-action/skills

Safe Action Validation Errors
next-safe-action
Explains next-safe-action validation error shapes and helpers for returning and displaying field-level and form-level errors.

Safe Action Hooks
next-safe-action
Guides use of next-safe-action React hooks for executing server actions, optimistic updates, and queued state mutations.

Safe Action Testing
next-safe-action
Vitest patterns for testing next-safe-action server actions, middleware, hooks, validation errors, and server errors.

Safe Action Client
next-safe-action
Guides creating and configuring next-safe-action clients and actions with validation and error handling.

Safe Action Forms
next-safe-action
Guides integrating next-safe-action with React forms, including native forms, the react-hook-form adapter and file uploads.

Safe Action Better Auth
next-safe-action
Adds Better Auth session authentication and authorization middleware to next-safe-action server actions.
More in Software Development

Playground
anthropics
Builds self-contained interactive HTML playgrounds with controls, live preview, and copyable prompt output.

M5 Onboard
anthropics
Provisions M5Stack ESP32 boards by detecting them on USB, flashing UIFlow 2.0 firmware, and installing a MicroPython app bundle.

Cardputer Buddy
anthropics
Guides iterating on a Cardputer-Adv MicroPython app bundle: adding apps, pushing files over USB-serial, tailing logs, and running REPL commands.

Web Design Guidelines
vercel-labs
Reviews UI code against Web Interface Guidelines fetched from a remote source and reports findings as file:line entries.

Vercel React Native Skills
vercel-labs
React Native and Expo best-practice rules covering list performance, animation, navigation, UI patterns, state, and monorepo setup.

Vercel React Best Practices
vercel-labs
Vercel's React and Next.js performance guidelines, organized as 70 rules for writing, reviewing, and refactoring code.