affaan-m avatar

Backend Patterns

A solid reference for structuring Node.js and Next.js backends with patterns you'll actually use. It covers the repository and service layer separation, middleware chains for auth and validation, N+1 query prevention with batch fetching, and Redis caching strategies. The examples are TypeScript throughout, which keeps things type-safe when you're wiring up Supabase queries or building API routes. Especially useful when you're past the prototype stage and need to organize business logic away from your data access layer, or when you're debugging why your API is suddenly slow and realize you're running 50 database queries in a loop.

skills.sh installs
7.2K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
Frontend Development, Backend & APIs, Code Review & Quality, Design & UI/UX, Databases
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1lijigang avatarljg-cardlijigang/ljg-skillsContent caster (铸). Transforms content into PNG visuals. Seven molds: -l (default) long reading card, -i infograph, -m multi-card reading cards (1080x1440), -v 7.1Kskills.sh installs
2starchild-ai-agent avatarorderly-onboardingstarchild-ai-agent/official-skillsOrderly Network onboarding: omnichain perps infra, MCP server, SDK and CLI quickstart. Also indexes executed Orderly fills into Starchild trade analytics. Use w7.1Kskills.sh installs
3openai avatarfigma-implement-designopenai/skillsTranslates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions "im7Kskills.sh installs
4anthropics avatararchitectureanthropics/knowledge-work-pluginsCreate or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-7Kskills.sh installs
5pixijs avatarpixijs-mathpixijs/pixijs-skillsUse this skill when working with coordinates, vectors, matrices, shapes, hit testing, or layout rectangles in PixiJS v8. Covers Point/ObservablePoint, Matrix (26.9Kskills.sh installs
6wshobson avatarblock-no-verify-hookwshobson/agentsConfigure a PreToolUse hook to prevent AI agents from skipping git pre-commit hooks with --no-verify and other bypass flags. Use when setting up Claude Code pro6.9Kskills.sh installs