What problem does it solve?
Writing consistent, convention-compliant TSDoc comments across a large TypeScript monorepo is tedious and error-prone. This Skill applies Medusa's documentation standards to HTTP types, API routes, UI components, data models, service interfaces, JS SDK methods, providers, workflows, steps, and events without altering any code logic.
Core Features & Use Cases
- File-type-aware documentation: Loads a dedicated reference guide for each of the 11 supported file categories, applying the correct tag set and depth for each.
- Medusa custom tag support: Correctly uses custom tags like
@featureFlag, @expandable, @since, @eventPayload, and @customNamespace defined in the project's tsdoc.json.
- Strict safety constraints: Never documents unexported items, test files, or fabricates version numbers, and never modifies existing comments or code logic.
- Use Case: After adding a new workflow in
packages/core/core-flows/src, ask the assistant to document it, and it will load the workflows-steps reference and produce a compliant TSDoc block with @summary, hooks, and @example.
Quick Start
Add TSDoc comments to the exported workflow in packages/core/core-flows/src/cart/workflows/add-to-cart.ts following the Medusa documentation conventions.