Generate documentation for a file, function, class, or module
Generate API docs, READMEs, or module documentation for code files. Use when you need to add JSDoc/docstrings or create documentation files for functions, classes, or entire modules.
/plugin marketplace add C0ntr0lledCha0s/claude-code-plugin-automations/plugin install documents-manager@claude-code-plugin-automations[file-path] [--type api|readme|module]Generate documentation for the specified target.
Target: $ARGUMENTS
Parse the arguments to determine:
--type api, --type readme, or --type module
api: Generate API documentation (JSDoc, docstrings, etc.)readme: Generate a README file for the module/directorymodule: Generate module-level documentation--type api)--type readme)--type module)Follow language-specific conventions:
/**
* Brief description.
*
* @param {Type} name - Description
* @returns {Type} Description
* @throws {Error} When...
* @example
* const result = func(arg);
*/
"""Brief description.
Longer description if needed.
Args:
param: Description
Returns:
Description
Raises:
Error: When...
Example:
>>> result = func(arg)
"""
Always show the user what was generated and ask for confirmation before making changes to existing documentation.