skills/sirn/dotfiles/code-design-api

code-design-api

SKILL.md

Design API contracts, schemas, and specifications before implementation.

Process

  1. Identify context:

    • Protocol: REST, GraphQL, gRPC, TRPC
    • Format: OpenAPI/Swagger, Protocol Buffers, Zod/TypeBox schemas
  2. Research and design:

    • Lookup best practices for the protocol (use WebSearch/WebFetch)
    • Design the API resources, endpoints, and data shapes
    • Consider versioning, pagination, error handling patterns
  3. Output the design:

    • Endpoints/Operations: Method, Path, Name
    • Request Schema: input validation rules
    • Response Schema: Success/Error shapes
    • Examples: JSON/Text payloads

Output

  1. API Specification (OpenAPI YAML, Proto file, or Interface code)
  2. Usage Example (curl or client code)
  3. Design Rationale (RESTfulness, Breaking changes avoidance)
Weekly Installs
11
Repository
sirn/dotfiles
GitHub Stars
8
First Seen
12 days ago
Installed on
github-copilot11
codex11
kimi-cli11
gemini-cli11
amp11
cline11