mcpField
N
nextjs-nestjs-integration

nextjs-nestjs-integration

github.com/xirothedevDevelopment290 installsUpdated 24w ago
Repository

About nextjs-nestjs-integration

A skill for coordinating Next.js applications with NestJS APIs. It helps developers preserve backend ownership, API contracts, and deployment boundaries across both applications.

Key features

  1. 01OpenAPI client generation and use
  2. 02Next.js and NestJS responsibility boundaries
  3. 03Session and authentication propagation
  4. 04CORS, proxy, and API origin guidance
  5. 05Server Component data-fetching patterns
  6. 06Deployment and environment alignment

Use cases

  1. 01Choosing whether logic belongs in Next.js or NestJS
  2. 02Passing authentication context to a NestJS API
  3. 03Fetching API data from Server Components
  4. 04Aligning Docker and deployment settings

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/xirothedev/skills --skill nextjs-nestjs-integration

After installing, type/nextjs-nestjs-integrationin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
test-cases.json
dataset/integration/cors-proxy-contract/
correct.ts
incorrect.ts
notes.md
dataset/integration/deployment-split/
correct.ts
incorrect.ts
notes.md
dataset/integration/openapi-client-boundary/
correct.ts
incorrect.ts
notes.md
dataset/integration/server-component-fetching/
correct.tsx
incorrect.tsx
notes.md
dataset/integration/session-propagation/
correct.ts
incorrect.ts
notes.md
dataset/integration/shared-env-contract/
correct.ts
incorrect.ts
notes.md
references/
_sections.md
integration-cors-proxy-contract.md
integration-deployment-split.md
integration-openapi-client-boundary.md
integration-server-component-fetching.md
integration-session-propagation.md
integration-shared-env-contract.md
sources/
inventory.json

Details

From the project README

Next.js NestJS Integration

Use this skill when a project has both a Next.js app and a NestJS API. The main job is to keep ownership boundaries clear so the web app does not accidentally duplicate backend policy, bypass API contracts, or self-fetch at build time.

When to Apply

Use this skill when:

  • Generating or consuming typed clients from a NestJS OpenAPI document
  • Deciding whether logic belongs in Next.js Route Handlers/Server Actions or NestJS controllers/services
  • Propagating auth/session context from Next.js to NestJS
  • Configuring CORS, cookies, Proxy, rewrites, or internal API origins
  • Fetching NestJS data from Server Components without calling the Next.js app's own Route Handlers
  • Aligning Docker, environment variables, health checks, and deployment topology across apps

Load On Demand

Start with this file. Load detailed files only when the task needs them:

references/_sections.md
references/integration-openapi-client-boundary.md
references/integration-session-propagation.md
references/integration-cors-proxy-contract.md
references/integration-server-component-fetching.md
references/integration-shared-env-contract.md
references/integration-deployment-split.md
dataset/integration/openapi-client-boundary/correct.ts
sources/inventory.json

Each rule file includes:

  • Why the pattern matters
  • Incorrect and correct examples
  • Dataset path with larger TypeScript examples
  • Official source references

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Integration BoundariesCRITICALintegration-
2API ContractsCRITICALapi-
3Deployment & OperationsHIGHdeploy-

Source Policy

Use this skill together with nextjs-secure-bff, nextjs-production-platform, and nestjs-production-api-contracts when the work spans both apps. Official Next.js and NestJS docs outrank framework-agnostic monorepo examples.

Comments

Markdown supported