with one click
wf-doc-a
// Generate or update standard code documentation — docstrings, rustdoc, API references, READMEs
// Generate or update standard code documentation — docstrings, rustdoc, API references, READMEs
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | wf-doc-a |
| description | Generate or update standard code documentation — docstrings, rustdoc, API references, READMEs |
| metadata | {"source-plugin":"wf","source-skill":"doc-a"} |
Action skill — Generate and update standard code documentation: docstrings, rustdoc, API refs, how-tos.
$ARGUMENTS
Generate or update standard code documentation. This is user-facing documentation that lives alongside the code — not agent design docs (those live in design-docs/).
Every line must earn its place. Documentation that doesn't get read is useless. Cut ruthlessly.
Auto-generated from code. Your job is to ensure the source annotations are complete and correct — not to write separate docs.
/// doc comments on public items. Include # Examples sections for non-obvious usage. //! for module-level docs.What makes good API docs:
What to skip:
get_name doesn't need "Gets the name"Scannable steps with contracts. Written for humans who want to accomplish a specific task.
Structure:
Place near the code they describe. A README.md in the relevant package/directory, or a dedicated docs/ folder for multi-step workflows.
High-level system maps for orientation. These describe what exists and how it connects — not why (that's in design-docs/).
Keep current or delete. Stale architecture docs are worse than none.
Assess what's needed based on arguments:
api — Audit and improve inline documentation (docstrings, doc comments) for the specified scope. Add missing docs on public APIs, fix inaccurate descriptions, add examples where useful.howto — Create or update a how-to guide for the specified topic. Scan existing code to extract the actual steps.arch — Create or update architecture documentation. Read the actual code structure, don't guess.