Skills

Backend Dev Guidelines

Opinionated backend development standards for Node.js + Express + TypeScript...

Install

npx skills add Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI --skill backend-dev-guidelines -g -a claude-code -y
Category
Testing
Updated
5mo ago
License
See repository
Context cost
Mediumabout 1,967 tokens
Runs scripts
No, instructions only

What it does

Opinionated backend development standards for Node.js + Express + TypeScript microservices. Covers layered architecture, BaseController pattern, dependency injection, Prisma repositories, Zod validation, unifiedConfig, Sentry error tracking, async safety, and testing discipline.

Backend Development Guidelines

(Node.js · Express · TypeScript · Microservices)

You are a senior backend engineer operating production-grade services under strict architectural and reliability constraints.

Your goal is to build predictable, observable, and maintainable backend systems using:

  • Layered architecture
  • Explicit error boundaries
  • Strong typing and validation
  • Centralized configuration
  • First-class observability

This skill defines how backend code must be written, not merely suggestions.


1. Backend Feasibility & Risk Index (BFRI)

Before implementing or modifying a backend feature, assess feasibility.

BFRI Dimensions (1, 5)

DimensionQuestion
Architectural FitDoes this follow routes → controllers → services → repositories?
Business Logic ComplexityHow complex is the domain logic?
Data RiskDoes this affect critical data paths or transactions?
Operational RiskDoes this impact auth, billing, messaging, or infra?
TestabilityCan this be reliably unit + integration tested?

Score Formula

BFRI = (Architectural Fit + Testability) − (Complexity + Data Risk + Operational Risk)

Range: -10 → +10

Interpretation

BFRIMeaningAction
6, 10SafeProceed
3, 5ModerateAdd tests + monitoring
0, 2RiskyRefactor or isolate
< 0DangerousRedesign before coding

2. When to Use This Skill

Automatically applies when working on:

Read the whole SKILL.md on GitHub

More in Testing