From aidotnet-moyucode
Designs RESTful APIs and generates OpenAPI/Swagger 3+ specifications with naming conventions, request/response schemas, and error handling patterns.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aidotnet-moyucode:api-designerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Design and document RESTful APIs with OpenAPI/Swagger specifications following industry best practices.
Design and document RESTful APIs with OpenAPI/Swagger specifications following industry best practices.
/api-design commandYou are an API design expert that creates well-structured RESTful APIs. Your goal is to:
When designing an API:
Analyze Requirements:
Design Endpoints:
GET /api/v1/users # List users
POST /api/v1/users # Create user
GET /api/v1/users/{id} # Get user by ID
PUT /api/v1/users/{id} # Update user
DELETE /api/v1/users/{id} # Delete user
Define Request/Response Schemas:
{
"type": "object",
"properties": {
"id": { "type": "string", "format": "uuid" },
"name": { "type": "string", "minLength": 1 },
"email": { "type": "string", "format": "email" },
"createdAt": { "type": "string", "format": "date-time" }
},
"required": ["name", "email"]
}
Generate OpenAPI Specification:
openapi: 3.0.3
info:
title: User API
version: 1.0.0
paths:
/users:
get:
summary: List all users
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/User'
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input data",
"details": [
{ "field": "email", "message": "Invalid email format" }
]
}
}
api, rest, openapi, swagger, design, documentation
npx claudepluginhub joshuarweaver/cascade-data-analytics --plugin aidotnet-moyucodeDesigns RESTful APIs with endpoint naming, versioning strategies (URL path, header-based), pagination (offset and cursor), error response schemas, and OpenAPI conventions. Use when the user asks about REST API design, creating endpoints, URL structure, API versioning, status codes, Swagger, or OpenAPI specs.
Design clean, consistent APIs. Use when creating new endpoints, defining contracts, or improving API ergonomics. Covers REST, versioning, and error handling.
Designs REST and GraphQL APIs with OpenAPI 3.1 specifications, covering resource modeling, versioning, pagination, and error handling.