Md2Wechat
This skill routes Markdown-to-WeChat publishing tasks to the correct `md2wechat` CLI command family: use `inspect`/`preview`/`convert` for standard articles, `create_image_post` for image-first posts, and `generate_cover`/`generate_in` for covers or infographics.
How to Install
git clone --depth 1 https://github.com/geekjourneyx/md2wechat-skill.git && cp md2wechat-skill/platforms/openclaw/md2wechat ~/.claude/skills/SKILL.md -rmd2wechat
Use this skill to operate the md2wechat CLI. Keep the skill focused on execution decisions. For full command tutorials, installation details, and FAQ-level explanations, refer users to the project docs instead of expanding this runtime protocol.
Intent Routing
Choose the command family before taking any publish or generation action:
- Standard article HTML, article preview, metadata inspection, or WeChat article draft: use
inspect,preview, andconvert. - Image-first post, image note, image-text note,
newspic, or multi-image post: usecreate_image_post, notconvert --draft. - Article cover or article infographic: prefer
generate_coverorgenerate_infographicover rawgenerate_imagewhen a bundled preset fits. - Writing in a creator style or removing AI traces: use
writeorhumanize. - Provider, theme, prompt, or layout uncertainty: run discovery first. Do not guess from memory or repository files.
Treat convert --draft and create_image_post as different publish targets, not interchangeable variants.
Discovery First
Use CLI discovery as the source of truth, but keep it scoped to the next decision. Do not run the full catalog for tasks that do not need provider, theme, prompt, or layout selection.
Run the smallest useful discovery set:
-
Article formatting with no theme or modules chosen:
bash md2wechat themes list --json md2wechat layout list --json -
A named theme, provider, prompt, or layout module:
bash md2wechat themes show <name> --json md2wechat providers show <name> --json md2wechat prompts show <name> --kind <kind> --json md2wechat layout show <name> --json -
Image generation or image-preset selection:
bash md2wechat providers list --json md2wechat prompts list --kind image --json -
Draft, upload, API local-readiness, or configuration troubleshooting:
bash md2wechat doctor --json md2wechat config show --format json md2wechat config wechat-accounts --jsondoctorreadiness is local configuration attemptability.config wechat-accountsis local-only and never prints WeChat secrets. Useinspect --jsonfor article-specific target readiness. -
Unknown CLI version, changed behavior, or capability uncertainty:
bash md2wechat version --json md2wechat capabilities --json md2wechat skills list --json md2wechat skills read md2wechat --json
md2wechat skills read md2wechat --json reads the core coding-agent SOP embedded in the current CLI binary. Use it when the local OpenClaw skill copy may be older than the executable on PATH; keep OpenClaw installation metadata from this platform skill as the platform-specific layer.
For simple local actions such as preview, humanize, or a user-specified command with explicit flags, do not run unrelated provider, theme, prompt, or layout discovery.
Inspect specific resources only when the task needs them:
md2wechat providers show <name> --json
md2wechat themes show <name> --json
md2wechat prompts show <name> --kind <kind> --json
md2wechat layout show <name> --json
Use CLI output as the source of truth for currently available modes, providers, themes, prompts, and layout modules.
Configuration Boundaries
- Assume
md2wechatis already available onPATH. convertdefaults to API mode unless the user explicitly asks for--mode ai.- API conversion requires md2wechat API credentials.
- WeChat draft creation requires WeChat credentials.
- Named WeChat account execution requires a valid
MD2WECHAT_API_KEY; the CLI validates it before upload or draft side effects. - Image generation may require image-provider credentials.
doctor --jsonis local-only: it checks local readiness and does not perform live authentication, upload images, or create drafts.- Use
config show --format jsonwhen the user asks what configuration is currently effective. - Use
config wechat-accounts --jsonwhen the user asks which local WeChat accounts are configured.
Article Workflow
Prefer a confirm-first workflow for article work:
md2wechat inspect <article.md> --jsonmd2wechat preview <article.md>md2wechat convert <article.md> ...- Add
--upload,--draft,--cover, or--cover-media-idonly when the user explicitly asks for upload or draft creation.
inspect is the source-of-truth command for resolved metadata, readiness, and publish checks. In --json output, read data.readiness.targets and data.readiness.blockers before deciding whether convert, upload, or draft is blocked. Do not invent data.agent_readiness, data.target_readiness, ArticleState, state files, or a second planning object. preview is a local preview artifact. It does not upload images, create drafts, or write back to Markdown. convert --preview is the convert-path preview flag and is not the same as the standalone preview command. preview --mode ai is degraded confirmation only and must not be
Details
| Category | AI/ML → ml |
| Source | geekjourneyx/md2wechat-skill |
| SKILL.md | View on GitHub → |
| Repo Stars | ★ 2.9K |
| Est. per Skill | ~1.5K (shared across 2 skills from this repo) |
| Difficulty | Intermediate |
| Risk Level | N/A |
Related Skills
Works Well With
Skills from the same repository — often designed to work together