/document:document file-pathfrom document
Add comprehensive documentation to code (functions, classes)
Ships in document. Installing the plugin adds it to Claude Code.
Determine 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);
* ```
*/
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub theohbkim/plugins-for-claude --plugin documentOther plugins' commands for the same job