Skip to content
AI & Agents
Skill

/api-design

RESTful API design best practices and conventions guide

From plugin
jimi
2389 skills2 agents

Claude Code

$ npx -y skills add leavesfly/jimi --skill api-design --agent claude-code

SKILL.md

api-design.SKILL.md
name: api-design
description: RESTful API design best practices and conventions guide

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
@leavesfly
Ships withjimi

纯 Java 实现的 AI 编程助手,CLI 与 JavaFX Desktop 共用同一入口与运行时

2389 skills2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
238
Star history of leavesfly/jimi on GitHub, a chart by star-history.com

Other skills on jimi.

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw2w393k
@openclaw@openclawInstall Skill

Questions about api-design.

Which coding agents can use api-design?
api-design installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.