generate-cli-docs
SkillFiles & storageRegenerate the HTML docs site (CLI Reference, Configuration, content sections) from decorators, the pydantic config schema, and markdown source files
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the generate-cli-docs skill
What this skill tells your AI
The instructions your AI receives, as published by mycelium-io/mycelium in .claude/skills/generate-cli-docs/SKILL.md and read by ahel’s review.
Regenerate the docs site from three sources:
- CLI Reference — generated from
@doc_refdecorators on Typer commands - Configuration — generated from
Field(..., description=...)on the pydantic config schema inmycelium-cli/src/mycelium/config.py - Content sections — generated from markdown files in
mycelium-cli/src/mycelium/docs/
Steps:
- Run:
cd mycelium-cli && uv run python ../docs/generate_docs.py - Report what was generated
Adding a new CLI command
If a CLI command was added or modified and doesn't have a @doc_ref decorator, add one:
from mycelium.doc_ref import doc_ref
@doc_ref(
usage="mycelium <group> <command> <args>",
desc="One-line description. May contain <code>html</code>.",
group="room", # setup, room, memory, message, adapter, config, or "other"
)
@app.command()
def my_command(...): ...
Groups: setup, room, memory, message, adapter, config, other
Adding a new config knob
Each pydantic field on a sub-model of MyceliumConfig becomes a row in the Configuration section of the docs. The only requirement is a non-empty description=:
class NegotiationConfig(BaseModel):
"""Tunables for the CFN-mediated negotiation flow."""
n_steps: int = Field(
default=20,
description=(
"Maximum SAO rounds per session. Set to 0 to fall through to "
"CFN's auto-computed budget."
),
)
Whatever shows up in description= is what users will read. Spell it out — assume the reader doesn't know what SAO or CFN is. To add a brand new namespace:
- Add a
<NewName>Config(BaseModel)class withField(..., description=...)on every field. - Wire it onto
MyceliumConfig(e.g.new_name: NewNameConfig = Field(default_factory=NewNameConfig)). - Optionally add the namespace to
CONFIG_NAMESPACE_ORDERindocs/generate_docs.pyto control its position; otherwise it appends after the listed namespaces. - Re-run the generator.
The generator skips namespaces typed as bare dict (e.g. adapters) — see CONFIG_NAMESPACE_SKIP.
Markdown source
Markdown files in mycelium-cli/src/mycelium/docs/ (concepts/, guides/, reference/) are converted to HTML and embedded in the right <section> of the page SECTION_CONFIG assigns them to. Sections in the existing HTML marked with <!-- keep --> are preserved verbatim (used for hand-crafted interactive components).
Then re-run the generator.
Signals
- GitHub stars
- 118
- Forks
- 12
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
generate-cli-docs- Source
- github.com/mycelium-io/mycelium