backend-dev-guidelines

Enforce layered architecture, Zod validation, and Sentry error tracking for Node.js Express microservices.

1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/meet1075/hackathon --skill backend-dev-guidelines-meet1075
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-dev-guidelines
Source: https://github.com/meet1075/hackathon/tree/main/chatbot/.agents/skills/backend-dev-guidelines
Command: npx skills add https://github.com/meet1075/hackathon --skill backend-dev-guidelines-meet1075

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Opinionated backend development standards for Node.js + Express + TypeScript microservices. These guidelines help teams build predictable, observable, and maintainable services by enforcing a canonical architecture and disciplined engineering practices.

Core Features & Use Cases

  • Layered architecture blueprint: Routes → Controllers → Services → Repositories → Database, with zero cross-layer leakage.
  • BaseController & error handling: Centralized error handling, Sentry integration, and consistent response formatting.
  • Config & observability: unifiedConfig pattern for safe configuration and built-in Sentry monitoring.
  • Data access discipline: Prisma repositories, DI, and testable service layers.
  • Validation & testing discipline: Zod-based input validation and a robust testing mindset.

Use Case: Onboarding a new microservice, ensuring consistent structure, testability, and observable behavior across the codebase.

Quick Start

Refactor or implement a backend module following Routes → Controllers → Services → Repositories with DI, Zod validation, and Sentry integration.

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 maintainability?

Structure your Node.js Express backend using a layered architecture: Routes → Controllers → Services → Repositories → Database. This separation enforces zero cross-layer leakage, improving testability, maintainability, and predictable service behavior.

What is the best way to validate input in a Node.js microservice?

Use Zod for input validation in your Node.js microservices. Applying Zod-based validation within Express controllers ensures strict data integrity, preventing malformed requests from reaching your core business logic or Prisma database layer.

How do I centralize error handling and integrate Sentry in an Express app?

Centralize error handling and integrate Sentry in an Express app by implementing a BaseController. This pattern manages consistent response formatting and built-in Sentry monitoring to track exceptions across your Node.js microservices.

How do I configure Prisma and dependency injection for testable services?

Configure Prisma through repository patterns and apply dependency injection (DI) to build testable service layers. This isolates database access, making your Node.js microservice components fully mockable and robust for testing.

Does this Node.js backend architecture support unified configuration management?

Yes, this Node.js backend architecture supports unified configuration management through the unifiedConfig pattern. This ensures safe configuration loading and built-in Sentry observability across your Express microservices without leaking sensitive data.

What are the limitations of applying strict layered architecture to existing Express routes?

Applying strict layered architecture to existing Express routes requires refactoring monolithic logic into Controllers, Services, and Repositories. This may introduce initial overhead but is necessary to achieve zero cross-layer leakage and long-term maintainability.