Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    Leavesfly

    api-design

    Leavesfly/api-design
    Coding
    199
    2 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    RESTful API design best practices and conventions guide

    SKILL.md

    API Design Skill

    This skill provides comprehensive guidance for designing RESTful APIs following industry best practices.

    Core Principles

    1. Resource-Oriented Design

    • Use nouns for resource names (e.g., /users, /products)
    • Avoid verbs in URLs
    • Use HTTP methods to represent actions

    2. HTTP Methods

    • GET: Retrieve resources
    • POST: Create new resources
    • PUT: Update entire resources
    • PATCH: Partial updates
    • DELETE: Remove resources

    3. URL Structure

    GET    /api/v1/users          - List all users
    GET    /api/v1/users/{id}     - Get specific user
    POST   /api/v1/users          - Create new user
    PUT    /api/v1/users/{id}     - Update user
    DELETE /api/v1/users/{id}     - Delete user
    

    4. Response Format

    • Use JSON as default format
    • Use camelCase for field names
    • Include metadata (pagination, timestamps)

    5. Error Handling

    {
      "error": {
        "code": "INVALID_REQUEST",
        "message": "User ID must be a positive integer",
        "details": []
      }
    }
    

    6. Status Codes

    • 200: Success
    • 201: Created
    • 400: Bad Request
    • 401: Unauthorized
    • 404: Not Found
    • 500: Internal Server Error

    Best Practices

    • Version your APIs
    • Use pagination for list endpoints
    • Implement rate limiting
    • Document with OpenAPI/Swagger
    Recommended Servers
    Vercel Grep
    Vercel Grep
    Astro Docs
    Astro Docs
    Ref
    Ref
    Repository
    leavesfly/jimi
    Files