api-development

Guide API First versus Code First decisions and validate OpenAPI specifications.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/yaochangyu/ai-dev-toolkit --skill api-development-yaochangyu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-development
Source: https://github.com/yaochangyu/ai-dev-toolkit/tree/main/.github/skills/api-development
Command: npx skills add https://github.com/yaochangyu/ai-dev-toolkit --skill api-development-yaochangyu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This skill guides developers through API development workflows, helping choose between API First and Code First approaches, and providing automation for OpenAPI spec management and code generation.

Core Features & Use Cases

  • API workflow decision support: guidance on when to use API First versus Code First based on project needs.
  • OpenAPI specification management: check, edit, and validate doc/openapi.yml, and offer templates and validation.
  • Code generation automation: generate server controllers and client SDKs, plus templates for controller implementations.
  • On-demand references and samples: access to templates and workflow examples.

Quick Start

Use the api-development skill to initiate an API endpoint design and auto-generate server scaffolding.

Frequently Asked Questions about api-development

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

FAQPage Schema
How do I generate server controllers and client SDKs from an OpenAPI specification?

To generate server controllers and client SDKs from an OpenAPI specification, this skill automates code generation using validated OpenAPI definitions, providing templates and scaffolding to enforce contract-first discipline across the API development lifecycle.

What is the difference between API First and Code First approaches for API development?

API First prioritizes designing and validating OpenAPI specifications before writing application code, whereas Code First generates OpenAPI definitions from existing code, and this skill provides decision support to choose the right workflow based on project needs.

How do I validate an OpenAPI specification before scaffolding code?

To validate an OpenAPI specification before scaffolding code, this skill checks and edits OpenAPI definitions like openapi.yml, enforcing contract-first discipline and ensuring the specification aligns with generated server controllers and client SDKs.

Can I use this skill for API workflow decision support when adopting API First?

Yes, you can use this skill for API workflow decision support when adopting API First, as it offers guidance on choosing between API First and Code First based on your project requirements and aligns OpenAPI specs with generated code.

When should I not use the API First approach for API development?

You should reconsider the API First approach if your project requires rapid prototyping without strict contract enforcement, as this skill enforces contract-first discipline and validates OpenAPI definitions for automated code generation.

What's the best way to manage OpenAPI definitions and align them with generated code?

The best way to manage OpenAPI definitions and align them with generated code is to use automated tooling that validates openapi.yml, enforces contract-first discipline, and provides templates for server controller and client SDK generation.