backend-dev-guidelines

Enforce layered architecture and error handling patterns in Node.js/TypeScript Express projects.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guideline suite provides a structured approach to building backend code by enforcing architecture and quality standards to reduce bugs and maintenance costs.

Core Features & Use Cases

  • Enforce mandatory patterns such as layered architecture, BaseController, Zod validation, Sentry error tracking, and unifiedConfig.
  • Forbid anti-patterns like business logic in routes, direct process.env usage, and missing error handling.
  • Provide a reusable blueprint for accelerating backend development and improving maintainability.

Quick Start

Audit your backend codebase against the mandated patterns and refactor routes, controllers, services, and repositories to align with the guidelines.

Frequently Asked Questions about backend-dev-guidelines

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

FAQPage Schema
How do I enforce layered architecture in my Express backend?

Enforce layered architecture in Express by separating routes, controllers, services, and repositories. This approach mandates BaseController inheritance and Zod validation to ensure consistent structure, error handling, and reduced maintenance costs across Node.js codebases.

Why should I use Zod validation in a Node.js backend?

Use Zod validation in a Node.js backend to enforce robust data checking at the controller layer. It satisfies mandatory backend patterns by preventing invalid payloads from reaching your services, reducing bugs and ensuring consistent error handling.

How do I integrate Sentry error tracking with a BaseController pattern?

Integrate Sentry error tracking with a BaseController pattern by routing all exceptions through a centralized handler. This forbids missing error handling anti-patterns and ensures all backend failures are automatically captured for robust tracking.

What is the best way to stop using direct process.env usage in backend code?

Stop direct process.env usage by implementing a unifiedConfig pattern. This approach forbids scattered environment variable access across your Node.js application, replacing it with a centralized configuration to reduce bugs and maintenance costs.

How do I audit my backend codebase for anti-patterns like business logic in routes?

Audit your backend codebase by checking routes for business logic, direct process.env usage, and missing error handling. Refactor these against mandated patterns like layered architecture, BaseController, and Zod validation to improve maintainability.

Can I use these backend guidelines with a plain JavaScript Express project?

These backend guidelines apply specifically to Node.js/TypeScript projects using Express. They enforce strict patterns like Zod validation and BaseController, ensuring robust architecture and reducing maintenance costs in typed environments.