project-structure

Organize backend Node.js projects with feature-based NestJS or Express module structures.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Este skill facilita la organización y estructuración de proyectos backend en Node.js al aplicar una estructura clara para NestJS (modules, providers, controllers) o Express (layers, routers) según el framework, mejorando mantenibilidad y escalabilidad.

Core Features & Use Cases

  • Organización por feature (module-per-feature) para cada dominio de negocio.
  • Soporte para NestJS y Express con plantillas de estructura recomendadas (src/, common/, config/, modules/).
  • Inyección de dependencias y barrel exports para facilitar la composición y reutilización.
  • Guía para migraciones y reorganizaciones de proyectos existentes manteniendo tipado y validaciones al startup.

Quick Start

Crea un nuevo proyecto backend y aplica la estructura recomendada de NestJS/Express usando esta skill.

Frequently Asked Questions about project-structure

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

FAQPage Schema
How do I structure a scalable NestJS backend project?

Structure a scalable NestJS backend using a module-per-feature organization with dedicated providers, controllers, and barrel exports. This layout separates business domains, enforces dependency injection, and improves maintainability across growing Node.js applications.

What is the best way to organize an Express backend into layers?

Organize an Express backend by separating it into distinct layers, routers, and a shared common directory. This architectural approach isolates business logic from routing, clarifies configuration layout, and ensures the Node.js project remains maintainable.

Can I refactor an existing Node.js project into a modular architecture?

You can refactor existing Node.js projects into a modular architecture by reorganizing files into feature-based modules. The process maintains startup-time typing and validation while applying clear configuration layouts and dependency injection patterns.

Does this modular project structure support both NestJS and Express frameworks?

Yes, the modular project structure supports both NestJS and Express frameworks. It provides tailored structural templates for NestJS modules and Express layers, applying dependency injection and barrel exports appropriately for each environment.

How do barrel exports and dependency injection improve backend project organization?

Barrel exports and dependency injection improve backend project organization by centralizing module imports and decoupling component instantiation. This streamlines feature composition, enhances code reusability, and simplifies scaling across complex Node.js architectures.