New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Backend API, database, and caching patterns with test-driven development guidance for designing server systems.

skills.sh installs
875
GitHub stars
1.2K
last updated
May 5, 2026
View on GitHub

What it does

  • Covers RESTful routing, response and error formats, database schema and query patterns, JWT authentication, and rate limiting
  • Includes SQL schema examples with UUID public IDs, soft deletes, cursor pagination, and cache-aside with invalidation on update
  • Provides TypeScript middleware for bearer token checks that returns 401 for missing or invalid tokens
  • Designed for teams building or reviewing backend services that need consistent API conventions and observability through structured logs, metrics, tracing, and health endpoints

Install

$ npx -y skills add moizibnyousaf/ai-agent-skills --skill backend-development -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Backend Development

API Design

RESTful Conventions

GET    /users          # List users
POST   /users          # Create user
GET    /users/:id      # Get user
PUT    /users/:id      # Update user (full)
PATCH  /users/:id      # Update user (partial)
DELETE /users/:id      # Delete user

GET    /users/:id/posts  # List user's posts
POST   /users/:id/posts  # Create post for user

Response Format

{
  "data": { ... },
  "meta": {
    "page": 1,
    "per_page": 20,
    "total": 100
  }
}

Error Format

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid input",
    "details": [
      { "field": "email", "message": "Invalid format" }
    ]
  }
}

Database Patterns

Schema Design

-- Use UUIDs for public IDs
CREATE TABLE users (
  id SERIAL PRIMARY KEY,
  public_id UUID DEFAULT gen_random_uuid() UNIQUE,
  email VARCHAR(255) UNIQUE NOT NULL,
  created_at TIMESTAMPTZ DEFAULT NOW(),
  updated_at TIMESTAMPTZ DEFAULT NOW()
);

-- Soft deletes
ALTER TABLE users ADD COLUMN deleted_at TIMESTAMPTZ;

Details

Repository
github.com/moizibnyousaf/ai-agent-skills
Categories
Backend & APIs, Testing & QA, Databases
License
MIT
First seen
Jun 11, 2026

More from moizibnyousaf/ai-agent-skills

All 17

Similar to Backend Development

More Backend & APIs