# Send wechat-mp-publisher to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "wechat-mp-publisher",
    "name": "wechat-mp-publisher",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/MISAKIGA/wechat-mp-publisher",
    "canonicalUrl": "https://clawhub.ai/MISAKIGA/wechat-mp-publisher",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/wechat-mp-publisher",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=wechat-mp-publisher",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "example.md",
      "references/themes.md",
      "references/troubleshooting.md",
      "scripts/publish-remote.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/wechat-mp-publisher"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/wechat-mp-publisher",
    "downloadUrl": "https://openagent3.xyz/downloads/wechat-mp-publisher",
    "agentUrl": "https://openagent3.xyz/skills/wechat-mp-publisher/agent",
    "manifestUrl": "https://openagent3.xyz/skills/wechat-mp-publisher/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/wechat-mp-publisher/agent.md"
  }
}
```
## Documentation

### 微信公众号远程发布 (Remote Publisher - Compliance Optimized)

核心痛点解决：家用宽带 IP 频繁变动，无法固定添加到公众号白名单？
本技能通过远程 wenyan-mcp 服务中转，让你的本地 OpenClaw 也能稳定发布文章，无需本地 IP 权限！

### 🌟 架构优势

IP 漫游无忧：仅需将远程 MCP 服务器 IP 加入白名单，无论你在家里、咖啡厅还是 4G 热点，都能随时发布。
合规隔离：凭证与系统配置分离，避免污染全局 TOOLS.md。
依赖自检：脚本运行时自动检查 jq、mcporter 和 wenyan-cli。
灵活配置：支持自定义 MCP 配置文件路径。

### 1. 准备凭证 (wechat.env)

在技能根目录下复制 wechat.env.example 为 wechat.env 并填入公众号凭证：

cp wechat.env.example wechat.env
nano wechat.env

内容示例：

export WECHAT_APP_ID="wx..."
export WECHAT_APP_SECRET="cx..."
# Optional: 指定 MCP 配置文件 (默认 $HOME/.openclaw/mcp.json)
# export MCP_CONFIG_FILE="/path/to/your/mcp.json"

### 2. 连接远程服务 (mcp.json)

确保你的 mcp.json 指向远程 MCP 实例：

{
  "mcpServers": {
    "wenyan-mcp": {
      "name": "公众号远程助手",
      "transport": "sse",
      "url": "http://<your-remote-server-ip>:3000/sse",
      "headers": {
        "X-API-Key": "<optional-api-key>"
      }
    }
  }
}

### 方式 A: 智能助手 (推荐)

直接对我说：

"帮我把 path/to/article.md 发布到公众号，使用默认主题。"

我会自动：

读取 wechat.env 获取凭证
检查本地环境 (mcporter, jq)
调用远程 MCP 完成发布

### 方式 B: 命令行脚本 (高级)

我们提供了封装好的脚本 scripts/publish-remote.sh，体验与本地 CLI 一致：

# 赋予执行权限
chmod +x scripts/publish-remote.sh

# 发布文章 (自动加载 wechat.env)
./scripts/publish-remote.sh ./my-post.md

# 指定主题 (lapis)
./scripts/publish-remote.sh ./my-post.md lapis

### 📝 Markdown 规范

与标准 wenyan-cli 一致，头部必须包含元数据：

---
title: 我的精彩文章
cover: https://example.com/cover.jpg
---

# 正文开始
...

提示：cover 推荐使用图床链接，以确保远程服务器能正确下载封面。

### 🛠️ 故障排查

现象原因解决方案Dependencies Missing缺少 jq 或 mcporter请确保系统已安装这些工具Config Not Found未找到 wechat.env请按照步骤 1 创建并配置IP not in whitelist远程服务器 IP 未加白登录公众号后台 -> 基本配置 -> IP 白名单，添加 MCP 服务器的公网 IP
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: MISAKIGA
- Version: 2.0.2
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/wechat-mp-publisher)
- [Send to Agent page](https://openagent3.xyz/skills/wechat-mp-publisher/agent)
- [JSON manifest](https://openagent3.xyz/skills/wechat-mp-publisher/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/wechat-mp-publisher/agent.md)
- [Download page](https://openagent3.xyz/downloads/wechat-mp-publisher)