backend-patterns

Prescribe Node.js, Express, and Next.js API patterns for REST and GraphQL endpoints.

70|42|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/tranhieutt/software_development_department --skill backend-patterns-tranhieutt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-patterns
Source: https://github.com/tranhieutt/software_development_department/tree/main/.claude/skills/backend-patterns
Command: npx skills add https://github.com/tranhieutt/software_development_department --skill backend-patterns-tranhieutt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill condenses backend architecture patterns so Node.js, Express, and Next.js teams avoid inconsistent layers, inefficient database access, and fragile async workflows.

Core Features & Use Cases

  • Architecture Blueprints: Outlines repository, service, middleware, and controller layering for REST or GraphQL endpoints and shared infrastructure.
  • Database & Caching Playbook: Highlights query optimization, transaction safety, N+1 prevention, Redis caching, and cache-aside strategies.
  • Reliability Covers: Centralized error handling, retry/backoff, JWT auth, RBAC, rate limiting, background job queues, and structured logging to support production-grade services.

Quick Start

Use the backend-patterns skill to review and refine my Node.js API routes, service layers, and persistence logic for scalability.

Frequently Asked Questions about backend-patterns

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

FAQPage Schema
How do I structure Node.js Express repository and service layers for REST APIs?

Structure Node.js Express repository and service layers by separating data access from business logic to ensure consistent backend architecture. This pattern prescribes middleware wiring, controller layering, and shared infrastructure for scalable REST or GraphQL endpoints.

What's the best way to implement Redis caching and prevent N+1 queries in Node.js?

Implement Redis caching and prevent N+1 queries by applying cache-aside strategies and query optimization techniques. This approach ensures transaction safety and efficient database access within your Node.js persistence layers.

How does centralized error handling and rate limiting work in Next.js API routes?

Centralized error handling and rate limiting in Next.js API routes work through prescribed middleware wiring patterns. They enforce authentication, RBAC, and structured logging to support production-grade reliability and request throttling.

Can I use these backend patterns for background job queues and async processing?

Yes, you can use these backend patterns for background job queues and async processing. They prescribe retry/backoff strategies and structured job queue formations to ensure fragile async workflows meet production reliability needs.

Do I need JWT authentication and RBAC to scale Node.js API endpoints?

You need JWT authentication and RBAC to scale Node.js API endpoints securely. These patterns prescribe access control and middleware wiring to ensure your REST or GraphQL services meet production-grade security standards.