Md2wechat
Convert Markdown to WeChat Official Account HTML, inspect supported providers/themes/prompts, generate article images, create drafts, write with creator styles, prepare title suggestions, and remove AI writing traces. Also use for unpublished Zhihu, CSDN, or Toutiao drafts through a browser.
- Skill ID
- geekjourneyx/md2wechat-skill/md2wechat
- Publisher
- geekjourneyx
- Repository
- md2wechat-skill
- Installs
- 0
- Files
- 1
- Synced
- Sep 23, 2026
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
geekjourneyx/md2wechat-skill/md2wechatInstalls these files- SKILL.md
What this skill tells the agent
md2wechat
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. - Unpublished Zhihu, CSDN, or Toutiao draft: run
md2wechat skills read md2wechat references/sync/workflow.md --jsonfor the current CLI's embedded workflow; the CLI prepares content and the Agent operates the browser. - 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. - Host-agent image generation request with no provider configured: use image plan mode (
--plan --json) to get prompt intent, then hand it to the host image-generation tool if one is available outside md2wechat. - WeChat title candidates for an existing article: use
title suggest <article.md> --json; it emits a host-Agent AI request and does not choose or write the final title. - Existing article or draft, user asks what to improve next: run
md2wechat advise <article.md> --json; treat it as recommendation-only and keepinspect --json data.readiness.targets/blockersas the publish gate. - 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.
Use capabilities for aggregate routing facts, resource list for lightweight selection fields, show for one full resource definition, and render for materialized prompt/layout output. JSON stdout is compact; use jq only when a human needs formatted output.
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``
- Subject-reference (image-to-image) capability before using
--subject-reference: ``bash md2wechat providers show minimax --json`Readsupports_subject_referenceon the provider and on each entry ofsupported_models. Only theminimaxprovider and itsimage-01model accept--subject-reference, and the reference must be a publicly reachablehttp(s)portrait image URL; inline data URLs and local paths are rejected. Unsupported provider/model combinations fail immediately withCONFIG_INVALID`, so do not retry them as generation failures.
- Title suggestion prompt selection: ``
bash md2wechat prompts list --kind title --json md2wechat prompts show wechat-title-expert --kind title --json``
- Draft, upload, API local-readiness, or configuration troubleshooting: ``
bash md2wechat doctor --json md2wechat config show --format json md2wechat config wechat-accounts --json`doctorreadiness is local configuration attemptability.config wechat-accountsis local-only and never prints WeChat secrets. Useinspect --json` for 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> --jsonUse 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-mode preview and conversion require a valid
MD2WECHAT_API_KEY. - WeChat upload, article draft creation, and
create_image_postrequire WeChat credentials whenever the user explicitly requests those side effects. - Read-only discovery,
inspect,preview, and plain conversion are free of any global WeChat publishing credential requirement; API-mode preview and conversion still require a validMD2WECHAT_API_KEY. - Named WeChat account execution requires a valid
MD2WECHAT_API_KEY; the CLI validates it before upload, draft, orcreate_image_posteffects. - Direct image generation requires image-provider credentials; image plan mode (
--plan --json) only emits prompt intent for a host Agent or external tool and does not require image-provider credentials. title suggest --jsononly emits a title-generation prompt request for the host Agent or external model. It does not call a model, upload, create drafts, or write back to Markdown.- For stronger factual title hooks, pass --hook-level 2 or 3; do not treat generated titles as confirmed publishing intent.
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.
Use this skill in a project
Open any RiverX project, search the Skills panel for geekjourneyx/md2wechat-skill/md2wechat, and install it in one click.
