{"id":"cd8b9410-8eb8-43f4-ab01-c0d61a1a8380","entityType":"agent","slug":"clawhub-skills-0731coderlee-sudo-wechat-publisher","name":"wechat-publisher","canonicalUrl":"https://www.xpersona.co/agent/clawhub-skills-0731coderlee-sudo-wechat-publisher","canonicalPath":"/agent/clawhub-skills-0731coderlee-sudo-wechat-publisher","generatedAt":"2026-10-09T15:14:17.641Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"description":"一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli，支持多主题、代码高亮、图片自动上传。 --- name: wechat-publisher description: \"一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli，支持多主题、代码高亮、图片自动上传。\" metadata: { \"openclaw\": { \"emoji\": \"📱\", }, } --- wechat-publisher **一键发布 Markdown 文章到微信公众号草稿箱** 基于 $1 封装的 OpenClaw skill。 功能 - ✅ Markdown 自动转换为微信公众号格式 - ✅ 自动上传图片到微信图床 - ✅ 一键推送到草稿箱 - ✅ 多主题支持（代码高亮、Mac 风格代码块） - ✅ 支持本地和网络图片 快速开始 1. 安装 wenyan-cli **wenyan-cli 需要全局安装：** **验证安装：** **注意：** publish.sh 脚本会自动检测并安装 wenyan-cli（如果未安","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. Last updated 4/15/2026.","installCommand":"clawhub skill install skills:0731coderlee-sudo:wechat-publisher","sourceUrl":"https://github.com/openclaw/skills/tree/main/skills/0731coderlee-sudo/wechat-publisher","homepage":null,"primaryLinks":[{"label":"View on ClawHub","url":"https://github.com/openclaw/skills/tree/main/skills/0731coderlee-sudo/wechat-publisher","kind":"source"}],"safetyScore":84,"overallRank":62,"popularityScore":50,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli，支持多主题、代码高亮、图片自动上传。 --- name: wechat-publisher description: \"一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli，支持多主题、代码高亮、图片自动上传。\" meta"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"no-adoption-signals","verified":false,"confidence":"low","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"No source adoption metrics were available."},"stars":null,"forks":null,"downloads":null,"packageName":null,"latestVersion":null,"tractionLabel":null},"release":{"evidence":{"source":"agent-index","verified":false,"confidence":"medium","updatedAt":"2026-02-28T15:28:11.716Z","emptyReason":null},"lastUpdatedAt":"2026-04-15T00:45:39.800Z","lastCrawledAt":"2026-02-28T15:28:11.716Z","lastIndexedAt":null,"nextCrawlAt":"2026-03-01T15:28:11.716Z","lastVerifiedAt":null,"highlights":[]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install skills:0731coderlee-sudo:wechat-publisher","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-0731coderlee-sudo-wechat-publisher/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-0731coderlee-sudo-wechat-publisher/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-0731coderlee-sudo-wechat-publisher/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skills-0731coderlee-sudo-wechat-publisher/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skills-0731coderlee-sudo-wechat-publisher/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skills-0731coderlee-sudo-wechat-publisher/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-09T15:14:17.641Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-0731coderlee-sudo-wechat-publisher/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-0731coderlee-sudo-wechat-publisher/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-0731coderlee-sudo-wechat-publisher/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skills-0731coderlee-sudo-wechat-publisher/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":null},"readme":"---\nname: wechat-publisher\ndescription: \"一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli，支持多主题、代码高亮、图片自动上传。\"\nmetadata:\n  {\n    \"openclaw\":\n      {\n        \"emoji\": \"📱\",\n      },\n  }\n---\n\n# wechat-publisher\n\n**一键发布 Markdown 文章到微信公众号草稿箱**\n\n基于 [wenyan-cli](https://github.com/caol64/wenyan-cli) 封装的 OpenClaw skill。\n\n## 功能\n\n- ✅ Markdown 自动转换为微信公众号格式\n- ✅ 自动上传图片到微信图床\n- ✅ 一键推送到草稿箱\n- ✅ 多主题支持（代码高亮、Mac 风格代码块）\n- ✅ 支持本地和网络图片\n\n## 快速开始\n\n### 1. 安装 wenyan-cli\n\n**wenyan-cli 需要全局安装：**\n\n```bash\nnpm install -g @wenyan-md/cli\n```\n\n**验证安装：**\n```bash\nwenyan --help\n```\n\n> **注意：** publish.sh 脚本会自动检测并安装 wenyan-cli（如果未安装）\n\n### 2. 配置 API 凭证\n\nAPI 凭证已保存在 `/Users/leebot/.openclaw/workspace/TOOLS.md`\n\n确保环境变量已设置：\n```bash\nexport WECHAT_APP_ID=your_wechat_app_id\nexport WECHAT_APP_SECRET=your_wechat_app_secret\n```\n\n**重要：** 确保你的 IP 已添加到微信公众号后台的白名单！\n\n配置方法：https://yuzhi.tech/docs/wenyan/upload\n\n### 3. 准备 Markdown 文件\n\n文件顶部**必须**包含完整的 frontmatter（wenyan 强制要求）：\n\n```markdown\n---\ntitle: 文章标题（必填！）\ncover: https://example.com/cover.jpg  # 封面图（必填！）\n---\n\n# 正文开始\n\n你的内容...\n```\n\n**⚠️ 关键发现（实测）：**\n- `title` 和 `cover` **都是必填字段**！\n- 缺少任何一个都会报错：\"未能找到文章封面\"\n- 虽然文档说\"正文有图可省略cover\"，但实际测试必须提供 cover\n- 所有图片（本地/网络）都会自动上传到微信图床\n\n**推荐封面图来源：**\n```markdown\n# 方案1: 相对路径（推荐，便于分享）\ncover: ./assets/default-cover.jpg\n\n# 方案2: 绝对路径\ncover: /Users/bruce/photos/cover.jpg\n\n# 方案3: 网络图片\ncover: https://your-cdn.com/image.jpg\n```\n\n**💡 提示：** 使用相对路径时，从 Markdown 文件所在目录开始计算。\n\n### 4. 发布文章\n\n**方式 1: 使用 publish.sh 脚本**\n```bash\ncd /Users/leebot/.openclaw/workspace/wechat-publisher\n./scripts/publish.sh /path/to/article.md\n```\n\n**方式 2: 直接使用 wenyan-cli**\n```bash\nwenyan publish -f article.md -t lapis -h solarized-light\n```\n\n**方式 3: 在 OpenClaw 中使用**\n```\n\"帮我发布这篇文章到微信公众号\" + 附带 Markdown 文件路径\n```\n\n## 主题选项\n\nwenyan-cli 支持多种主题：\n\n**内置主题：**\n- `default` - 默认主题\n- `lapis` - 青金石（推荐）\n- `phycat` - 物理猫\n- 更多主题见：https://github.com/caol64/wenyan-core/tree/main/src/assets/themes\n\n**代码高亮主题：**\n- `atom-one-dark` / `atom-one-light`\n- `dracula`\n- `github-dark` / `github`\n- `monokai`\n- `solarized-dark` / `solarized-light` (推荐)\n- `xcode`\n\n**使用示例：**\n```bash\n# 使用 lapis 主题 + solarized-light 代码高亮\nwenyan publish -f article.md -t lapis -h solarized-light\n\n# 使用 phycat 主题 + GitHub 代码高亮\nwenyan publish -f article.md -t phycat -h github\n\n# 关闭 Mac 风格代码块\nwenyan publish -f article.md -t lapis --no-mac-style\n\n# 关闭链接转脚注\nwenyan publish -f article.md -t lapis --no-footnote\n```\n\n## 自定义主题\n\n### 临时使用自定义主题\n```bash\nwenyan publish -f article.md -c /path/to/custom-theme.css\n```\n\n### 安装自定义主题（永久）\n```bash\n# 从本地文件安装\nwenyan theme --add --name my-theme --path /path/to/theme.css\n\n# 从网络安装\nwenyan theme --add --name my-theme --path https://example.com/theme.css\n\n# 使用已安装的主题\nwenyan publish -f article.md -t my-theme\n\n# 删除主题\nwenyan theme --rm my-theme\n```\n\n### 列出所有主题\n```bash\nwenyan theme -l\n```\n\n## 工作流程\n\n1. **准备内容** - 用 Markdown 写作\n2. **运行脚本** - 一键发布到草稿箱\n3. **审核发布** - 到公众号后台审核并发布\n\n## Markdown 格式要求\n\n### 必需的 Frontmatter\n\n**⚠️ 关键（实测结果）：wenyan-cli 强制要求完整的 frontmatter！**\n\n```markdown\n---\ntitle: 文章标题（必填！）\ncover: 封面图片URL或路径（必填！）\n---\n```\n\n**示例 1：相对路径（推荐）**\n```markdown\n---\ntitle: 我的技术文章\ncover: ./assets/cover.jpg\n---\n\n# 正文...\n```\n\n**示例 2：绝对路径**\n```markdown\n---\ntitle: 我的技术文章\ncover: /Users/bruce/photos/cover.jpg\n---\n\n# 正文...\n```\n\n**示例 3：网络图片**\n```markdown\n---\ntitle: 我的技术文章\ncover: https://example.com/cover.jpg\n---\n\n# 正文...\n```\n\n**❌ 错误示例（会报错）：**\n\n```markdown\n# 只有 title，没有 cover\n---\ntitle: 我的文章\n---\n\n错误信息：未能找到文章封面\n```\n\n```markdown\n# 完全没有 frontmatter\n# 我的文章\n\n错误信息：未能找到文章封面\n```\n\n**💡 重要发现：**\n- 虽然 wenyan 官方文档说\"正文有图片可省略cover\"\n- 但**实际测试必须提供 cover**，否则报错\n- title 和 cover **缺一不可**\n\n### 图片支持\n- ✅ 本地路径：`![](./images/photo.jpg)`\n- ✅ 绝对路径：`![](/Users/bruce/photo.jpg)`\n- ✅ 网络图片：`![](https://example.com/photo.jpg)`\n\n所有图片会自动上传到微信图床！\n\n### 代码块\n````markdown\n```python\ndef hello():\n    print(\"Hello, WeChat!\")\n```\n````\n\n会自动添加代码高亮和 Mac 风格装饰。\n\n## 故障排查\n\n### 1. 上传失败：IP 不在白名单\n\n**错误信息：** `ip not in whitelist`\n\n**解决方法：**\n1. 获取你的公网 IP：`curl ifconfig.me`\n2. 登录微信公众号后台：https://mp.weixin.qq.com/\n3. 开发 → 基本配置 → IP 白名单 → 添加你的 IP\n\n### 2. wenyan-cli 未安装\n\n**错误信息：** `wenyan: command not found`\n\n**解决方法：**\n```bash\nnpm install -g @wenyan-md/cli\n```\n\n### 3. 环境变量未设置\n\n**错误信息：** `WECHAT_APP_ID is required`\n\n**解决方法：**\n```bash\nexport WECHAT_APP_ID=your_wechat_app_id\nexport WECHAT_APP_SECRET=your_wechat_app_secret\n```\n\n或在 `~/.zshrc` / `~/.bashrc` 中永久添加。\n\n### 4. Frontmatter 缺失\n\n**错误信息：** `title is required in frontmatter`\n\n**解决方法：** 在 Markdown 文件顶部添加：\n```markdown\n---\ntitle: 你的文章标题\n---\n```\n\n## 参考资料\n\n- wenyan-cli GitHub: https://github.com/caol64/wenyan-cli\n- wenyan 官网: https://wenyan.yuzhi.tech\n- 微信公众号 API 文档: https://developers.weixin.qq.com/doc/offiaccount/\n- IP 白名单配置: https://yuzhi.tech/docs/wenyan/upload\n\n## 更新日志\n\n### 2026-02-05 - v1.0.0\n- ✅ 初始版本\n- ✅ 基于 wenyan-cli 封装\n- ✅ 支持一键发布到草稿箱\n- ✅ 多主题支持\n- ✅ 自动图片上传\n\n## License\n\nApache License 2.0 (继承自 wenyan-cli)\n","readmeExcerpt":"--- name: wechat-publisher description: \"一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli，支持多主题、代码高亮、图片自动上传。\" metadata: { \"openclaw\": { \"emoji\": \"📱\", }, } --- wechat-publisher **一键发布 Markdown 文章到微信公众号草稿箱** 基于 $1 封装的 OpenClaw skill。 功能 - ✅ Markdown 自动转换为微信公众号格式 - ✅ 自动上传图片到微信图床 - ✅ 一键推送到草稿箱 - ✅ 多主题支持（代码高亮、Mac 风格代码块） - ✅ 支持本地和网络图片 快速开始 1. 安装 wenyan-cli **wenyan-cli 需要全局安装：** **验证安装：** **注意：** publish.sh 脚本会自动检测并安装 wenyan-cli（如果未安","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"npm install -g @wenyan-md/cli"},{"language":"bash","snippet":"wenyan --help"},{"language":"bash","snippet":"export WECHAT_APP_ID=your_wechat_app_id\nexport WECHAT_APP_SECRET=your_wechat_app_secret"},{"language":"markdown","snippet":"---\ntitle: 文章标题（必填！）\ncover: https://example.com/cover.jpg  # 封面图（必填！）\n---\n\n# 正文开始\n\n你的内容..."},{"language":"markdown","snippet":"# 方案1: 相对路径（推荐，便于分享）\ncover: ./assets/default-cover.jpg\n\n# 方案2: 绝对路径\ncover: /Users/bruce/photos/cover.jpg\n\n# 方案3: 网络图片\ncover: https://your-cdn.com/image.jpg"},{"language":"bash","snippet":"cd /Users/leebot/.openclaw/workspace/wechat-publisher\n./scripts/publish.sh /path/to/article.md"}],"parameters":{},"dependencies":[],"permissions":[],"extractedFiles":[],"languages":["typescript"],"docsSourceLabel":"CLAWHUB","editorialOverview":"一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli，支持多主题、代码高亮、图片自动上传。 --- name: wechat-publisher description: \"一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli，支持多主题、代码高亮、图片自动上传。\" metadata: { \"openclaw\": { \"emoji\": \"📱\", }, } --- wechat-publisher **一键发布 Markdown 文章到微信公众号草稿箱** 基于 $1 封装的 OpenClaw skill。 功能 - ✅ Markdown 自动转换为微信公众号格式 - ✅ 自动上传图片到微信图床 - ✅ 一键推送到草稿箱 - ✅ 多主题支持（代码高亮、Mac 风格代码块） - ✅ 支持本地和网络图片 快速开始 1. 安装 wenyan-cli **wenyan-cli 需要全局安装：** **验证安装：** **注意：** publish.sh 脚本会自动检测并安装 wenyan-cli（如果未安","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":332,"uniquenessScore":67,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-04-15T00:45:39.800Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-09T15:14:17.641Z","emptyReason":null},"items":[{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-10T18:48:31.762Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}