Backend Architect Skill

Designs and implements backend systems using DDD layered architecture in TypeScript with Node.js, Express, Prisma, and PostgreSQL.

Updated Dec 11, 2025
One-click install
npx skills add https://github.com/dorrio/sorteo-app-generator --skill backend-architect-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Backend Architect Skill
Source: https://github.com/dorrio/sorteo-app-generator/tree/main/.agent/skills/backend-architect
Command: npx skills add https://github.com/dorrio/sorteo-app-generator --skill backend-architect-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured approach to designing and implementing robust, scalable backend systems using modern TypeScript practices.

Core Features & Use Cases

  • Domain-Driven Design (DDD): Emphasizes a clean separation of concerns with distinct Domain, Application, Infrastructure, and Presentation layers.
  • TypeScript Expertise: Leverages TypeScript for strong typing, improving code quality and maintainability.
  • ORM Integration: Integrates Prisma ORM with PostgreSQL for efficient data persistence.
  • API Development: Guides the creation of RESTful APIs using Express.
  • Use Case: Develop a new microservice for user authentication, ensuring business logic is encapsulated within domain entities and services, with strict validation and error handling.

Quick Start

Use the Backend Architect Skill to create a new user entity with a save method.

Frequently Asked Questions about Backend Architect Skill

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

FAQPage Schema
How do I structure a TypeScript backend with Domain-Driven Design?

To structure a TypeScript backend with Domain-Driven Design, separate your code into distinct Domain, Application, Infrastructure, and Presentation layers. This approach encapsulates business logic within domain entities and services while using thin Express controllers for API routing.

How do I use Prisma ORM with PostgreSQL in an Express application?

Using Prisma ORM with PostgreSQL in an Express application involves integrating Prisma within the infrastructure layer for data access. This setup provides efficient data persistence while keeping data mapping isolated from your domain and application services.

What is the best way to separate business logic from Express controllers?

The best way to separate business logic from Express controllers is to implement a layered architecture where controllers remain thin. Push business rules into domain entities and application services, ensuring your presentation layer only handles HTTP requests and responses.

Can I build a user authentication microservice with DDD in Node.js?

Yes, you can build a user authentication microservice with DDD in Node.js by encapsulating validation and error handling within domain entities and application services. This method ensures strict typing and test coverage using TypeScript, Express, and Prisma.

Does DDD layered architecture improve TypeScript code maintainability?

DDD layered architecture improves TypeScript code maintainability by enforcing a clean separation of concerns and strict typing. Isolating domain logic from infrastructure and presentation layers makes the codebase easier to scale and test.

When should I not use Domain-Driven Design for a backend API?

You should not use Domain-Driven Design for a backend API when building simple CRUD applications with minimal business logic. The overhead of maintaining distinct Domain, Application, and Infrastructure layers outweighs the benefits for basic data entry and retrieval tasks.