safe-action-middleware

Community

Secure, reusable middleware for Next-safe-action.

Authorgepetojj
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a framework to implement and compose middleware for Next-safe-action, enabling authentication, authorization, logging, rate limiting, error interception, context extension, and reusable standalone middleware via createMiddleware() or createValidatedMiddleware().

Core Features & Use Cases

  • .use() pre-validation middleware for authentication and logging
  • .useValidated() post-validation middleware for authorization and data enrichment
  • createMiddleware() and createValidatedMiddleware() for reusable patterns across clients
  • Immutable chaining and context merging to ensure predictable flows across actions

Quick Start

Create a Safe Action client with a simple authentication middleware using .use(), then add input validation with .inputSchema() and attach a post-validation middleware with .useValidated().

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: safe-action-middleware
Download link: https://github.com/gepetojj/umo/archive/main.zip#safe-action-middleware

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.