social-publish-skills
AGENTS.md14 starsChanged 6 months agoMITView on GitHub
你是自动化助手时,请*先读本文件再执行命令*。详细人类文档见 README.md;各平台语义与边界见 skills/<平台>/SKILL.md 与 references/。 开发调试用:npm run dev -- <同上参数>(无需先 build)。 skills/bilibili-upload 等为占位,*不要*对用户声称本仓库 CLI 已支持 B 站上传。
- Reads credentials
In this repository15 other files it gives its agents.
- baijiahao-article-uploadSkill
- bilibili-uploadSkill
- content-toolkitSkill
- douyin-upload-promptSkill
- douyin-uploadSkill
- growth-content-opsSkill
- growth-content-strategySkill
- growth-content-writingSkill
- kuaishou-uploadSkill
- multi-platform-publish-orchestratorSkill
- personal-knowledge-wikiSkill
- tencent-uploadSkill
- wechatmp-article-uploadSkill
- xiaohongshu-uploadSkill
- zhihu-article-uploadSkill
The file
Files
给 AI / LLM 的操作说明(本仓库)
你是自动化助手时,请先读本文件再执行命令。详细人类文档见 README.md;各平台语义与边界见 skills/<平台>/SKILL.md 与 references/。
你必须遵守
- 工作目录:所有
npm/node dist/cli.js命令在本仓库根目录执行(与package.json同级)。 - 构建优先:若不存在
dist/cli.js,先执行:npm install、npx playwright install chromium、npm run build。不要假设上游已提交dist/。 - 路径:
--file使用用户提供的绝对路径;JSON 配置里的video_file也使用绝对路径。微信公众号publish --source若是本地 Markdown,也必须是绝对路径。 - 隐私:勿将
~/.social-publish-skills/cookies/下任何 JSON 读入对话全文或写入仓库;勿提交.env。 - 真实环境:需要扫码或浏览器时,在用户本机运行 CLI;你侧沙箱无法代替用户完成扫码。
统一入口
node dist/cli.js <tencent|douyin|kuaishou> <check|login|upload> [选项]
node dist/cli.js xiaohongshu <check|login|upload-video|upload-note|stats> [选项]
node dist/cli.js <wechatmp|zhihu|baijiahao> <check|login|publish> [选项]开发调试用:npm run dev -- <同上参数>(无需先 build)。
按任务执行
| 用户意图 | 推荐动作 |
| 首次或换账号登录 | node dist/cli.js <平台> login --account <别名> |
| 检查 cookie | node dist/cli.js <平台> check --account <别名> |
| 发一个视频 | node dist/cli.js <平台> upload --account <别名> --file <绝对路径> --title "..." |
| 发小红书视频 | node dist/cli.js xiaohongshu upload-video --account <别名> --file <绝对路径> --title "..." |
| 发小红书图文 | node dist/cli.js xiaohongshu upload-note --account <别名> --images <绝对路径...> --title "..." |
| 抓小红书创作者后台数据 | node dist/cli.js xiaohongshu stats --account <别名>(快照落 ~/.social-publish-skills/accounts/xiaohongshu/<别名>/snapshots/,供账号诊断与周复盘) |
| 发公众号图文 | node dist/cli.js wechatmp publish --account <别名> --source <绝对路径或URL> --title "..." |
| 发知乎文章 | node dist/cli.js zhihu publish --account <别名> --source <绝对路径或URL> --title "..." |
| 发百家号文章 | node dist/cli.js baijiahao publish --account <别名> --source <绝对路径或URL> --title "..." |
| 多平台顺序发 | 复制并编辑 skills/multi-platform-publish-orchestrator/references/orchestrator.config.example.json(支持 tencent/douyin/kuaishou/xiaohongshu/wechatmp/zhihu/baijiahao 混排),再 node dist/cli.js orchestrate --config <该文件路径> |
| 创作终稿转发布配置 | 按 skills/multi-platform-publish-orchestrator/references/content-package.md 的内容包格式与字段映射表,转成各平台 CLI 参数或 orchestrator tasks[] |
| 三站各登录一遍验收 | node dist/cli.js verify-scan-login --account <别名> |
平台差异(易错)
- 微信视频号
tencent:upload有--tags,无--desc。建议SOCIAL_PUBLISH_HEADLESS=0便于排错;登录后常需 Inspector Resume 或SOCIAL_PUBLISH_LOGIN_STDIN=1。 - 抖音
douyin:upload有--desc、--tags;标题约 30 字内;login/ 上传页内登录默认轮询扫码成功,一般不必点 Resume。可选SOCIAL_PUBLISH_LOGIN_NO_POLL=1关闭轮询。 - 快手
kuaishou:--tags最多 3 个话题;login与upload内登录支持轮询;未登录上传页可能出现「去上传」,引擎会跳转扫码。 - 小红书
xiaohongshu:视频用upload-video,图文用upload-note;本地--file/--images必须是绝对路径;两者均支持--draft存草稿(不直接发布);首版建议SOCIAL_PUBLISH_HEADLESS=0便于扫码与安全验证。 - 微信公众号
wechatmp:publish支持--source-type auto|markdown|github|url。默认点击“保存草稿”;只有显式传--publish才会尝试发布。首版建议SOCIAL_PUBLISH_HEADLESS=0便于观察编辑器行为。 - 知乎
zhihu:publish支持--source-type auto|markdown|github|url。默认保存草稿或等待编辑器自动保存;只有显式传--publish才会尝试发布。首版建议SOCIAL_PUBLISH_HEADLESS=0便于观察编辑器行为。 - 百家号
baijiahao:publish支持--source-type auto|markdown|github|url。默认保存草稿或等待编辑器自动保存;只有显式传--publish才会尝试发布。首版建议SOCIAL_PUBLISH_HEADLESS=0便于扫码与安全验证。
环境变量(常用)
SOCIAL_PUBLISH_DATA_DIR:cookie 根目录(默认~/.social-publish-skills)。SOCIAL_PUBLISH_HEADLESS=0:有头浏览器(上传/登录调试)。SOCIAL_PUBLISH_CHROME_PATH:可选,指定本机 Chrome 可执行文件。SOCIAL_PUBLISH_LOGIN_STDIN=1:登录完成后在终端按 Enter,代替 Inspector。SOCIAL_PUBLISH_LOGIN_NO_POLL=1:仅影响抖音login的自动轮询。
失败时
- 确认已
npm run build且npx playwright install chromium已执行。 - 上传失败:用
SOCIAL_PUBLISH_HEADLESS=0重试;按提示重新login。 - 不要改业务逻辑去「跳过登录」或硬编码用户 cookie。
未实现
skills/bilibili-upload 等为占位,不要对用户声称本仓库 CLI 已支持 B 站上传。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

