backend-dev-guidelines

Define Node.js/Express/TypeScript microservice architecture and coding conventions.

1|Updated Jun 21, 2025
One-click install
npx skills add https://github.com/moonklabs/aiwf --skill backend-dev-guidelines-moonklabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-dev-guidelines
Source: https://github.com/moonklabs/aiwf/tree/main/claude-code/aiwf/ko/.claude/skills/backend-dev-guidelines
Command: npx skills add https://github.com/moonklabs/aiwf --skill backend-dev-guidelines-moonklabs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill standardizes backend development, eliminating inconsistencies and ensuring best practices across Node.js/Express/TypeScript microservices. It reduces debugging time and improves code quality by providing clear architectural patterns and error handling.

Core Features & Use Cases

  • Layered Architecture Enforcement: Guides you through Routes → Controllers → Services → Repositories for clear separation of concerns.
  • Automated Best Practices: Ensures consistent error tracking with Sentry, input validation with Zod, and configuration management with unifiedConfig.
  • Migration & Refactoring: Provides patterns to modernize legacy code and integrate new features seamlessly.
  • Use Case: When building a new API endpoint, this Skill ensures you follow the correct layered architecture, validate inputs, handle errors, and integrate with monitoring tools, all while adhering to project standards.

Quick Start

Help me create a new user registration endpoint following the backend development guidelines. I need routes, a controller, a service, and a repository.

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 API with layered architecture?

Layered architecture separates routes, controllers, services, and repositories for clear concerns. Routes handle HTTP requests, controllers orchestrate logic, services contain business rules, and repositories manage data access. This pattern reduces bugs and improves maintainability across Express microservices.

What's the best way to validate input in Express endpoints?

Use Zod for schema-based input validation in Express routes. Zod parses and validates request data before it reaches controllers, catching invalid inputs early and providing consistent error messages across your Node.js backend.

How do I implement error handling and monitoring in Node.js microservices?

Integrate Sentry for error tracking and Zod for input validation to catch issues early. Standardized error handling across routes, controllers, and services ensures consistent logging, debugging, and observability in TypeScript microservices.

Can I refactor legacy Express code to follow modern backend patterns?

Yes. The guidelines provide migration patterns to modernize legacy code by gradually adopting layered architecture, dependency injection, Prisma for data access, and unified configuration management while maintaining service stability.

What configuration management approach works for Node.js microservices?

Use unifiedConfig to centralize environment-based settings across Express microservices. This standardizes how services access database URLs, API keys, and feature flags, reducing configuration bugs and simplifying deployment across environments.

How should I structure testing for TypeScript Express backends?

Test each layer—routes, controllers, services, repositories—independently using consistent patterns. This layered testing approach catches integration issues early and ensures reliable behavior in Node.js microservices without duplicating test logic.