posterus-ltd/yarkr-public/nextjs-middleware-routing
Write Next.js middleware (proxy.ts in Next 16) for redirects, rewrites, locale routing, headers and optimistic auth gating with tight matchers. Use when adding request-time routing logic, protecting route groups, or debugging middleware that loops or runs on assets.
Agent skill · version 0.0.0-arks-library.1792108571.gbefeb5a · from posterus-ltd/yarkr-public
Install
npx yarkr-cli add skill:posterus-ltd/yarkr-public/nextjs-middleware-routingWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:posterus-ltd/yarkr-public/nextjs-middleware-routing
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:posterus-ltd/yarkr-public/nextjs-middleware-routingOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:posterus-ltd/yarkr-public/nextjs-middleware-routingWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.