Generate OpenAPI, AsyncAPI, or Protobuf contract from requirements. Use for contract-first API development.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install formal-specification@melodic-software<api-description> [--format <openapi|asyncapi|protobuf>] [--version <x.y.z>]# /api-contract Command Generate contract-first API specifications from requirements or domain descriptions. ## Usage ## Workflow ### Step 1: Analyze Requirements Parse the API description to identify: - Domain entities and resources - Required operations (CRUD, queries, commands) - Communication pattern (sync REST, async events, RPC) - Key consumers and use cases ### Step 2: Select Contract Format If format not specified, auto-detect based on description: | Pattern | Recommended Format | |---------|-------------------| | "API", "REST", "endpoint" | OpenAPI 3.1 | | "events", "mes...