Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
davincidreams avatar

Api Design

  • 11 installs
  • 17 repo stars
  • Updated February 16, 2026
  • davincidreams/agent-team-plugins

API design guidelines covering REST conventions, HTTP methods and status codes, consistent response shapes, and error formats.

About

Provides REST API conventions including resource naming, HTTP methods, status codes, and consistent data/error/meta response shapes. A developer uses it when designing or reviewing REST endpoints.

  • REST conventions: plural nouns, nested resources, status codes
  • Consistent {data, error, meta} response and error shapes

Api Design by the numbers

  • 11 all-time installs (skills.sh)
  • Ranked #3,574 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Jul 30, 2026 (Skillselion catalog sync)
npx skills add https://github.com/davincidreams/agent-team-plugins --skill api-design

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs11
repo stars17
Last updatedFebruary 16, 2026
Repositorydavincidreams/agent-team-plugins

What it does

API design guidelines covering REST conventions, HTTP methods and status codes, consistent response shapes, and error formats.

Files

SKILL.mdMarkdownGitHub ↗

API Design Guidelines

REST Conventions

  • Use plural nouns for resources: /users, /posts, /comments
  • Use HTTP methods correctly: GET (read), POST (create), PUT (replace), PATCH (update), DELETE (remove)
  • Nest sub-resources: /users/:id/posts
  • Use query params for filtering: /posts?status=published&author=123
  • Return proper status codes: 200, 201, 204, 400, 401, 403, 404, 409, 422, 500

Response Shape

{
  "data": {},
  "error": null,
  "meta": { "page": 1, "total": 42 }
}

Error Response

{
  "data": null,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Human-readable message",
    "details": [{ "field": "email", "message": "Invalid format" }]
  }
}

Input Validation

  • Validate all input at the API boundary
  • Return 422 with field-level error details for validation failures
  • Sanitize strings to prevent injection
  • Enforce size limits on all inputs

Authentication

  • Use the project's existing auth mechanism
  • Apply auth middleware at the router level
  • Return 401 for missing/invalid credentials
  • Return 403 for insufficient permissions

Versioning

  • Follow the project's existing versioning strategy
  • If none exists, prefer URL path versioning: /api/v1/resource

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.