Skip to content
Skill

Backend patterns

Guides an agent through Node.js and Express API design, data access and server patterns

Backend patterns is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
66
Last commit
License
MIT
Listing updated

Similar skills

About Backend patterns

This skill gives the agent a reference of server-side patterns for Node.js, Express and Next.js API routes. It covers REST endpoint layout with filtering and pagination, repository and service layers, middleware, and query work such as avoiding N+1 fetches, selecting only needed columns and batching lookups. It also includes examples for caching with Redis or cache-aside, centralized error handling, retries with exponential backoff, JWT checks and role-based permissions.

The guidance is delivered as TypeScript code samples that the agent can adapt to a project. The examples lean on Supabase client calls and Zod validation, so the agent will need to map them onto whatever database and validation libraries the codebase actually uses. The skill also covers simple in-memory rate limiting, a basic job queue, and structured JSON logging.

The skill is plain instructional content with no bundled scripts. It expects a Node.js project and works with the agent reading and writing code in that project.

When your agent uses it

Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes. Use when building or reviewing Node.js, Express, or Next.js API routes and their data access.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (14 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath

Or copy only this skill to ~/.claude/skills/backend-patterns:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/backend-patterns &&
cp -R "$tmp/.agents/skills/backend-patterns" ~/.claude/skills/backend-patterns &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/backend-patterns inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/backend-patterns to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/backend-patterns &&
cp -R "$tmp/.agents/skills/backend-patterns" ~/.agents/skills/backend-patterns &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/backend-patterns inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/backend-patterns to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/backend-patterns &&
cp -R "$tmp/.agents/skills/backend-patterns" ~/.cursor/skills/backend-patterns &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/backend-patterns inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/backend-patterns

Or copy the folder to ~/.gemini/skills/backend-patterns yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/backend-patterns:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/backend-patterns &&
cp -R "$tmp/.agents/skills/backend-patterns" ~/.copilot/skills/backend-patterns &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/backend-patterns inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git

Then copy REA_Skill/.agents/skills/backend-patterns into your agent's skills folder as backend-patterns. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

REST endpoint structure
Resource-based URL layout with filtering, sorting and pagination query parameters.
Repository and service layers
Separates data access from business logic using interfaces and service classes.
Database query optimization
Covers column selection, N+1 avoidance through batch fetching and transactions via stored functions.
Caching strategies
Shows a Redis caching repository and cache-aside lookups with invalidation.
Auth and permissions
JWT token validation and role-based access checks for route handlers.
Error handling and retries
Centralized API error responses and exponential backoff retry helpers.
Rate limiting and logging
In-memory request limits, a simple job queue and structured JSON logging.

Good for

  • Design a REST API for a resource with pagination and filtering
  • Find and fix N+1 queries in a data-fetching route
  • Add a Redis cache in front of a database lookup
  • Add JWT authentication and role checks to Next.js API routes
  • Standardize error responses across Express or Next.js endpoints

Backend patterns FAQ

Which frameworks does Backend patterns target?

It focuses on Node.js, Express and Next.js API routes, and its examples use TypeScript.

Does the skill run any scripts or install anything?

No scripts are included. It provides code patterns the agent can reference and adapt.

When does the skill activate?

It is meant for building or reviewing Node.js, Express or Next.js API routes and their data access.

How do I install Backend patterns in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/backend-patterns to use it in all your projects, or to .claude/skills/backend-patterns in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

Does Backend patterns run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Backend patterns?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Backend patterns?

The closest alternatives to Backend patterns are API design, API SDK generator, Django patterns, Error handling and Vue data.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from smartworldarafath/REA_Skill

  1. Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android

    • Open source
    • 66 GitHub stars
    • Developer tools
  2. Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity

    • Open source
    • 66 GitHub stars
    • Developer tools
  3. Compare coding agents head-to-head on your own tasks by pass rate, cost and time

    • Open source
    • 66 GitHub stars
    • Developer tools
  4. Guides an agent to design tool sets, observations and error recovery for better completion

    • Open source
    • 66 GitHub stars
    • Developer tools
  5. Lets an AI agent make x402 payments within per-task budgets and spending policies

    • Open source
    • 66 GitHub stars
    • Finance and payments