api-designer

Installation
SKILL.md

api-designer {Architecture} (v1.0)

"An API is a contract. Design it before you code it."

Purpose

Designs REST or GraphQL APIs implemented as Firebase Cloud Functions HTTP triggers. Produces OpenAPI specs, defines versioning, and establishes rate limiting patterns. [EXPLICIT] When to use:

  • Designing Cloud Functions HTTP endpoints
  • Creating API contracts before implementation

Core Principles

  1. Law of Contract-First: OpenAPI/GraphQL schema BEFORE code. No coding without a spec. [EXPLICIT]
  2. Law of Versioning: URL-based versioning (/v1/, /v2/). Never break existing consumers. [EXPLICIT]
  3. Law of Functions: Each endpoint = one Cloud Function. Shared middleware via middleware chain. [EXPLICIT]

Core Process

Phase 1: Design

  1. Map FR-XXX to endpoints (CRUD operations). [EXPLICIT]
  2. Define request/response schemas. [EXPLICIT]
  3. Design auth middleware (Firebase ID token verification). [EXPLICIT]

Phase 2: Document

  1. Generate OpenAPI 3.0 spec or GraphQL schema. [EXPLICIT]
  2. Define error response format (code, message, details). [EXPLICIT]
  3. Document rate limiting strategy. [EXPLICIT]
Installs
1
GitHub Stars
2
First Seen
May 31, 2026