backend-dev-guidelines

Guide Node.js/Express/TypeScript backend development with layered architecture and error handling.

1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/samChang72/custom-skills --skill backend-dev-guidelines-samchang72
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-dev-guidelines
Source: https://github.com/samChang72/custom-skills/tree/main/gemini/skills/backend-dev-guidelines
Command: npx skills add https://github.com/samChang72/custom-skills --skill backend-dev-guidelines-samchang72

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to best practices for building robust, maintainable, and efficient Node.js/Express/TypeScript backend microservices.

Core Features & Use Cases

  • Layered Architecture: Defines a clear separation of concerns through a four-layer architecture (routes, controllers, services, repositories).
  • Best Practices: Outlines best practices for routing, controllers, services, repositories, and middleware.
  • Error Handling: Details robust error handling strategies, including Sentry integration.
  • Testing: Covers testing strategies for services and controllers.
  • Use Case: Ideal for developers looking to build scalable and maintainable Node.js/Express/TypeScript applications, especially for microservices.

Quick Start

Run the 'backend-dev-guidelines' skill to get started with building a robust Node.js/Express/TypeScript microservice.

Frequently Asked Questions about backend-dev-guidelines

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

FAQPage Schema
What is the best way to structure a Node.js Express TypeScript backend?

To structure a Node.js Express TypeScript backend, use a four-layer architecture separating routes, controllers, services, and repositories. This approach ensures clear separation of concerns for maintainable microservices.

How do I implement error handling in a Node.js microservice?

Implement error handling in a Node.js microservice by applying robust strategies across all architectural layers. This includes integrating Sentry for tracking errors and ensuring controllers and services properly propagate exceptions.

How do I set up testing for Node.js Express controllers and services?

Set up testing for Node.js Express controllers and services by applying targeted testing strategies to each layer. Validate service business logic and controller routing behavior independently to ensure backend reliability.

Can I use this backend development approach for scalable microservices?

Yes, you can use this approach for scalable microservices. The Node.js Express TypeScript guidelines emphasize a maintainable layered architecture, robust error handling, and clear separation of concerns ideal for microservice environments.

Do I need a pre-configured Node.js environment to apply these backend guidelines?

Yes, you need a pre-configured Node.js, Express, and TypeScript environment. These backend development guidelines require an existing setup to implement the architectural patterns, routing, and error handling strategies effectively.