wechat-xhs-publisher

微信公众号与小红书一键发布工具。当需要将热点新闻改写成公众号文章并发布到微信公众号和小红书时使用,包括:1)根据热点新闻改写公众号文章 2)使用AI生成文章配图 3)发布前IP检测 4)发布到微信公众号 5)发布到小红书。触发场景:热点新闻发布、公众号文章发布、小红书种草、社交媒体同步发布。

3,891 stars

Best use case

wechat-xhs-publisher is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

微信公众号与小红书一键发布工具。当需要将热点新闻改写成公众号文章并发布到微信公众号和小红书时使用,包括:1)根据热点新闻改写公众号文章 2)使用AI生成文章配图 3)发布前IP检测 4)发布到微信公众号 5)发布到小红书。触发场景:热点新闻发布、公众号文章发布、小红书种草、社交媒体同步发布。

Teams using wechat-xhs-publisher should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/wechat-xhs-publisher/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/achievejia/wechat-xhs-publisher/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/wechat-xhs-publisher/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How wechat-xhs-publisher Compares

Feature / Agentwechat-xhs-publisherStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

微信公众号与小红书一键发布工具。当需要将热点新闻改写成公众号文章并发布到微信公众号和小红书时使用,包括:1)根据热点新闻改写公众号文章 2)使用AI生成文章配图 3)发布前IP检测 4)发布到微信公众号 5)发布到小红书。触发场景:热点新闻发布、公众号文章发布、小红书种草、社交媒体同步发布。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 微信公众号与小红书发布工具

将热点新闻一键改写并发布到微信公众号和小红书。

## 工作流程

```
[热点新闻] → [Step1:公众号文章创作] → [Step2:AI配图生成] → [Step3:IP检测] → [Step4:公众号发布] → [Step5:小红书发布]
```

## Step 1: 公众号文章创作

### 输入
- 热点新闻素材(标题、内容要点)
- 写作风格要求

### 核心命令
根据热点新闻和写作风格,生成一篇新的公众号文章:
1. 分析热点新闻的核心要点
2. 按照指定风格创作文章
3. 生成Markdown格式文章,包含frontmatter元数据

### 写作风格
- 根据用户指定风格执行
- frontmatter中的author使用用户提供的作者名

### 输出
- Markdown格式文章
- 保存在 `post-to-wechat/YYYY-MM-DD/` 目录
- frontmatter包含:title, author, date, source, cover_image

## Step 2: AI配图生成

### 核心命令
根据文章内容,分析需要生成的配图和插图数量,调用图像API生成对应图片:
1. 分析文章结构和内容要点
2. 确定需要几张配图(封面+内文插图)
3. 为每张图片生成合适的prompt
4. 调用图像API生成图片

### 配图规划
根据文章内容确定配图数量和风格

### 工具
使用 baoyu-image-gen 或直接调用图像API

### 保存路径
- 复制到文章目录:`post-to-wechat/YYYY-MM-DD/img/`
- 并保存到工作区:`img/`

## Step 3: IP检测

### 核心命令
在发布公众号文章前,调用 wechat-ip-checker 技能检测公网IP:
1. 获取当前公网IP(通过 ip38.com)
2. 与配置文件中的记录IP比对
3. IP无变化 → 继续执行公众号发布
4. IP有变化 → 中断流程,通知用户确认

### 工具
使用 wechat-ip-checker skill

### 配置文件
- 位置:`{workspace}/wechat_ip_config.md`
- 格式:
```markdown
# 微信公众号发布公网IP记录
公网IP地址: xxx.xxx.xxx.xxx
IP查询来源: https://www.ip38.com/
```

### 判断逻辑
- ✅ IP相同:继续执行 Step 4
- ❌ IP不同:中断流程,提示用户添加新IP到白名单

## Step 4: 公众号发布

### 工具
使用 baoyu-post-to-wechat

### 发布命令
```bash
cd <baoyu-post-to-wechat路径>
npx -y bun scripts/wechat-api.ts <文章md文件> \
  --theme default \
  --cover <封面图绝对路径> \
  --author "<作者名称>"
```

### 关键参数
- `--theme default` 必填
- `--cover` 使用绝对路径
- 配图路径需转换为相对路径(相对于文章md文件)

### 重要
- 发布时勾选原创声明
- 确保图片与文章一起上传

## Step 5: 小红书发布

### 工具
使用 xiaohongshu MCP (mcporter)

### 发布命令
```bash
mcporter call 'xiaohongshu.publish_content(
  title: "标题",
  content: "正文",
  images: ["图片绝对路径1", "图片绝对路径2"],
  tags: ["话题1", "话题2"],
  is_original: true
)'
```

### 关键参数
- `is_original: true` **必须**勾选原创
- 图片使用绝对路径
- 标题≤20字
- 正文不要包含#标签(通过tags传递)

## 常见问题

### Q: 图片路径问题
A: 封面图使用绝对路径;文章内配图使用相对于md文件的相对路径,并将图片复制到md文件同目录下

### Q: 小红书漏掉原创
A: 必须在参数中添加 `is_original: true`

### Q: 公众号图片未上传
A: 确保图片在md文件同目录下,脚本会自动上传

## 输出报告格式

```
## ✅ 发布完成

### 公众号
- 状态:草稿已保存
- media_id:xxx

### 小红书
- 状态:发布完成
- 原创:✅
```

Related Skills

nansen-binance-publisher

3891
from openclaw/skills

Automatically fetch multi-dimensional on-chain data using Nansen CLI, compile a comprehensive and beautifully formatted daily report, and publish it to Binance Square. Auto-run on messages like 'generate nansen daily report', 'post nansen daily to square', or when the user triggers the slash commands `/nansen` or `/post_square`.

Content & Documentation

name: welight-wechat-layout-publish

3891
from openclaw/skills

description: Welight standalone skill for turning an article into WeChat Official Accounts compatible Markdown/HTML, presenting built-in theme choices, and publishing to WeChat as a draft or formal post when publishing prerequisites are already configured.

Content & Documentation

wechat-publisher

3891
from openclaw/skills

一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli,支持多主题、代码高亮、图片自动上传。

Content & Documentation

wechat-mp-reader

3891
from openclaw/skills

Read WeChat official account articles. Use the built-in browser tool to open the page and extract body text. Always append ?scene=1 to the URL.

mastodon-publisher

3891
from openclaw/skills

Publish content to Mastodon. Use when you need to post a Mastodon status.

clawphone-wechat-control

3891
from openclaw/skills

处理微信会话列表、进入聊天、发送消息、处理微信内弹窗与聊天页失败排查。适用于用户要求查看微信消息、回复联系人、转发、处理聊天输入框或发送失败时。执行时必须先确认当前在微信的哪个页面,再按聊天场景一步一验。

wechat-content-creator

3891
from openclaw/skills

Create high-quality WeChat public account articles with high eCPM. Use when writing WeChat articles, optimizing titles, selecting topics, or improving content quality. Covers 8 golden opening templates, SCQA structure, long-tail keyword integration, high-value niches like legal, finance, career, and compliance guidelines. Triggers on requests like write WeChat article, 公众号文章, 爆款文案, title optimization, 选题, eCPM optimization, or 长尾关键词.

weibo-publisher

3891
from openclaw/skills

Publish posts to Weibo (Sina Weibo) using browser automation. Use when the user wants to post content to Weibo, share updates on Weibo, publish microblogs, or automate Weibo posting. Supports text posts with emoji, hashtags, and mentions. No API key required - uses browser automation with managed browser profile.

name: wechat_messaging

3891
from openclaw/skills

description: 通过微信向好友发送消息。流程:查询好友 -> 确认目标 -> 发送内容。

name: wechat_operate

3891
from openclaw/skills

description: 通过微信进行社交管理与消息发送。流程:查询目标(好友/群聊/成员) -> 确认目标 -> 发送内容(文本/图片/文件)。

wordpress-publisher

3891
from openclaw/skills

Publish content directly to WordPress sites via REST API with full Gutenberg block support. Create and publish posts/pages, auto-load and select categories from website, generate SEO-optimized tags, preview articles before publishing, and generate Gutenberg blocks for tables, images, lists, and rich formatting. Use when user wants to publish to WordPress, post to blog, create WordPress article, update WordPress post, or convert markdown to Gutenberg blocks.

wechat-comic-factory

3891
from openclaw/skills

Generate WeChat comic articles and publish them to the WeChat Official Account draft box by executing local Python pipeline scripts. Use when the user wants to create a comic series from comic_type, topic, and count, or publish the latest generated task. In this skill, “发布” and “发微信” always mean only pushing to the WeChat Official Account draft box; never reinterpret them as personal chat, group chat, or message-tool sending.