Kuaishou Video logo

Kuaishou Video

Community
terryso
kuaishou-video

Publish a local video to the Kuaishou creator platform (cp.kuaishou.com) with Ego Lite via ego-browser. Login-check first. Success means the work shows 审核中. Optional comment from the creator comment manager. The caller supplies a local video file and a description. This skill does not download video. Use when the user asks to post to 快手, 快手发视频, 发布到快手创作者平台, or comment on a Kuaishou work from the creator backend.

Overview

Publisherterryso
Repositoryego-skills
Skill namekuaishou-video
Stars
34
Forks
3
Bundled files
25
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 25 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by terryso on GitHub. Read the source before you install it.

Installation

Install the Kuaishou Video AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/terryso/ego-skills/tree/main/skills/kuaishou-video
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/terryso/ego-skills.git /tmp/ego-skills
mkdir -p .claude/skills
cp -r /tmp/ego-skills/skills/kuaishou-video .claude/skills/kuaishou-video
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kuaishou Video in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Kuaishou Video on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Kuaishou Video is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

kuaishou-video

用 Ego Lite 会话把本地视频发到 快手创作者服务平台。终点是作品进入**「审核中」**。

Publish a local video file to the Kuaishou creator platform. The endpoint is 审核中. This skill does not download video.

先装 Ego

先装 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 在上传之前必须跑:

bash
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)。

CLI

ego-browser nodejs 不继承 shell 环境变量,也不转发 shell argv。publish.sh / comment.sh 先把 JSON 写到 /tmp,再交给 ego。

bash
# 仓库根目录
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。

发布脚本在做什么

  1. 打开 https://cp.kuaishou.com/article/publish/video。
  2. 用正文判断登录:出现「扫码登录 / 二维码登录 / 请登录」且没有创作者后台,则 exit 2 并 handOff()。
  3. 先 waitForFileChooser,再点 loc=role:button[name='上传视频']。
  4. 等到「重新上传」,再等到「上传中」消失并隔 2 秒复核。超时、等待次数用尽、出现上传失败文案,或读不到稳定状态时退出码 1。这时不会打印「上传完成」,也不会点「发布」。
  5. 写入 contenteditable 描述,回读 innerText,必须和 desc 一致。
  6. 用元素**自身文本精确等于「发布」**定位(不是「立即发布 / 定时发布」),scrollIntoView 后坐标点击。
  7. 成功:URL 含 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。

bash
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。

测试

bash
npm test

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Kuaishou Video AI skill do?

Publish a local video to the Kuaishou creator platform (cp.kuaishou.com) with Ego Lite via ego-browser. Login-check first. Success means the work shows 审核中. Optional comment from the creator comment manager. The caller supplies a local video file and a description. This skill does not download video. Use when the user asks to post to 快手, 快手发视频, 发布到快手创作者平台, or comment on a Kuaishou work from the creator backend.

Why use Kuaishou Video on TypingMind?

Because you install it once and use it with any model. Kuaishou Video is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Kuaishou Video in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/terryso/ego-skills/tree/main/skills/kuaishou-video. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Kuaishou Video?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Kuaishou Video?

As many as you like. As long as a model supports skills, you can use Kuaishou Video with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Kuaishou Video AI skill free?

Yes. It is published on GitHub by terryso under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇