Skip to content
affaan-m avatar

Backend Patterns

Backend architecture patterns covering API design, repositories, caching, and error handling for Node.js, Express, and Next.js routes.

CCM score
66 of 100
skills.sh installs
17.8K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers REST endpoint structure, repository and service layers, middleware pipelines, and database query optimization
  • Includes code patterns for N+1 prevention with batch fetching, transactions via Supabase RPC, and cache-aside with Redis
  • Provides a centralized error handler mapping custom API errors and Zod validation failures to consistent JSON responses
  • Designed for teams building or reviewing server-side API routes and their data access layers

Install

$ npx -y skills add affaan-m/ecc --skill backend-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Backend Development Patterns

Backend architecture patterns and best practices for scalable server-side applications.

When to Activate

  • Designing REST or GraphQL API endpoints
  • Implementing repository, service, or controller layers
  • Optimizing database queries (N+1, indexing, connection pooling)
  • Adding caching (Redis, in-memory, HTTP cache headers)
  • Setting up background jobs or async processing
  • Structuring error handling and validation for APIs
  • Building middleware (auth, logging, rate limiting)

API Design Patterns

RESTful API Structure

// PASS: Resource-based URLs
GET    /api/markets                 # List resources
GET    /api/markets/:id             # Get single resource
POST   /api/markets                 # Create resource
PUT    /api/markets/:id             # Replace resource
PATCH  /api/markets/:id             # Update resource
DELETE /api/markets/:id             # Delete resource

// PASS: Query parameters for filtering, sorting, pagination
GET /api/markets?status=active&sort=volume&limit=20&offset=0

Repository Pattern

Details

Repository
github.com/affaan-m/ecc
Categories
Backend & APIs, Databases
First seen
Jul 14, 2026

Questions

What does the backend-patterns skill cover?

The backend-patterns skill covers backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes. It guides repository and service layers, query optimization, caching, error handling, and middleware.

Who is the backend-patterns skill for?

It is for developers building or reviewing Node.js, Express, or Next.js API routes and their data access. It fits work on REST or GraphQL endpoints, background jobs, and API validation.

How do I install the backend-patterns skill?

Run npx -y skills add affaan-m/ecc --skill backend-patterns -y in your project. The skill then lets the agent apply these backend patterns when you build or review API routes.

Where does backend-patterns rank in its category?

It sits in the Backend & APIs category on Claude Marketplaces, where it ranks in the top 100. Other skills in that category include neon and firebase-basics.

More from affaan-m/ecc

All 257

Similar to Backend Patterns

More Backend & APIs