api-service-contracts

Document API endpoints, data contracts, and communication patterns with Mermaid diagrams.

35|8|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/microsoft/github-copilot-modernization --skill api-service-contracts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-service-contracts
Source: https://github.com/microsoft/github-copilot-modernization/tree/main/plugins/github-copilot-modernization/skills/api-service-contracts
Command: npx skills add https://github.com/microsoft/github-copilot-modernization --skill api-service-contracts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Document and reason about API surfaces by generating a comprehensive catalog of services, endpoints, and data contracts, including a Mermaid sequence diagram that shows core request flows.

Core Features & Use Cases

  • Generate a complete Service Catalog with service/module names, purposes, and boundaries.
  • Build an API Endpoints Inventory listing HTTP methods, paths, request bodies, and response types.
  • Produce a Management & Observability endpoints catalog and capture references to custom metrics.
  • Create a Service Communication Diagram (Mermaid) illustrating synchronous and asynchronous calls, as well as failure and retry scenarios.
  • Distinguish gateway-level DTOs from service-level domain models to support API governance.

Quick Start

Run the API service-contracts skill on your codebase to generate contract documents and a Mermaid sequence diagram for the current project.

Frequently Asked Questions about api-service-contracts

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

FAQPage Schema
How do I document API contracts and map endpoints for a multi-module architecture?

API service contracts identify independently deployable APIs and document their endpoints, data contracts, and communication patterns. This generates an authoritative API surface description covering service catalogs, endpoint inventories, and inter-service sequence diagrams.

Can I generate a sequence diagram for inter-service communication flows?

Yes, you can generate a Mermaid sequence diagram illustrating synchronous and asynchronous calls alongside failure and retry scenarios. This service communication diagram maps core request flows across independently deployable services.

What is the best way to distinguish gateway-level DTOs from service-level domain models?

The best way to distinguish gateway-level DTOs from service-level domain models is by generating explicit contract documents that separate them. This distinction supports API governance by clarifying external API surface boundaries from internal domain logic.

Does this approach capture management and observability endpoints for API documentation?

Yes, this approach captures management and observability endpoints by producing a dedicated catalog. It explicitly includes references to custom metrics and documents the security posture at the API layer for complete observability coverage.

How do I create an OpenAPI reference for existing microservices?

Create an OpenAPI reference by scanning your codebase to inventory independently deployable APIs. The process outputs OpenAPI references alongside gateway-level DTOs and service-level contracts to establish an authoritative API surface description.