TopRank Skills

Home / Claw Skills / Git / GitHub / wechat-mp-publisher
Official OpenClaw rules 36%

wechat-mp-publisher

远程微信公众号发布技能 (合规优化版)。通过 HTTP MCP 解决家用宽带 IP 变动问题,支持安全凭证隔离与依赖检查。

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 wechat-mp-publisher 技能。 若已安装,则直接安装 wechat-mp-publisher 技能。

Overview

Skill Key
cp33333333333/wechat-mp-publisher1
Author
cp33333333333
Source Repo
openclaw/skills
Version
2.0.2
Source Path
skills/cp33333333333/wechat-mp-publisher1
Latest Commit SHA
108a6913549477879a8c2aa7c4454d71a099829e

Extracted Content

SKILL.md excerpt

# 微信公众号远程发布 (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` 并填入公众号凭证:

```bash
cp wechat.env.example wechat.env
nano wechat.env
```

内容示例:
```bash
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 实例:

```json
{
  "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` 发布到公众号,使用默认主题。"

我会自动:
1. 读取 `wechat.env` 获取凭证
2. 检查本地环境 (`mcporter`, `jq`)
3. 调用远程 MCP 完成发布

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

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

```bash
# 赋予执行权限
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 一致,头部必须包含元数据:

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

# 正文开始
...
```

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

##...

README excerpt

# wechat-mp-publisher

**Remote WeChat Official Account Publisher via HTTP MCP**

OpenClaw 技能,用于将 Markdown 文章一键发布到微信公众号草稿箱。
专为解决家用宽带动态 IP 痛点而生,通过远程 `wenyan-mcp` 服务中转,让你的本地环境无需繁琐配置即可稳定发文。

## ✨ 核心特性

- **IP 漫游**: 仅需一次配置远程 MCP 服务器 IP 白名单,无论在哪都能发。
- **大文件传输**: 优化的 `upload_file` 协议,稳定支持长图文。
- **完全兼容**: 支持 wenyan-cli 所有排版主题与 Frontmatter 语法。
- **安全隔离**: 敏感凭证 (AppID/Secret) 仅在运行时传递,不落地存储。

## 📦 快速安装

1. 下载并解压 `wechat-mp-publisher.zip` 到 OpenClaw `skills/` 目录。
2. 配置 `/root/.openclaw/mcp.json` 指向远程服务。
3. 运行 `./scripts/publish-remote.sh` 或直接与 Agent 对话发布。

## 📚 文档索引

- [使用说明 (SKILL.md)](SKILL.md)
- [排版主题预览](references/themes.md)
- [故障排查指南](references/troubleshooting.md)

## 🔗 相关项目

- [wenyan-mcp](https://github.com/caol64/wenyan-mcp): 本技能依赖的后端服务
- [wenyan-cli](https://github.com/caol64/wenyan-cli): 核心排版引擎

Related Claw Skills

heyixuan2

bambu-studio-ai

★ 41

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

capt-marbles

geo-optimization

★ 1

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.

carlulsoe

parakeet-stt

★ 0

Local speech-to-text with NVIDIA Parakeet TDT 0.6B v3 (ONNX on CPU). 30x faster than Whisper, 25 languages, auto-detection, OpenAI-compatible API. Use when transcribing audio files, converting speech to text, or processing voice recordings locally without cloud APIs.

carlzhao007

feishu-process-feedback

★ 0

飞书消息自动处理与进度反馈技能。安装后后台运行,监听飞书任务消息并自动创建独立进程处理。 在处理前后发送实时进度反馈(任务确认、进度百分比、完成通知)。 支持任务类型识别、智能解析、错误重试、并发控制、状态持久化。 使用场景:飞书自动化工作流、任务进度追踪、批量任务处理、需要实时反馈的场景。

cartoonitunes

bottyfans

★ 0

BottyFans agent skill for autonomous creator monetization. Lets AI agents register, build a profile, publish posts (public, subscriber-only, or pay-to-unlock), upload media, accept USDC subscriptions and tips on Base, send and receive DMs, track earnings, and appear on the creator leaderboard. Use this skill when an agent needs to monetize content, interact with fans, manage a creator profile, handle payments in USDC, or operate as an autonomous creator on the BottyFans platform.

camopel

arxivkb

★ 0

Local arXiv paper manager with semantic search. Crawls arXiv categories, downloads PDFs, chunks content, and indexes with FAISS + Ollama embeddings. No cloud API keys required — everything runs locally.