cmm-typesettinglisted
Install: claude install-skill chemny/cmm-content-factory
# CMM Typesetting
`cmm-typesetting` is primarily the typesetting station of the WeChat long-form
production line. It consumes a finished draft (`content_package` body +
`illustration_map` assets) plus `style_selection.layout`, and produces
WeChat-ready HTML. Its deterministic XHS card renderer is an explicit alternate
route, not the default visual-family generation path.
## Cross-Platform Runtime
On Windows resolve Python as `py -3` then `python`; on macOS/Linux resolve
`python3` then `python`. Treat `python3` in examples as the resolved launcher.
The screenshot path discovers Chrome or Edge from Windows install locations and
uses `Path.as_uri()` for local HTML; never construct `file://` URLs manually.
## Boundary
Use this skill for:
- Mapping a finished article into a semantic block sequence (`blocks.yaml`).
- Rendering publish.html / preview.html with a theme + components.
- Running layout checks (paragraph length, visual breaks, component density,
WeChat-risk styles).
- Rendering deterministic XHS cards only when the task explicitly chooses the
exact/editable/HTML card route.
Do not use this skill to:
- Write or edit article content (cmm-content-writing).
- Plan or generate images (cmm-visual-production / cmm-image-creator).
- Publish or create platform drafts (cmm-publishing).
## Workflow
1. Inputs: draft markdown (with `[插图]` placeholders resolved against
`illustration_map`), theme id from `style_selection.layout`, and optional
Creator Profile CTA pol