backend-dev-guidelines

Guide Node.js backend development with Clean/Hexagonal architecture and security practices.

Updated Dec 13, 2025
One-click install
npx skills add https://github.com/imehr/vet --skill backend-dev-guidelines-imehr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-dev-guidelines
Source: https://github.com/imehr/vet/tree/main/.claude/skills/backend-dev-guidelines
Command: npx skills add https://github.com/imehr/vet --skill backend-dev-guidelines-imehr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps engineering teams implement robust, scalable backend architectures by providing a blueprint and guidelines to apply Clean/Hexagonal architectural patterns in Node.js projects.

Core Features & Use Cases

  • Enforces Layer Separation: HTTP (Controllers) -> Application (Services) -> Domain (Entities) -> Infrastructure (Repositories).
  • Supports Domain-Driven Design, DTO-driven validation, and repository-based data access.
  • Promotes security best practices (OWASP, input validation, structured error handling) across the stack.

Quick Start

Ask the AI to generate a starter TypeScript backend project that demonstrates Clean Architecture with 4 layers (HTTP, Application, Domain, Infrastructure), including example DTOs, services, controllers, and repositories.

Frequently Asked Questions about backend-dev-guidelines

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

FAQPage Schema
How do I structure a Node.js backend using Clean Architecture and TypeScript?

Structure a Node.js backend by enforcing layer separation: HTTP controllers route to application services, which manage domain entities and interact with infrastructure repositories. This separation isolates business logic from framework dependencies.

What is Domain-Driven Design and how does it apply to backend architecture?

Domain-Driven Design in backend architecture centers on modeling software around core business entities and rules. It applies by using typed schemas and DTOs to ensure strict validation boundaries between HTTP requests and domain logic.

How do I implement the repository pattern for data access in Node.js?

Implement the repository pattern by creating infrastructure-layer classes that handle data access operations, abstracting the database from domain entities. This allows services to query data without knowing underlying storage details.

What's the best way to handle validation and errors securely in a Node.js API?

Securely handle validation and errors by using DTOs for input validation and applying structured error handling across the stack. This prevents sensitive infrastructure details from leaking through HTTP responses.

Does this backend architecture approach support Hexagonal architecture principles?

Yes, this approach supports Hexagonal architecture by isolating the application core through ports and adapters. HTTP controllers and data repositories act as adapters, keeping the domain and application layers independent.

Can I generate a starter project that demonstrates these Clean Architecture layers?

You can generate a starter TypeScript backend project that demonstrates Clean Architecture with four layers: HTTP, Application, Domain, and Infrastructure. It includes example DTOs, services, controllers, and repositories.