AgentSkillsCN

api-design

设计或评审 API 端点(REST/GraphQL)

SKILL.md
--- frontmatter
name: api-design
description: Design or review API endpoints (REST/GraphQL)
model: sonnet
context: fork
agent: api-designer

Design or review the API for: $ARGUMENTS

Steps:

  1. Gather requirements from the codebase and any existing API patterns
  2. Design endpoints following REST conventions (or GraphQL schema)
  3. Define request/response schemas with types
  4. Document error responses and status codes
  5. Write or update OpenAPI spec if applicable