backend-patterns

Provide backend patterns for Node.js/Express/Next.js RESTful APIs.

1|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/Ying-Kai-Liao/TouchStone --skill backend-patterns-ying-kai-liao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-patterns
Source: https://github.com/Ying-Kai-Liao/TouchStone/tree/main/.claude/skills/backend-patterns
Command: npx skills add https://github.com/Ying-Kai-Liao/TouchStone --skill backend-patterns-ying-kai-liao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Backend teams often wrestle with building scalable, maintainable server-side solutions. This collection provides proven patterns for API design, data access, caching, error handling, authentication, and observability to guide architecture decisions and implementation.

Core Features & Use Cases

  • RESTful API Design: Establish consistent resource-oriented routes and versioning.
  • Repository & Service Layers: Separate data access from business logic for testability and maintainability.
  • Caching, Auth, & Middleware: Integrate caching strategies, JWT-based auth, and request processing pipelines to improve performance and security.
  • Patterns for Reliability: Includes error handling, rate limiting, retries, and background jobs for robust production systems.

Quick Start

Start by scaffolding a Node.js backend and applying RESTful API design, repository/service layering, and caching patterns described here to your project.

Frequently Asked Questions about backend-patterns

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

FAQPage Schema
How do I structure a scalable RESTful API in Node.js and Express?

To structure a scalable RESTful API in Node.js, establish consistent resource-oriented routes, apply versioning, and separate data access from business logic using repository and service layers. This separation improves testability and maintainability across Express backend projects.

What is the best way to implement JWT authentication and RBAC in an Express backend?

Implement JWT authentication and RBAC by integrating them into your request processing pipelines as middleware. This pattern secures endpoints by validating tokens and enforcing role-based access control before reaching the service layer in your Node.js application.

How do I handle caching and rate limiting for a Node.js API?

Handle caching and rate limiting by applying specific patterns within your middleware pipeline. Implement caching strategies to improve performance and apply rate limiting to control request traffic, ensuring robust production systems for your Express API.

Does this backend pattern collection work with Next.js API projects?

Yes, these backend patterns apply to Node.js, Express, and Next.js API projects. They provide structured guidance for RESTful routes, repositories, services, caching, auth, and observability that integrate directly into Next.js server-side API implementations.

What patterns improve reliability for background jobs and error handling in Node.js?

Reliability patterns for background jobs and error handling include implementing retries for transient failures and structured logging for observability. These patterns ensure robust production systems by managing errors and asynchronous tasks effectively in your backend.