Update existing documentation to match current code
Updates documentation to match current code by analyzing functions, classes, and exports, then identifying mismatches like missing parameters, type changes, or stale descriptions. Use it when refactoring to keep docs in sync, or run with --check-only to see what needs updating without making changes.
/plugin marketplace add C0ntr0lledCha0s/claude-code-plugin-automations/plugin install documents-manager@claude-code-plugin-automations[file-path] [--check-only]Update documentation to match the current state of the code.
Target: $ARGUMENTS
For each mismatch:
## Documentation Update Report
### Outdated Documentation Found
**file.js:functionName**
- Parameter `newParam` added but not documented
- Return type changed from `string` to `Promise<string>`
**file.js:className**
- Method `newMethod` added but not documented
- Property `oldProp` removed but still documented
### Summary
- 3 functions need updates
- 2 classes need updates
- 5 total documentation changes needed
When the correct documentation is unclear:
TODO: markerExample:
/**
* TODO: Verify description still accurate after refactor
* [Previous: Does X and Y]
* [Current signature suggests: Does X with new behavior]
*
* @param {string} param - TODO: Confirm purpose
*/