backend-dev-guidelines

Standardizes Node.js/Express/TypeScript backend project structure for microservices.

Updated Oct 26, 2025
One-click install
npx skills add https://github.com/Hieubkav/wincellarCloneBackend --skill backend-dev-guidelines-hieubkav
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-dev-guidelines
Source: https://github.com/Hieubkav/wincellarCloneBackend/tree/main/.claude/skills/fullstack/backend-dev-guidelines
Command: npx skills add https://github.com/Hieubkav/wincellarCloneBackend --skill backend-dev-guidelines-hieubkav

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Guides consistent backend development with layered architecture, DI, error handling, and testing patterns.

Core Features & Use Cases

  • Layered architecture (routes → controllers → services → repositories)
  • BaseController, Sentry monitoring
  • UnifiedConfig, Zod validation
  • Dependency Injection
  • Async patterns and testing
  • Sentry integration and error handling patterns

Quick Start

Create new endpoints using the template patterns and folder structure.

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 Express backend with TypeScript for microservices?

Use layered architecture with routes, controllers, services, and repositories. This Skill provides standardized patterns for Node.js/Express/TypeScript microservices, including BaseController templates, dependency injection setup, and folder structure that separates concerns across API endpoints, business logic, and data access layers.

How do I handle errors and validation in Express endpoints?

Implement centralized error handling with Sentry integration and validate requests using Zod. This Skill covers async error handling patterns, unified validation schemas, and error tracking configuration that work across all endpoints and middleware in your microservice.

What's the best way to organize repositories and services in a TypeScript backend?

Apply dependency injection to decouple repositories from services, and structure data access through a repository layer. This Skill standardizes how Prisma queries, service business logic, and controller request handling connect, reducing coupling and improving testability.

Can I use these backend patterns with Prisma for database access?

Yes. This Skill includes Prisma data access patterns integrated into the repository layer within the layered architecture, supporting real-world microservice scenarios with consistent query and error handling across all database operations.

How do I set up dependency injection in a Node.js/Express project?

Configure DI containers to inject repositories, services, and external dependencies into controllers and middleware. This Skill provides dependency injection patterns that enable testing, reduce tight coupling, and standardize how components are wired across your Node.js/Express backend.

What testing patterns work with this backend architecture?

Use dependency injection and layered separation to isolate services and repositories for unit testing. This Skill covers async testing patterns and architectural practices that make controllers, services, and data layers independently testable within Node.js/Express/TypeScript projects.