backend-dev-guidelines

Consolidate Node.js/Express/TypeScript backend patterns with layered architecture and Prisma.

1|1|Updated Sep 22, 2025
One-click install
npx skills add https://github.com/SkogAI/skillsandknowledge --skill backend-dev-guidelines-skogai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-dev-guidelines
Source: https://github.com/SkogAI/skillsandknowledge/tree/main/.skogix/infrastructure/.claude/skills/backend-dev-guidelines
Command: npx skills add https://github.com/SkogAI/skillsandknowledge --skill backend-dev-guidelines-skogai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive, opinionated blueprint for building reliable Node.js/Express/TypeScript backends, ensuring consistent architecture, patterns, and quality across microservices.

Core Features & Use Cases

  • Layered architecture guidance: routes → controllers → services → repositories with clear responsibilities.
  • BaseController pattern & error handling: standardizes responses, Sentry integration, and testing strategies.
  • Quality pillars: unifiedConfig usage, dependency injection, Prisma data access patterns, input validation with Zod, and performance monitoring.
  • Migration guidance: helps teams migrate from legacy patterns to modern, testable structures.

Quick Start

Start applying these guidelines when creating a new backend service or refactoring existing codebase to align with the standardized patterns.

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 scalable Node.js Express backend with TypeScript?

Structure a scalable Node.js Express backend using layered architecture: routes delegate to controllers, controllers handle HTTP concerns, services contain business logic, and repositories manage data access. This separation enforces clear responsibilities and testability across microservices.

What's the best way to standardize error handling and API responses in Express?

Standardize Express API responses using a BaseController pattern that enforces consistent HTTP response structures and integrates centralized error handling with Sentry for performance monitoring and automated exception tracking across all endpoints.

How do I validate input and manage type-safe configuration in a Node.js backend?

Validate input using Zod schemas and manage type-safe configuration through a unifiedConfig utility. This enforces runtime type checking and environment variable validation, preventing invalid data from entering your Node.js backend services.

Does this backend architecture pattern support Prisma ORM for data access?

Yes, the architecture pattern supports Prisma ORM for data access by standardizing repository implementations. Prisma queries are encapsulated within the repository layer, keeping database logic isolated from business services and ensuring consistent data access patterns.

Can I migrate legacy Node.js codebases to these structured backend patterns?

Yes, you can migrate legacy Node.js codebases to these structured patterns using the provided migration guidance. It helps refactor existing codebases into modern, testable structures with dependency injection, layered architecture, and standardized testing strategies.

What testing strategies work with layered Node.js Express backend architectures?

Layered Node.js Express architectures enable isolated unit testing of services, controllers, and repositories using dependency injection. This separation allows mocking data access and business logic independently, ensuring comprehensive test coverage without external dependencies.