Use for security-sensitive Next.js backend-for-frontend work involving Route Handlers, Proxy, Server Actions, webhooks, callbacks, data access layers, server-only modules, request validation, rate limits, or public API boundaries.
Use for security-sensitive Next.js backend-for-frontend work involving Route Handlers, Proxy, Server Actions, webhooks, callbacks, data access layers, server-only modules, request validation, rate limits, or public API boundaries.
Prefer this skill when a Next.js task exposes HTTP endpoints or moves privileged data across server/client boundaries.
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorNot declared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Repository health
Stars2
Default branchmain
Open issues0
Status
Archived
Skill metadata
Parsed from SKILL.md frontmatter.
Version0.1.0
More metadata
author
xiro
version
0.1.0
organization
local
date
May 2026
framework
Next.js
frameworkVersion
v16.2.6
supportedVersions
["15.x.x","16.x.x"]
priority
high
abstract
Focused real-project skill for secure Next.js backend-for-frontend surfaces. Includes Route Handler, Proxy, Server Action, webhook, DAL, DTO, environment, and header-boundary rules with concrete before/after examples.
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md2,825 B
docsAGENTS.md2,255 B
docsSUMMARY.md374 B
History
First seen on skills.sh
First recorded snapshot · 26 installs
SKILL.md
Next.js Secure BFF
Use this skill when Next.js acts as a public backend boundary, not just a rendering layer. Treat Route Handlers, Proxy, and Server Actions as externally reachable entry points that need normal backend security review.
When to Apply
Use this skill when:
Writing or reviewing app/**/route.ts, proxy.ts, webhook handlers, callback URLs, or BFF proxy endpoints
Designing Server Actions that mutate data or depend on authenticated users
Moving database, secrets, or internal API access into a Next.js app
Auditing whether data passed to Client Components is minimized and safe
Debugging leaks through headers, serialized action results, logs, or broad DTOs
Load On Demand
Start with this file. Load detailed files only when the task needs them:
Resolve conflicts by lower priority number first. At the same priority, prefer Security, API, then Operations.
Priority
Category
Impact
Prefix
1
Security & Authorization
CRITICAL
security-
2
Public API Boundaries
CRITICAL
api-
3
Operations & Runtime Controls
HIGH
ops-
Source Policy
Prefer official Next.js docs for framework semantics. For auth libraries, follow the library's official adapter docs after this skill establishes the Next.js security boundary. Do not copy community webhook, proxy, or Server Action snippets unless they validate inputs, re-authorize the caller, and filter outputs.