[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77KHZK233G9BAJEGS4FAE05":3,"skill-same:01M77KHZK233G9BAJEGS4FAE05":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M77KHZK233G9BAJEGS4FAE05","kuaishou-bilibili-publish",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fk\u002Fkuaishou-bilibili-publish\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# 快手\u002FB 站\u002F抖音视频发布技能\n\n## 🎯 技能概述\n\n参考小红书发布技能（xiaohongshu-skills）的结构，为快手、B 站、抖音三个平台提供视频发布自动化能力。\n\n**目标平台：**\n- 快手：https:\u002F\u002Fcp.kuaishou.com\u002F\n- B 站：https:\u002F\u002Fmember.bilibili.com\u002Fplatform\u002Fupload\u002Fvideo\u002Fframe\n- 抖音：https:\u002F\u002Fcreator.douyin.com\u002Fcreator-micro\u002Fcontent\u002Fupload\n\n---\n\n## 📝 2026-04-03 更新\n\n### 快手平台特殊规则\n\n**关键词格式：**\n- 快手最多支持 **4 个关键词**\n- 每个关键词前加 `#`，后加空格\n- 示例：`#美好的 #欢快 #一天的`\n\n**封面上传流程：**\n1. 点击「封面设置」按钮\n2. 切换到「上传封面」标签\n3. 点击「上传图片」按钮选择文件\n4. 点击「确认」应用封面\n\n**作品描述框：**\n- 标题和关键词写在同一个描述框中\n- 格式：`标题 #关键词 1 #关键词 2 #关键词 3 #关键词 4`\n\n---\n\n## 🔒 技能边界（强制）\n\n**所有发布操作只能通过浏览器自动化脚本完成：**\n\n- **唯一执行方式**：运行 `python scripts\u002Fcli.py \u003C子命令>` 控制 Chrome 浏览器\n- **禁止外部工具**：不得调用第三方 API、MCP 工具或其他实现\n- **必须先有运行中的 Chrome**，且用户已登录对应平台\n\n---\n\n## 📋 前置检查\n\n### 登录状态检查\n\n```bash\n# 打开对应平台，手动检查登录状态\npython scripts\u002Fcli.py --platform kuaishou check-login\npython scripts\u002Fcli.py --platform bilibili check-login\npython scripts\u002Fcli.py --platform douyin check-login\n```\n\n- 未登录时提示用户扫码登录\n- 支持 `--headless` 模式（未登录自动降级到有窗口模式）\n\n---\n\n## 📥 输入格式\n\n### TXT 配置文件格式\n\n```text\n标题：明天更好\n视频数据路径：\u002FUsers\u002Fxiaohei\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fkuaishou-bilibili-publish\u002Ftest_data\u002Ftest_video.mp4\n封面：\u002FUsers\u002Fxiaohei\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fkuaishou-bilibili-publish\u002Ftest_data\u002Fimage.png\n关键词：美好的，欢快，一天的\n```\n\n**字段说明：**\n- **标题**：视频标题（必填）\n- **视频数据路径**：视频文件绝对路径（必填）\n- **封面**：封面图片绝对路径（可选）\n- **关键词**：逗号或空格分隔的关键词\u002F标签（可选）\n\n---\n\n## 🚀 发布流程\n\n### 流程 A: 单平台发布\n\n#### 快手发布\n\n```bash\ncd \u002FUsers\u002Fxiaohei\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fkuaishou-bilibili-publish\u002Fscripts\n\n# 完整发布（填写 + 点击发布）\npython cli.py publish-kuaishou --config ..\u002Ftest_data\u002F描述.txt\n\n# 只填写表单，不发布（用于预览确认）\npython cli.py publish-kuaishou --config ..\u002Ftest_data\u002F描述.txt --no-publish\n\n# 指定等待超时时间（秒）\npython cli.py publish-kuaishou --config ..\u002Ftest_data\u002F描述.txt --wait-timeout 600\n```\n\n#### B 站发布\n\n```bash\n# 完整发布\npython cli.py publish-bilibili --config ..\u002Ftest_data\u002F描述.txt\n\n# 分步发布\npython cli.py publish-bilibili --config ..\u002Ftest_data\u002F描述.txt --no-publish\n# 在浏览器中确认预览后，手动点击发布\n```\n\n#### 抖音发布\n\n```bash\n# 完整发布\npython cli.py publish-douyin --config ..\u002Ftest_data\u002F描述.txt\n\n# 指定 Chrome 端口\npython cli.py publish-douyin --config ..\u002Ftest_data\u002F描述.txt --port 9222\n```\n\n---\n\n### 流程 B: 多平台一键发布\n\n```bash\n# 依次发布到快手、B 站、抖音\npython cli.py publish-all --config ..\u002Ftest_data\u002F描述.txt\n\n# 带超时设置\npython cli.py publish-all --config ..\u002Ftest_data\u002F描述.txt --wait-timeout 300\n```\n\n**注意：** `publish-all` 会在同一浏览器会话中依次执行三个平台的发布，总耗时可能较长（每个平台约 1-3 分钟）。\n\n---\n\n## 🛠️ 常用参数\n\n| 参数 | 说明 | 默认值 |\n|------|------|--------|\n| `--config path` | TXT 配置文件路径（必须） | - |\n| `--wait-timeout seconds` | 上传等待超时时间 | 300 |\n| `--no-publish` | 只填写表单，不点击发布 | false |\n| `--port PORT` | Chrome CDP 端口 | 9222 |\n| `--host HOST` | Chrome CDP 主机 | 127.0.0.1 |\n| `--headless` | 无头模式 | false |\n| `--user-data-dir path` | Chrome 用户数据目录 | `~\u002F.kbs\u002Fchrome-profile` |\n\n---\n\n## 📤 输出格式\n\n### 成功输出\n\n```json\n{\n  \"success\": true,\n  \"platform\": \"bilibili\",\n  \"title\": \"明天更好\",\n  \"video_path\": \"\u002Fpath\u002Fto\u002Fvideo.mp4\",\n  \"cover_path\": \"\u002Fpath\u002Fto\u002Fcover.png\",\n  \"keywords\": [\"美好的\", \"欢快\", \"一天的\"],\n  \"status\": \"发布完成\",\n  \"message\": \"视频上传成功，表单已填写\"\n}\n```\n\n### 失败输出\n\n```json\n{\n  \"success\": false,\n  \"platform\": \"kuaishou\",\n  \"error\": \"上传超时，请检查网络连接或视频文件大小\",\n  \"status\": \"上传失败\"\n}\n```\n\n---\n\n## ⚠️ 失败处理\n\n| 错误类型 | 可能原因 | 解决方案 |\n|---------|---------|---------|\n| **上传超时** | 视频文件过大、网络慢 | 增加 `--wait-timeout` 参数 |\n| **登录失效** | Cookie 过期 | 重新登录对应平台 |\n| **选择器失效** | 页面结构变更 | 更新 `selectors_*.py` 中的 CSS 选择器 |\n| **文件不存在** | 路径错误 | 检查 TXT 配置中的文件路径 |\n| **Chrome 未启动** | 调试端口未开放 | 确保 Chrome 以 `--remote-debugging-port=9222` 启动 |\n\n---\n\n## 📁 项目结构\n\n```\nkuaishou-bilibili-publish\u002F\n├── scripts\u002F\n│   ├── cli.py                     # CLI 入口（6.8KB）\n│   ├── chrome_launcher.py         # Chrome 启动器（9KB）\n│   ├── requirements.txt           # Python 依赖\n│   └── kbs\u002F                       # 核心模块\n│       ├── __init__.py\n│       ├── cdp.py                 # CDP 封装（22KB）\n│       ├── types.py               # 数据类型 + 配置解析（4KB）\n│       ├── selectors_ks.py        # 快手选择器（1.5KB）\n│       ├── selectors_bili.py      # B 站选择器（1.1KB）\n│       ├── selectors_dy.py        # 抖音选择器（859B）\n│       ├── publish_kuaishou.py    # 快手发布逻辑（4.5KB）\n│       ├── publish_bilibili.py    # B 站发布逻辑（4KB）\n│       └── publish_douyin.py      # 抖音发布逻辑（4.5KB）\n├── test_data\u002F\n│   ├── test_video.mp4             # 测试视频\n│   ├── image.png                  # 测试封面\n│   └── 描述.txt                   # 测试配置\n├── 任务.md                        # 任务需求文档\n└── SKILL.md                       # 技能说明文档（本文件）\n```\n\n---\n\n## 🎯 实现状态\n\n✅ 已完成：\n- CLI 入口和参数解析\n- Chrome 连接和会话管理\n- 三平台选择器定义\n- 视频上传（使用 CDP DOM.setFileInputFiles）\n- 封面上传\n- 标题\u002F关键词填写\n- 上传状态轮询（最多 5 分钟）\n- 单平台\u002F多平台发布模式\n\n⚠️ 待完善：\n- 实际页面选择器需要验证（不同时间页面结构可能变化）\n- 视频上传进度监控需要实际测试优化\n- 分区选择功能（B 站）需要实现\n- 定时发布功能需要实现\n- 封面上传功能需要实际测试\n\n---\n\n## 📝 注意事项\n\n1. **CSS 选择器**：基于常见页面结构推断，实际使用时可能需要根据目标网站的最新页面结构调整\n2. **视频上传**：大文件上传时间较长，建议设置 `--wait-timeout 600` 或更长\n3. **登录状态**：发布前请确保已在 Chrome 中登录对应平台\n4. **浏览器复用**：使用 `--port 9222` 可复用已登录的 Chrome 会话\n5. **错误处理**：上传失败时会抛出异常并返回错误信息\n\n---\n\n## 🔧 依赖安装\n\n```bash\ncd \u002FUsers\u002Fxiaohei\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fkuaishou-bilibili-publish\u002Fscripts\npip install -r requirements.txt\n# 或手动安装\npip install requests websockets\n```\n\n---\n\n**开发时间：** 2026-04-02  \n**参考技能：** xiaohongshu-skills\u002Fxhs-publish  \n**开发工具：** Cursor CLI Agent\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fk\u002Fkuaishou-bilibili-publish",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill kuaishou-bilibili-publish",{"tool":37,"command":38},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill kuaishou-bilibili-publish",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill kuaishou-bilibili-publish","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fk\u002Fkuaishou-bilibili-publish\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]