api-spec

Generate API specifications in Markdown, OpenAPI 3.1, and GraphQL schema formats.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/DIO0550/d-market-doc-gen --skill api-spec-dio0550
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-spec
Source: https://github.com/DIO0550/d-market-doc-gen/tree/main/plugins/doc-gen-plugin/skills/api-spec
Command: npx skills add https://github.com/DIO0550/d-market-doc-gen --skill api-spec-dio0550

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation of API documentation by interactively generating specifications in Markdown, OpenAPI (YAML), and GraphQL schema formats.

Core Features & Use Cases

  • Multi-Format Output: Supports human-readable Markdown, machine-readable OpenAPI 3.1, and GraphQL SDL.
  • Interactive Generation: Guides users through a series of questions to gather necessary API details.
  • Use Case: You need to document a new REST API. Use this Skill to generate a comprehensive Markdown document for developers, an OpenAPI spec for integration tools, and a GraphQL schema if needed, all from a single interactive session.

Quick Start

Use the api-spec skill to generate an OpenAPI specification for a new user management API.

Frequently Asked Questions about api-spec

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

FAQPage Schema
How do I generate an OpenAPI specification for my REST API?

You can generate an OpenAPI 3.1 specification in YAML by interactively providing endpoint details, request/response schemas, authentication, and error handling. The Skill guides you through a structured hearing process to collect these necessary API details.

Can I create Markdown and GraphQL schema definitions from a single interactive session?

Yes, you can create Markdown, OpenAPI 3.1 YAML, and GraphQL SDL formats from one session. The Skill supports automated format detection and custom output paths, generating human-readable and machine-readable API documentation simultaneously.

What details do I need to prepare to generate API documentation?

To generate API documentation, you need details about your endpoints, request/response schemas, authentication methods, and error handling. The Skill interactively prompts you for these specific API details during the generation process.

Does this API specification generator support automated format detection?

Yes, the API specification generator supports automated format detection for Markdown, OpenAPI 3.1, and GraphQL schema outputs. It also allows you to specify custom output paths for saving the generated specification files.

What is the best way to document a new REST API for developers and integration tools?

The best way to document a new REST API is generating a comprehensive Markdown document for developers and an OpenAPI spec for integration tools. This Skill interactively gathers your API details to produce both formats, plus GraphQL SDL if needed.

When should I use GraphQL schema generation instead of OpenAPI for my API?

You should use GraphQL schema generation when you need GraphQL SDL alongside Markdown and OpenAPI 3.1 formats. The Skill interactively collects your endpoint and schema details, allowing you to produce GraphQL schemas if needed from the same session.