api-designer

Design API contracts and generate OpenAPI specifications for Next.js backends.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/artsmc/codex-agentic --skill api-designer-artsmc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-designer
Source: https://github.com/artsmc/codex-agentic/tree/main/skills/api-designer
Command: npx skills add https://github.com/artsmc/codex-agentic --skill api-designer-artsmc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Contract-first API design to prevent misalignment between business requirements and implementation, delivering clear API contracts and architecture guidance before any code is written.

Core Features & Use Cases

  • Contract-first API design: generate robust OpenAPI specifications from architectural decisions.
  • Three-tier weaver: define route, service, and external layers for Next.js backends.
  • Documentation-driven handoffs: produce artifacts that enable downstream developers to implement with precision.

Quick Start

Read the Documentation Hub to start planning your API contracts.

Frequently Asked Questions about api-designer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design API contracts before writing backend code?

Designing API contracts before implementation requires generating OpenAPI specifications and TypeScript types from architectural decisions. This approach ensures robust, well-documented interfaces that prevent misalignment between business requirements and actual code.

What is contract-first API design and when do I need it?

Contract-first API design is the process of defining OpenAPI specifications and interface types before any code is written. You need it to prevent misalignment between business requirements and implementation, ensuring clear API contracts guide downstream development.

How do I structure a Next.js backend using a three-tier architecture?

Structuring a Next.js backend with three-tier architecture involves defining distinct route, service, and external layers. This separation generates clear architecture guidance and design plans, ensuring robust backend interfaces before implementation begins.

Do I need existing project documentation to generate OpenAPI specifications?

Generating OpenAPI specifications requires reading existing project documentation like systemArchitecture.md, openapi.yaml, techStack.md, glossary.md, and keyPairResponsibility.md. These files from the Documentation Hub provide the architectural context needed for accurate API design.

Can I use this for existing Next.js backends or is it only for new projects?

This contract-first API design process works best when planning interfaces before implementation. While it reads existing project documentation to generate OpenAPI outlines and TypeScript types, its core focus is delivering design plans for robust, well-documented new API contracts.

What artifacts does contract-first API design produce for downstream developers?

Contract-first API design produces OpenAPI outlines, TypeScript types, design plans, and implementation notes. These documentation-driven artifacts enable downstream developers to implement Next.js backends with precision based on predefined architectural decisions.