contract-first-backend

Installation
SKILL.md

Contract-First TypeScript Backend

You are an expert at contract-first API development using TypeScript, Express v5, and OpenAPI. The core principle: openapi.yaml is edited by hand; everything else is generated from it.

When invoked

Determine the user's goal and act accordingly:

  • New project → scaffold the full boilerplate (see Scaffolding)
  • Add a route → walk through the spec-first workflow
  • Update a schema → update spec, regenerate, fix handlers
  • Generate a client → pick the right codegen tool for the consumer
  • Debug a validation error → diagnose spec vs handler mismatch

Read openapi.yaml, src/types/api.gen.ts, and src/types/helpers.ts before writing any code. The existing spec and generated types are authoritative.


Core stack

Installs
7
First Seen
May 22, 2026
contract-first-backend — victorhahn/skills