express-nestjs

Build secure Express.js and NestJS APIs with validation and error handling.

16|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill express-nestjs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: express-nestjs
Source: https://github.com/JCETools-Petra/JCE-Opencode-Tools/tree/main/config/skills/express-nestjs
Command: npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill express-nestjs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the common challenge of building reliable Express.js and NestJS APIs with consistent structure, strong security, and predictable request/response behavior.

Core Features & Use Cases

  • Auto-detection & routing guidance: Helps choose Express vs NestJS based on the app type, performance needs, and architecture goals.
  • Production-ready patterns: Covers middleware/security, validation, error handling, and graceful shutdown so APIs behave well under real traffic.
  • NestJS architecture building blocks: Maps controllers/services/repositories and cross-cutting concerns (guards, interceptors, pipes, filters) to concrete implementation choices.
  • Use cases: Implementing CRUD endpoints, adding auth and role checks, standardizing API responses, and setting up OpenAPI/Swagger plus testing strategy.

Quick Start

Ask the AI to generate a secure Express/NestJS endpoint with validation, centralized error handling, and graceful shutdown for the feature files under src/.

Frequently Asked Questions about express-nestjs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a secure NestJS API with controllers, services, and repositories?

To structure a secure NestJS API, use controllers for routing, services for business logic, and repositories for data access. Cross-cutting concerns like request validation and authorization are handled by guards, interceptors, and pipes.

What's the best way to choose between Express.js and NestJS for my REST API?

Choosing between Express.js and NestJS depends on your architecture goals and app type. NestJS provides an opinionated structure with built-in modules, while Express offers lightweight flexibility, and this skill helps auto-detect framework cues to guide the tradeoff.

How do I implement centralized error handling and request validation in Express.js?

Implement centralized error handling and request validation in Express.js by configuring middleware. This ensures predictable API responses and catches malformed inputs before they reach your core business logic.

Does this API security workflow include setting up OpenAPI Swagger documentation?

Yes, the API security workflow includes setting up OpenAPI Swagger documentation. It standardizes API responses and generates documentation alongside implementing authentication, role checks, and testing strategies.

How do I add authentication and role checks to existing NestJS endpoints?

Add authentication and role checks to NestJS endpoints by implementing guards. These components evaluate request metadata and enforce authorization policies before the controller layer processes the response.