/attune-ai:doc-gen <path or module to document>from attune-ai
Generates documentation from source code including docstrings, README sections, and API references. Runs audits to find gaps and orchestrates full documentation maintenance.
Ships in attune-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
IMPORTANT: Start your response with a context preamble.
Call help_lookup(topic="doc-gen", mode="preamble") and
display the returned preamble text as a blockquote. Then
tell the user they can say "tell me more" for a step-by-step
guide, or answer the scoping questions below to proceed.
If the MCP call fails, fall back to:
Doc Gen — Generates documentation from your source code — docstrings, README sections, API references.
Before running, ask:
| Tool | What It Does |
|---|---|
doc_gen | Generate documentation for a module |
doc_audit | Check for stale or missing docs |
doc_orchestrator | Full documentation maintenance pipeline |
Open adapter doc-gen with the validated target and documentation type. Run
the bound read-only doc_audit action first and publish audit_result with
the exact proposed artifact paths. Present the proposal widget or Markdown;
only an explicitly confirmed apply_docs action authorizes those paths.
After doc_gen, publish generation_result with the exact files reported
from disk. The adapter hashes them independently and rejects writes outside or
different from the approved set. Run the returned doc-import-audit/symbol
reality probe and publish its exact command and outcome as
validation_result. A partial write or failed reality probe must say “did not
complete” and retain changed-file hashes for rollback. Preserve these gates
and receipts in compact text when the shared tools are unavailable.
For docstring generation:
doc_gen(source_path="<target module>")
For a full documentation audit first:
doc_audit(path="<target>")
Then generate docs for gaps found:
doc_gen(source_path="<gap file>")
For a complete pipeline (audit + generate + review):
doc_orchestrator(path="<target>")
Prefer the rich panel. If the tool response includes panel_html,
pass it to mcp__visualize__show_widget — the universal report panel
(title, score, findings/category sections; from
attune.workflows.report_panel). It shows an explicit "did not
complete" state on failure, never a false "clean". Fall back to the
markdown below when the widget surface is unavailable.
## Documentation Report
**Files:** X | **Functions Documented:** Y | **Gaps:** Z
### Generated Docstrings
| File | Function | Status |
|------|----------|--------|
### Gaps Remaining
| File | Missing |
|------|---------|
After presenting results, call:
help_lookup(topic="doc-gen", mode="workflow_help")
If templates are returned, offer: "I have tips about documentation generation — want to see them?"
After presenting results, offer:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smart-ai-memory/attune-ai --plugin attune-ai28 skills in this plugin
/attune-hubDeveloper workflow hub — routes to the right skill based on what you need. Triggers on: attune, what can attune do, what can you do, capabilities, where do I start, get started./author-featureAuthor a single-source feature page — a code-verified master that projects to .help kinds + docs pages, no API credits. Triggers on: author a feature page, single-source doc, new feature master, draft docs without an api./bug-predictPredict likely bug locations from code patterns and complexity. Triggers on: predict bugs, find bugs, risky code, code risk, what might break, likely bugs, bug hotspots.Other plugins' skills for the same job