Add comprehensive documentation to code (functions, classes)
Adds comprehensive documentation to code functions and classes with examples.
/plugin marketplace add theohbkim/plugins-for-claude/plugin install document@theohbkim-pluginsfile-pathDetermine the target code to document:
For each function and class found, add documentation that includes:
Use docstrings following the project's existing style. If no existing style is detected, prefer Google-style docstrings:
def function_name(param1: str, param2: int) -> bool:
"""Short description of function.
Longer description if needed.
Args:
param1: Description of param1.
param2: Description of param2.
Returns:
Description of return value.
Raises:
ValueError: When invalid input is provided.
"""
Use JSDoc comments following the project's existing style:
/**
* Short description of function.
*
* Longer description if needed.
*
* @param param1 - Description of param1
* @param param2 - Description of param2
* @returns Description of return value
* @throws {Error} When invalid input is provided
*
* @example
* ```typescript
* const result = functionName('foo', 42);
* ```
*/