How this skill is triggered — by the user, by Claude, or both
Slash command
/documentation:add-docsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Add inline documentation comments to public symbols that are currently undocumented.
Add inline documentation comments to public symbols that are currently undocumented.
$ARGUMENTS is provided, restrict to source files under that directory or to that specific file.$ARGUMENTS is empty, the scope is the entire repository — but do not make any edits until the user
explicitly confirms (see step 3).Detect the doc comment style for the project's language:
/** ... */) with @param, @return, @throws/** ... */) with @param, @returns, @throws"""..."""), Google style// line comments directly above the declaration/// line commentsDiscover and read source files in the target scope:
$ARGUMENTS (or the whole repo if no argument).// TODO, empty /** */).Confirm scope if no argument was given:
Write doc comments for each undocumented symbol:
Preserve existing comments: If a symbol already has a doc comment, skip it entirely — do not modify or extend it.
Report: List every file edited and the number of doc comments added. Flag any symbols whose purpose was too unclear to document accurately — the user will need to fill those in.
// TODO: document this and flag it in the report rather than inventing a description.$ARGUMENTS targets a specific file
and the user has clearly asked for full coverage./** Gets the name. */ above
fun getName()).npx claudepluginhub mattbobambrose/mattbobambrose-claude-skills --plugin documentationAutomatically generates documentation comments and docstrings for code functions/classes, matching project style or language conventions like Google/NumPy for Python, JSDoc for JS/TS, godoc for Go.
Generates documentation in three modes: function-level (JSDoc/docstrings), module-level (directory READMEs), and API reference (endpoints/exports). Reads and matches existing project doc style.
Routes documentation tasks to code comments (audit/cleanup) or system docs (READMEs, API docs, architecture). Use for writing, auditing, or improving any docs.