Formats markdown files by adding proper frontmatter, fixing heading hierarchies, and running typography cleanup scripts. The workflow detects whether you're working with plain text or existing markdown, then either applies full formatting (titles, bold, lists, code blocks) or just runs the typography fixes. The script itself handles CJK-specific issues like emphasis punctuation and English/Chinese spacing using remark-cjk-friendly and autocorrect. You get project-level and user-level config via EXTEND.md files. Outputs to a separate formatted file with timestamp backups, so your original stays untouched. Built for content that mixes languages or just needs consistent structure without manual cleanup.
npx skills add https://github.com/freestylefly/canghe-skills --skill canghe-format-markdown