/ego-skills:kuaishou-videofrom ego-skills
Publishes a local video file to the Kuaishou creator platform (cp.kuaishou.com) via Ego Lite. Handles login check, upload, description, and optional comment management.
Ships in ego-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
用 Ego Lite 会话把本地视频发到 快手创作者服务平台。终点是作品进入**「审核中」**。
Publish a local video file to the Kuaishou creator platform. The endpoint is 审核中. This skill does not download video.
先装 Ego Lite,保证 ego-browser 在 PATH。缺失则 soft-fail / 告知用户去装,不要硬调浏览器。
Install Ego Lite and put ego-browser on PATH. If it is missing, soft-fail and tell the user. Do not hard-require the browser.
Agent 在上传之前必须跑:
node scripts/check-login.mjs
# 需要把窗口留给人扫码时:
node scripts/check-login.mjs --keep
| 退出码 | 含义 | Agent 做什么 |
|---|---|---|
0 | 已登录 | 把 login_tip 告诉用户,继续发布 |
2 | 未登录 / 无 ego-browser | 展示 how_to_login / how_to_login_zh,停。请人在 Ego 扫码后再跑 check-login |
1 | 其它错误 | 报告 JSON error,不要假装已发布 |
详见 references/login.md。不要另做 cookie-healthcheck 技能。
默认 finish({ keep: [] })。--keep 才把登录页留着并 handOff()。
调用方提供本地文件和文案。见 references/inputs.md。本技能不绑定任何产品系列、播客或业务目录,也不下载视频。
最少需要:本机 video 绝对路径、desc(话题写在描述字符串里,如 描述 #话题1 #话题2)。
ego-browser nodejs 不继承 shell 环境变量,也不转发 shell argv。publish.sh / comment.sh 先把 JSON 写到 /tmp,再交给 ego。
# 仓库根目录
node skills/kuaishou-video/scripts/check-login.mjs
node skills/kuaishou-video/scripts/check-login.mjs --keep
bash skills/kuaishou-video/scripts/publish.sh /absolute/path/to/video.mp4 "描述 #话题1 #话题2"
# 登录 handOff 或中断后,用 spaceId 续跑;最后一个 1 表示保留浏览器页
bash skills/kuaishou-video/scripts/publish.sh /absolute/path/to/video.mp4 "描述" 4 1
# 可选:后台评论管理(不是 www 公开页)
bash skills/kuaishou-video/scripts/comment.sh "评论内容"
bash skills/kuaishou-video/scripts/comment.sh "评论内容" "标题片段" 4 1
已安装的技能目录里用相对路径:node scripts/check-login.mjs、bash scripts/publish.sh …。
| 退出码 | 含义 |
|---|---|
0 | 成功。发布 stdout 含 {"ok":true,"status":"审核中",...} |
1 | 参数或流程错误 |
2 | 需要登录。发布/评论脚本在登录墙上会 handOff() |
创作者表单没有 wujie,所以上传、描述、点击发布由 publish.js 做完。Agent 不要另写一套填表脚本,除非脚本报了 flow error 并留下 spaceId。
https://cp.kuaishou.com/article/publish/video。handOff()。waitForFileChooser,再点 loc=role:button[name='上传视频']。1。这时不会打印「上传完成」,也不会点「发布」。innerText,必须和 desc 一致。scrollIntoView 后坐标点击。article/manage/video,且页面有「审核中」。成功时默认 finish({ keep: [] })。第 4 个参数 1 才保留页面。
comment.sh 打开 https://cp.kuaishou.com/article/comment。该页默认选中最新作品。占位是「有爱评论,说点儿好听的」,发送按钮用精确文本「发送」。
成功:toast「发送成功」,且评论出现在列表里。标题片段对不上就 exit 1,不要发错作品。
cp.kuaishou.com 和 www.kuaishou.com 不共享登录态。不要去公开页评论。
完整清单在 references/pitfalls.md。发布前先 login-check;exit 2 必须停。
publish.js / comment.js 报错后,JSON 里的 spaceId 可以回到原 space。不要为了排查再开一个 space。
ego-browser nodejs <<'EOF'
const task = await taskSpace(4);
const page = task.page("p1");
console.log({ url: await page.url() });
console.log(await page.snapshot());
EOF
把 4 换成实际 spaceId。
npm test
agents/openai.yaml (opens in a new tab)references/inputs.md (opens in a new tab)references/login.md (opens in a new tab)references/pitfalls.md (opens in a new tab)scripts/check-login.mjs (opens in a new tab)scripts/comment.js (opens in a new tab)scripts/comment.sh (opens in a new tab)scripts/lib/config-file.mjs (opens in a new tab)scripts/lib/ego-deps.mjs (opens in a new tab)scripts/lib/launch-check.mjs (opens in a new tab)scripts/lib/pure.mjs (opens in a new tab)scripts/lib/run-check.mjs (opens in a new tab)scripts/lib/run-ego.mjs (opens in a new tab)scripts/lib/upload-wait.mjs (opens in a new tab)scripts/publish.js (opens in a new tab)scripts/publish.sh (opens in a new tab)scripts/run-ego-module.mjs (opens in a new tab)scripts/test/config-file.test.mjs (opens in a new tab)scripts/test/launch-check.test.mjs (opens in a new tab)scripts/test/pure.test.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub terryso/ego-skills --plugin ego-skills14 skills in this plugin
/bilibili-videoPublish a local video to the Bilibili creator platform (member.bilibili.com) with Ego Lite via ego-browser. Login-check first. Bilibili wants TWO covers uploaded separately: --cover-4x3 (首页推荐) and --cover-16x9 (个人空间). Nothing is submitted without --yes: that run only prints a local plan and exits 3. --type selects a partition from the human-type list and reads it back; a missing name stops before 立即投稿. Success is 投稿成功 / 审核中, with a BV URL or identity unconfirmed. Bilibili has no private visibility on web upload: approved submissions go public. Use when the user asks to post to B站, 哔哩哔哩, B站投稿, or publish a video to bilibili./chatgpt-image-genExpand a rough image idea with the six-axis domain engine from codex-imagegen, then create one image on the free ChatGPT website inside Ego Lite. Login-check first. Soft-fail with exit 2 when ego-browser is missing, chatgpt.com is logged out, or login cannot be proven. enrich and generate without --yes are offline. --yes sends one prompt and saves the image to --out. Flowcharts and timelines are SVG, not images. Does not call codex exec and does not use an API key. Use when the user asks to generate an image, enrich a prompt, or use ChatGPT Images without a Codex subscription./douyin-videoPublish a local video to the Douyin creator center (creator.douyin.com) with Ego Lite via ego-browser. Login-check first. Title is a separate field of at most 30 characters. Success is a redirect to content management or a publish-success message. The caller supplies a local video file. This skill does not download video. Use when the user asks to post to 抖音, 抖音发视频, 发布到抖音创作者中心, or creator.douyin.com./instagram-saved-downloadDownload the user's own Instagram Saved posts (images, and MP4 when asked) with Ego Lite cookies via ego-browser. Soft-fails if Instagram is logged out and tells the user that signing in is what makes Saved readable. Personal archive only. Each run checks login itself./pinterest-downloadSearch Pinterest and save images or MP4s with the user's Ego Lite cookies. Also related pins, board feeds, and small previews the model can read. Parity with @sunkimkk/pinterest-mcp. Soft-fails if Pinterest is logged out, and always tells the user that signing in inside Ego improves results. Personal use only./teambition-egoRead and update Teambition test plans and single test cases through the Ego Lite browser session (www.teambition.com). Login-check first. Phase 2a writes are create, update title/precondition/steps, set-status, and archive (delete --yes). Use when the user mentions Teambition 测试用例, 用例库, 测试计划, testplan, or case steps. Do not use teambition_cli, an Open API token, or the task search API for this module.
Other plugins' skills for the same job