backend-patterns
A reference skill from the ECC collection with server-side patterns for Express apps, Next.js API routes and other Node.js backends.
What the skill teaches
A reference skill from the ECC collection with server-side patterns for Express apps, Next.js API routes and other Node.js backends. It shows code for the repository, service and middleware layers, selecting only needed columns, avoiding repeated per-item queries, and wrapping several writes in one database function. Further sections cover a Redis cache layer and the cache-aside pattern, a central error handler, retries with exponential backoff, JWT checks and role-based permissions, a simple in-memory rate limiter and job queue, and structured JSON logging with request IDs. The examples use Supabase and Redis, and it reminds the reader to match the pattern to the size of the application.
Capabilities
- Structure backend code into repository, service and middleware layers
- Add Redis caching and cache invalidation
- Handle errors centrally and retry with backoff
- Check JWTs and enforce role-based permissions
About
- Publisher
- affaan-m
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
What's inside
- agents/openai.yaml
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Not stated in its documentation | |
| Publisher | affaan-m | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MIT | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 9, 2026300,529 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
Copies of this skill in other repositories (4)
These differ from this skill's text. They may be adapted copies or older versions.
- backend-patternsgongyijie85/dsh-ecc
- backend-patternsuserinner/skills
- backend-patternsmdnaimul22/human-skills
- backend-patternsronnasayd/aipp
More from affaan-m
27 skills
- brand-discovery (Skill)
- brand-voice (Skill)
- context-and-decisions (Skill)
- docs-governance (Skill)
- eval-harness (Skill)
- e2e-testing (Skill)
Sources
- Skill file (SKILL.md)github.com/affaan-m/ecc · Backs: Licence, Includes scriptsNov 15, 2026
- GitHub repositorygithub.com/affaan-m/ecc · Backs: Publisher, Activity, LicenceNov 10, 2026
- Skill file (SKILL.md)github.com/affaan-m/ECCNov 10, 2026
- Folder in the repository (backend-patterns)github.com/affaan-m/ECC · Backs: Includes scriptsNov 10, 2026