openapi-doc-from-controller
Installation
SKILL.md
OpenAPI doc from controller method
This skill defines how to create or update exactly one OpenAPI path item in the project docs/ folder, derived from a single controller method in the codebase.
Input parameters
Supply these as ordered lines (one per line, no prefixes):
- Controller method name (e.g.
getAssociations) — the real method name that implements the endpoint (no__prefix). Use as${method}. - Target YAML path under docs/ (e.g.
associations.yaml). Use as${file}. - (Optional) Repo-relative path to the controller file (e.g.
src/controllers/associations.controller.ts) for context. Source lives undersrc/; use.tsextension.
Example:
getAssociations
associations.yaml
src/controllers/associations.controller.ts