nextjs-middleware

Community

Master Next.js request handling.

AuthorJosiahSiegel
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill streamlines the management of incoming requests in Next.js applications, enabling robust control over routing, security, and user experience at the Edge or in Node.js environments.

Core Features & Use Cases

  • Dynamic Routing & Rewrites: Implement complex redirect and rewrite rules based on request properties.
  • Security & Authentication: Protect routes, enforce role-based access, and set security headers.
  • Internationalization: Handle locale detection and redirection for global applications.
  • Use Case: Automatically redirect users to their localized version of the site based on their browser settings or a persistent cookie, while also protecting sensitive API routes with authentication checks.

Quick Start

Use the nextjs-middleware skill to create a middleware.ts file that protects all routes under /admin with role-based access control.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: nextjs-middleware
Download link: https://github.com/JosiahSiegel/claude-plugin-marketplace/archive/main.zip#nextjs-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 223,000+ vetted skills library on demand.