
Backend Patterns for Node.js APIs
Guides the agent to write and review Node.js, Express, and Next.js API code using standard backend patterns.
- Repository
- affaan-m/ECC
- Stars
- 295,127
- Licence
- MIT
- Files
- 2 files
What it does
When installed, the agent gets a reference guide of backend best practices for Node.js, Express, and Next.js API routes. When you ask it to design an endpoint, organise code into repository, service, and controller layers, speed up database queries, add caching, or write auth middleware and error handling, it follows the patterns in this guide, such as RESTful URL design, avoiding N+1 queries, selecting only needed columns, Redis cache-aside, and centralised error handling. The skill is instructional text with code examples; it does not itself run anything.
Great for
- Developers building or reviewing REST APIs in Node.js, Express, or Next.js API routes
- Teams that want consistent layering (repository, service, middleware) across a backend
- Developers who use Supabase or Redis and want example query and caching code
Skip it if
- Non-programmers or anyone building a backend in another language or framework, since the examples are TypeScript for Node-based stacks
- Production systems where the examples are copied without review: they are illustrative, and some snippets are incomplete (e.g. a placeholder vector search method, a Supabase function that uses a rollback comment that may not behave as described)
Try asking
- “Review my Express route handlers for N+1 queries and missing error handling”
- “Design REST endpoints for a markets resource with filtering and pagination”
- “Add a Redis cache-aside layer to my user lookup repository”
- “Write auth middleware for my Next.js API routes that validates a Bearer token”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 2 original files, the MIT licence and an attribution note.
backend-patterns.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip backend-patterns.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip backend-patterns.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Name your framework and database up front (for example, Express with PostgreSQL) so the agent adapts the examples rather than copying them literally
- Ask the agent to review your existing code against the patterns instead of only generating new code, and check its output with your own tests
- Treat the SQL and caching snippets as starting points and confirm transaction and cache-invalidation behaviour against your database documentation
What's inside
- agents/openai.yaml
- SKILL.md
Redistributed unmodified from affaan-m/ECC under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.