技能图谱SKILLSGROVE
技能图谱/短视频与自媒体/puppyfront-web/social-publish-skills/multi-platform-publish-orchestrator

multi-platform-publish-orchestrator

安装

$npx skills add https://github.com/puppyfront-web/social-publish-skills --skill multi-platform-publish-orchestrator
$git clone --depth 1 https://github.com/puppyfront-web/social-publish-skills.git /tmp/social-publish-skills && mkdir -p ~/.claude/skills && cp -r /tmp/social-publish-skills/skills/multi-platform-publish-orchestrator ~/.claude/skills/multi-platform-publish-orchestrator
请帮我安装这个 Agent Skill:https://github.com/puppyfront-web/social-publish-skills/tree/433b2b1a53509c867b354a497aac380e2190663a/skills/multi-platform-publish-orchestrator ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MIT当 agent 需要按 JSON 配置顺序执行多平台发布、统一 cookie/进度阶段、并兼容 Linux/macOS/Windows 时使用。本仓库引擎为 TypeScript + Playwright,已实现 tencent / douyin / kuaishou / xiaohongshu / wechatmp / zhihu / baijiahao 七个平台。
以下 SKILL.md 内容转载自 puppyfront-web/social-publish-skills(提交 433b2b1),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 social-publish-skills contributors 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

多平台发布统一调度 Skill

Agent 执行规则(重要)

  • 默认由 Agent 在仓库根目录直接执行命令,不要让用户手动复制粘贴命令。
  • 只有在必须人工完成的步骤(扫码、短信验证码、账号确认、终端按 Enter、Inspector Resume)才请求用户介入。
  • 若缺少 dist/cli.js 或依赖未安装,Agent 先自动执行 npm install、npx playwright install chromium、npm run build,再继续业务命令。

标准执行模板(全自动优先)

  1. 在仓库根目录检查 dist/cli.js 是否可用。
  2. 若不可用,自动执行 npm install、npx playwright install chromium、npm run build。
  3. 自动执行 node dist/cli.js orchestrate --config <path> 或 verify-scan-login。
  4. 仅在扫码、Inspector Resume 或显式人工确认时暂停并请求用户操作;完成后由 Agent 继续后续步骤。

执行入口

在 social-publish-skills 根目录:

npm install
npx playwright install chromium   # 本机首次
npm run build                       # 生成 dist/(仓库不提交 dist)
node dist/cli.js orchestrate --config path/to/config.json

示例配置:references/orchestrator.config.example.json(本 skill 目录下)。可选字段 data_dir 会写入 process.env.SOCIAL_PUBLISH_DATA_DIR。

创作侧交接:内容创作技能(growth-content-writing / growth-content-ops)的终稿按 references/content-package.md 的「内容包」格式(带 frontmatter 的 Markdown)交付;Agent 按其「字段 → 各平台任务映射」表把内容包转成本 skill 的 tasks[] 配置后执行,不人工转抄字段。发布成功后按 CLI 提示把作品回流 personal-knowledge-wiki 的 hits-wiki/。

Shell 封装:scripts/examples/run_orchestrate.sh。

扫码登录链路验收(人工扫码,机器校验):node dist/cli.js verify-scan-login --account <别名>。抖音/快手 login 扫码阶段默认轮询;视频号多依赖 Inspector Resume 或 SOCIAL_PUBLISH_LOGIN_STDIN=1。各站保存后默认无头 check,可用 --skip-verify 关闭。

核心实现

  • src/orchestrator.ts:读取任务列表,按 platform 分发
  • src/platforms/tencent.ts:微信视频号
  • src/platforms/douyin.ts:抖音创作者平台
  • src/platforms/kuaishou.ts:快手创作者平台
  • src/platforms/xiaohongshu.ts:小红书创作者平台
  • src/platforms/wechatmp.ts:微信公众号图文
  • src/platforms/zhihu.ts:知乎文章
  • src/platforms/baijiahao.ts:百家号文章

已支持平台

平台 CLI 子命令 cookie 路径 状态
微信视频号 tencent cookies/tencent/<account>.json 已实现
抖音 douyin cookies/douyin/<account>.json 已实现
快手 kuaishou cookies/kuaishou/<account>.json 已实现
小红书 xiaohongshu cookies/xiaohongshu/<account>.json 已实现
微信公众号图文 wechatmp cookies/wechatmp/<account>.json 已实现
知乎文章 zhihu cookies/zhihu/<account>.json 已实现
百家号文章 baijiahao cookies/baijiahao/<account>.json 已实现

扩展新平台

在 src/platforms/ 实现发布函数 → 在 orchestrator.ts 增加 switch 分支 → 在 cli.ts 添加子命令 → 更新本 SKILL 与 references/orchestrator.config.example.json(或同类示例)。

进度协议

8 阶段:INIT → COOKIE_CHECK → COOKIE_REFRESH → OPEN_PUBLISH_PAGE → UPLOAD_START → UPLOAD_TRANSFERRING → PUBLISHING → DONE

参考

  • references/orchestration-contract.md
  • references/runtime-requirements-cross-platform.md
  • references/browser-cookie-compatibility.md
  • references/troubleshooting.md
查看许可证全文(MIT)
MIT License

Copyright (c) 2026 social-publish-skills contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.