md2wechat Agent API markAgent API Docs
md2wechat Agent API markAgent API Docs
Homepage

Start

Markdown to WeChat API DocsQuickstartAuth

APIs

Integrations

Operations

ErrorsPricingContact
X (Twitter)

OpenCode

Install md2wechat for OpenCode, run discovery first, and use reusable prompts for WeChat workflows.

OpenCode

Recommended setup

OpenCode follows the same install pattern as Codex and Claude Code:

  1. install md2wechat
  2. install the shared md2wechat skill
  3. verify runtime discovery
  4. ask the agent to run the actual publishing job

Step 1. Install the CLI

If you already have Node and npm, start here:

npm install -g @geekjourneyx/md2wechat

If you prefer Homebrew on macOS:

brew install geekjourneyx/tap/md2wechat

Or:

go install github.com/geekjourneyx/md2wechat-skill/cmd/md2wechat@v2.0.7

Fallback:

curl -fsSL https://github.com/geekjourneyx/md2wechat-skill/releases/download/v2.0.7/install.sh | bash
export PATH="$HOME/.local/bin:$PATH"

Step 2. Install the shared skill

npx skills add https://github.com/geekjourneyx/md2wechat-skill --skill md2wechat

Step 3. Verify discovery

md2wechat version --json
md2wechat capabilities --json
md2wechat providers list --json
md2wechat themes list --json

First prompts to use in OpenCode

Run md2wechat capabilities --json first, then convert article.md to WeChat HTML and show me the preview output.
Please install md2wechat CLI and the md2wechat skill, refresh PATH if needed, then verify version and capabilities before stopping.
Use md2wechat to create an AI-mode request for article.md with theme spring-fresh, then explain what still needs to happen before I get final HTML.

Notes

  • API mode is the default when --mode is missing.
  • AI mode is explicit and better for themed output, but it is still a multi-step flow.
  • Draft creation needs WeChat credentials and usually a cover image.
  • Do not assume themes, prompts, or providers from memory. Use discovery output as the source of truth.

Table of Contents

OpenCode
Recommended setup
Step 1. Install the CLI
Step 2. Install the shared skill
Step 3. Verify discovery
First prompts to use in OpenCode
Notes