SkillsGrove
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와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · 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 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 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.