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:
- install
md2wechat - install the shared
md2wechatskill - verify runtime discovery
- 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/md2wechatIf you prefer Homebrew on macOS:
brew install geekjourneyx/tap/md2wechatOr:
go install github.com/geekjourneyx/md2wechat-skill/cmd/md2wechat@v2.0.7Fallback:
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 md2wechatStep 3. Verify discovery
md2wechat version --json
md2wechat capabilities --json
md2wechat providers list --json
md2wechat themes list --jsonFirst 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
--modeis 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.