request-pipeline

Configure secure request pipelines for Express and NestJS Node.js services.

3|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/mauriciodelrio/delriodev-skills --skill request-pipeline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: request-pipeline
Source: https://github.com/mauriciodelrio/delriodev-skills/tree/main/es-skills/software/backend/request-pipeline
Command: npx skills add https://github.com/mauriciodelrio/delriodev-skills --skill request-pipeline

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps you configure the request processing pipeline in Node.js backends, covering both Express and NestJS architectures, ensuring correct middleware order, security, tracing, and rate limiting.

Core Features & Use Cases

  • Unified guidance for NestJS lifecycle (middlewares, guards, interceptors, pipes, exception filters) and Express middleware ordering.
  • Essential middleware snippets for correlation IDs, CORS, request logging, rate limiting, and authentication.
  • Best‑practice guards, interceptors, and rate‑limiting implementations for secure, performant APIs.
  • Gotchas checklist to avoid common pitfalls such as insecure CORS, missing correlation IDs, or misplaced middleware.

Quick Start

Ask the assistant to set up a complete request pipeline for a new Express API with correlation ID, CORS, logger, rate limiting, and error handling.

Frequently Asked Questions about request-pipeline

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

FAQPage Schema
What is the correct middleware order for a secure Node.js Express pipeline?

The correct middleware order for a secure Node.js Express pipeline places security layers like CORS and rate limiting before core routing, followed by error handling. This ensures request validation and tracing, such as correlation IDs, execute safely before business logic.

How do I configure NestJS request lifecycle components like guards and interceptors?

To configure the NestJS request lifecycle, you sequence middlewares, guards, interceptors, pipes, and exception filters in a specific order. This structure enforces authentication, validates payload data, and handles errors consistently before sending the API response.

How do I add correlation IDs and rate limiting to a Node.js API?

You add correlation IDs and rate limiting to a Node.js API by inserting dedicated middleware early in the request pipeline. Correlation IDs trace requests across services while rate limiting protects endpoints from excessive traffic and abuse.

What are common pitfalls when setting up CORS and authentication middleware in Express?

Common pitfalls when setting up CORS and authentication middleware in Express include insecure wildcard CORS configurations, missing correlation IDs for tracing, and misplacing authentication checks relative to rate limiting, which can expose unsecured endpoints to automated threats.

Does this request pipeline guidance apply to both Express and NestJS backend services?

Yes, this request pipeline guidance applies to both Express and NestJS backend services. It provides unified best-practice code snippets and architectural rules to configure secure middleware ordering, tracing, and performance safeguards across both frameworks.