〖工具推荐〗一个把飞书文档一键发布到微信公众号草稿箱的 CLI

Open Beginner friendly
#9,438 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
68/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Tech stack
markdown
Domain
content

Research direction

Review the linked feishu-wechat-cli repository and the documented publish examples first. Confirm the described Feishu-to-WeChat draft workflow and decide whether this recommendation fits the weekly's content; done when the submission is accepted or declined.

Written by the indexing model from the issue text.

Description

1. 自我介绍

大家好,我最近开源了一个小工具 feishu-wechat-cli

它做的事情很简单:把飞书文档一键发布到微信公众号草稿箱。

如果你平时是在飞书里写文章,定稿后还要手工导出、处理图片、再进公众号后台发文,这个工具就是为这条链路准备的。

仓库地址:
https://github.com/shing19/feishu-wechat-cli

OpenClaw 调用 skill 发布成功

2. 开发背景

我做它的原因很直接:现在很多内容都是在飞书里写和协作的,但真正发到公众号时,中间还是有不少重复劳动。

通常要经历这几步:

  1. 从飞书把内容导出来
  2. 重新处理正文图片
  3. 在公众号后台重新上传素材
  4. 再补作者、来源、封面这些信息

这些步骤本身不复杂,但很碎,也不适合反复手工操作。

所以我想做一个尽量克制的 CLI,不去做大而全的编辑器,只把“飞书 / Markdown -> 微信公众号草稿箱”这一步做好。

3. 实际效果

我最近用 OpenClaw 装了这个 skill 做了一次真实测试:直接把飞书文章链接发给它,它就自动调用这个 CLI,把文章送进了微信公众号草稿箱。

整个流程实际跑下来,不到一分钟。

更有意思的是,文章原本的作者字段里写的是“一作”,结果 OpenClaw 在发送时把它改成了 🦞,最后公众号草稿里显示成了“原创:🦞”。

这种小插曲很有意思。一方面说明这条自动化链路已经能跑通,另一方面也能看到,当文档、Agent、CLI 和发布渠道串起来以后,会出现一些非常鲜活的工作流细节。

公众号草稿箱里的最终效果

4. 核心功能

目前已经支持:

  1. 从飞书 wiki/docx 抓取 Markdown
  2. 自动下载飞书正文图片并上传到微信素材库
  3. 直接发布到微信公众号草稿箱
  4. 支持本地 Markdown 发布,不强依赖飞书
  5. 缺封面时可选自动生成封面图
  6. 提供 serve 模式,可以作为 HTTP 服务接入自己的自动化流程

5. 使用方式

例如,直接发布飞书文档:

feishu-wechat publish \
  --feishu "https://xxx.feishu.cn/wiki/xxxx" \
  --article-author "Your Name"

如果想连封面一起处理:

feishu-wechat publish \
  --feishu "https://xxx.feishu.cn/wiki/xxxx" \
  --auto-cover

如果阮老师觉得这个工具对“飞书写作 + 公众号发布”这个场景有帮助,欢迎收录。

Dominant language
No language data
Stars
103k
Forks
4.4k
Avg merge
19h 39m
Merged PRs (30d)
10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruanyf/weekly

All issues in ruanyf/weekly

Similar issues

More Content issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.