Automated workflow to detect and fix missing documentation
Scanned 6/6/2026
Install via CLI
openskills install HoangNguyen0403/agent-skills-standard---
name: update-docs
description: "Automated workflow to detect and fix missing documentation"
metadata:
triggers:
keywords:
- update docs
- workflow
---
# Update Docs Skill
> [!IMPORTANT]
> Automated workflow to detect and fix missing documentation
## Instructions
When the user asks to perform this workflow, execute the following steps:
# Documentation Update Workflow
This workflow helps you identify and fix missing documentation in the codebase.
## 1. Run the Documentation Scanner
The `scan-docs.ts` script identifies exported members that lack JSDoc comments.
```bash
tsx scripts/scan-docs.ts cli/src
```
## 2. Analyze the Report
The script will output a list of files and members missing documentation.
Example output:
```text
⚠️ Found undocumented members:
📄 services/MyService.ts
- class MyService
- function doSomething
```
## 3. Generate Documentation
For each missing item:
1. **Read the code** to understand its purpose.
2. **Add JSDoc comments** (`/** ... */`) above the export.
3. **Include**:
- Description of what it does.
- `@param` tags for arguments.
- `@returns` tag for return value.
## 4. Verify
Run the scanner again to ensure no items remain.
```bash
tsx scripts/scan-docs.ts cli/src
```
No comments yet. Be the first to comment!