pycemrg-docs skill¶
Gives any pycemrg-suite library the same MkDocs + Material documentation site
as the reference library pycemrg-image-analysis. The skill is the orchestrator;
the stateless template data lives in its assets/.
Source: pycemrg-docs/.
Installed to ~/.claude/skills/pycemrg-docs/.
For libraries, not this hub
This skill expects a Python library repo (pyproject.toml / setup.py) and
builds an API-reference-style site. This documentation site you're reading
was adapted by hand from the skill's template because pycemrg-context is
a context hub, not a Python library — running the skill here would not fit.
Run it¶
From inside the target library's repo root:
It operates on the current working directory and never takes a folder argument.
The generic / per-library rule¶
- Generic — copied byte-for-byte across the suite: the
mkdocs.ymltheme/markdown_extensions/pluginsblocks, and both workflow files. - Per-library — filled per repo:
site_name,site_description,site_url,repo_url,repo_name, thepalettecolours, and thenavcontents.
The nav spine order is fixed across the suite: Home → Getting Started → Tutorials → Architecture → API Reference → CLI → Developer Guides. Sections a library lacks are deleted; the order is never changed.
What it does (high level)¶
- Preflight & inventory — confirms a library repo, detects fresh scaffold vs. refresh, and lists existing docs so nothing out of scope is touched.
- Copy machinery — generic
mkdocs.yml(fresh scaffold only), both workflows, and content skeletons only into paths that don't already exist. - Fill per-library markers — site fields from the git remote and
pyproject.toml; palette from the Docs palette registry. - Populate content — the landing page and API "toolbox map", lifting the
Design principles and Key domain terms tables from the repo's
CLAUDE.md(inferring from code whenCLAUDE.mdis thin). - Confirm gate, then verify — one summary for approval, then
mkdocs build --strict(the real CI gate; fails on broken internal links).
Palette registry¶
Each library gets a unique Material primary/accent so the sites are visually
distinct but clearly one family. The table lives in the
Library Registry under "Docs palette registry". On a
refresh the skill preserves an existing palette; it only assigns from the table
on a fresh scaffold.