
How to Install and Use md2wechat-skill in OpenClaw
A complete OpenClaw guide for md2wechat-skill, covering the separate skill package, CLI runtime, ClawHub, validation, and the first successful task.
OpenClaw is where people most often mix up two different installation stories.
They install the skill shell and assume the runtime now exists.
That assumption is exactly what breaks the workflow.
The mental model that keeps OpenClaw sane
For OpenClaw, think about two separate pieces:
- the OpenClaw skill shell
- the
md2wechatCLI runtime
You need both.
If one is present and the other is missing, the integration is still broken.
That is why OpenClaw should never be documented as if it were the same thing as the Claude Code or Codex path.
The fastest complete installation path
The most direct way to install the OpenClaw version is:
curl -fsSL https://github.com/geekjourneyx/md2wechat-skill/releases/download/v2.0.7/install-openclaw.sh | bash
export PATH="$HOME/.local/bin:$PATH"That path exists for a reason: it is the easiest way to end up with both the skill package and the CLI runtime in a consistent version.
If you only want the CLI in your environment first and already have Node and npm, you can also run:
npm install -g @geekjourneyx/md2wechatThat installs only the CLI. It does not create the OpenClaw skill shell under ~/.openclaw/skills/md2wechat/.
The ClawHub path
If you already live in ClawHub, you can install the skill shell with:
npx clawhub@latest install md2wechatThat can be a good shell-level install path, but it does not guarantee that the md2wechat CLI is also available.
So after ClawHub, you still need to check:
command -v md2wechatIf there is no output, the runtime is still missing.
What to verify right after install
These checks should happen before any publishing task:
md2wechat version --json
md2wechat config init
md2wechat config validate
md2wechat capabilities --json
ls ~/.openclaw/skills/md2wechat/That tells you:
- the CLI is callable
- config files can be initialized
- discovery works
- the skill shell exists where OpenClaw expects it
The first task worth running
Once verification is clean, start with a plain preview task:
md2wechat convert article.md --previewThen move up to the more sensitive parts:
md2wechat convert article.md --draft --cover cover.jpgThat second step is where missing WeChat credentials or incomplete config usually surface.
The most common OpenClaw mistakes
1. Treating ClawHub install as the full story
It is not always the full story. It may install the shell without the runtime.
2. Debugging the wrong directory
The OpenClaw path is:
~/.openclaw/skills/md2wechat/Do not debug ~/.claude/skills/ and assume the result applies to OpenClaw.
3. Forgetting that API mode is still the default
Even inside OpenClaw, convert defaults to API mode unless you explicitly pass --mode ai.
4. Expecting drafts to work without credentials
OpenClaw does not remove the need for:
- WeChat
AppID - WeChat
Secret - usually an
md2wechat.cnAPI key for API-mode workflows
A useful prompt for OpenClaw
If you want the agent to do the setup work, use:
Please install the OpenClaw version of md2wechat, verify the skill shell and CLI runtime, then run md2wechat capabilities --json before doing any conversion work.That prompt forces the runtime checks to happen before the publishing promises.
Where to continue
Author
Categories
More Posts

From Content Retrieval to WeChat Drafts: The Content Creation Toolchain I Design for AI Agents
A practical overview of the AI Agent content toolchain behind my projects: jina-cli for content retrieval, agents for topic selection and drafting, and md2wechat Agent API for formatting and sending content into WeChat drafts.

How to Design an Agent Content Topic Selection Workflow
A practical guide to AI Agent topic selection workflows: why topic judgment matters more than drafting, what a topic workflow should output, how jina-cli supports source retrieval, and how the result connects to md2wechat publishing.

Why Advanced Layout Improves the Product Value of md2wechat Agent API
Advanced layout modules do more than improve presentation. They make the API easier to understand, easier to integrate, and easier to position as a higher-value product.
Newsletter
Join the community
Subscribe to our newsletter for the latest news and updates