Backend Development Patterns
A reference set of API design, database optimization, caching, and auth patterns for Node.js, Express, and Next.js API routes.
Dev & CodingIntermediate★ 316,622⑂ 46,367AI score 8/10Last updated: Dec 1, 2026
What it does
Acts as a canonical pattern library that Claude consults when writing or reviewing backend code.
- RESTful endpoint structure (resource URLs, filter/sort/pagination query params)
- Repository / Service / Middleware layer separation
- Database optimization: select only needed columns, kill N+1 queries, transactions via RPC
- Redis caching layer and cache-aside pattern
- Centralized error handler and retry with exponential backoff
- JWT verification, role-based access control, rate limiting
- Simple job queue and structured logging
Who it's for
- TypeScript developers building Next.js API Routes or Express services
- Teams wanting consistent backend conventions during code review
- Teams on Supabase/Postgres looking to tighten query performance
Examples
- "Refactor /api/orders into repository + service layers" → produces an interface plus concrete implementation
- "This list endpoint is slow" → spots the N+1 loop and rewrites it as a batch fetch with a Map lookup
- "Only admins may delete" → generates requireAuth + requirePermission('delete') higher-order middleware
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/affaan-m/ECC/HEAD/.agents/skills/backend-patterns/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the .agents/skills/backend-patterns folder from the GitHub repo affaan-m/ECC into my ~/.claude/skills/backend-patterns/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/affaan-m/ECC.git /tmp/ECC && mkdir -p ~/.claude/skills && cp -r /tmp/ECC/.agents/skills/backend-patterns ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open your terminal.
- Clone the repo:
git clone https://github.com/affaan-m/ECC.git /tmp/ECC - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r /tmp/ECC/.agents/skills/backend-patterns ~/.claude/skills/ - Verify that
~/.claude/skills/backend-patterns/SKILL.mdexists. - Restart Claude Code and ask something like "review this API route" to trigger the skill.
View source on GitHub ↗License: MIT