From code-explainer
Adds inline documentation (JSDoc, docstrings, or comments) to under-documented code by scanning functions and complex logic, then generating appropriate format doc comments per language.
How this command is triggered — by the user, by Claude, or both
Slash command
/code-explainer:annotateFiles this command reads when invoked
The summary Claude sees in its command listing — used to decide when to auto-load this command
Add inline documentation (JSDoc, docstrings, comments) to under-documented code. ## Steps 1. Read the target file and assess current documentation level. 2. Identify what needs documentation: - Public functions and methods lacking doc comments. - Complex logic blocks without explanatory comments. - Non-obvious parameter types or return values. - Module-level overview missing. 3. Generate documentation in the appropriate format: - TypeScript/JavaScript: JSDoc with `@param`, `@returns`, `@throws`, `@example`. - Python: Google-style or NumPy-style docstrings. - Go: Godoc...
Add inline documentation (JSDoc, docstrings, comments) to under-documented code.
@param, @returns, @throws, @example./// doc comments with examples./**
* Creates a new user account with the given credentials.
*
* @param email - The user's email address (must be unique)
* @param password - Plain text password (will be hashed)
* @returns The created user object with generated ID
* @throws {ConflictError} If a user with this email already exists
* @example
* const user = await createUser("[email protected]", "securePass123");
*/
@example for functions with non-obvious usage patterns.2plugins reuse this command
First indexed Mar 30, 2026
npx claudepluginhub rohitg00/awesome-claude-code-toolkit --plugin code-explainer/docstring-addScans a source file and adds or improves docstrings/JSDoc/type annotations for all public symbols, using idiomatic format per language (Google, JSDoc, godoc, Rust doc).
/update-doc-stringAdds/updates docstrings and comments to classes, functions, modules in Python, JS/TS, Go, Rust files per standards like PEP 257/JSDoc. Supports --lang for multilingual, --style, --marker.
/doc-genGenerates API documentation, README sections, and inline comments from the codebase for a specified scope or key public modules.
/update-doc-stringAdds and updates multilingual docstrings/comments for classes, functions, modules in Python/JS/TS/Go/Rust files, ensuring standards compliance (PEP 257, JSDoc). Supports --lang en|fr, --style, --marker.
/update-doc-stringAdds or updates multilingual docstrings/comments to classes, functions, modules, enums, and interfaces in Python/JS/TS/Go/Rust files, following standards like PEP 257/JSDoc with optional Claude markers.
/update-doc-stringAdds or updates docstrings and comments in code files per language standards (PEP 257, JSDoc), using natural language instructions and options like --lang en|ja.