AGENT SKILL

drin-api-documentation-sync

Workflow for ensuring the documentation (OpenAPI/Swagger) always reflects reality.

License 许可
MIT
最近更新
2026-04-11
Stars
★ 12
Forks
1

01 前言 Front Matter

name
drin-api-documentation-sync
status
production
description
Workflow for ensuring the documentation (OpenAPI/Swagger) always reflects reality.

03 SKILL.md 正文

API Documentation Sync

Purpose

To prevent "Documentation Drift" and ensure developers always have accurate integration guides.

Actions

  1. Discover: Find all endpoints in the code.
  2. Validate: Compare current code signatures with the existing .yaml/.json spec.
  3. Auto-gen: Use code-first generators (if available) to update the spec.
  4. Lint: Check the spec for consistency and descriptive examples.
  5. Publish: Update the central documentation portal (Swagger UI/Redoc).

Rules

  • Every endpoint must have at least one valid example request/response.
  • Every error code must be documented.

04 同仓库更多 Skills