|
# Workflow: /doc
<meta>
<trigger>/doc</trigger>
<description>Generates JSDoc, API docs, or README based on project context.</description>
</meta>
## Step 1 — Type Detection
Automatic identification if scope requires JSDoc for functions, API route documentation (Next.js/Express), or README updates.
## Step 2 — Block Generation
Delivery of formatted technical documentation ready to be pasted into code, ensuring parameters, returns, and behaviors are mapped.
## Step 3 — Gap Audit
Final report indicating which complex functions or routes still lack documentation in the project.