SkillsGrove
SkillsGrove/Short video & creators/dreammis/social-auto-upload/kuaishou-upload

kuaishou-upload

Installation

$npx skills add https://github.com/dreammis/social-auto-upload --skill kuaishou-upload
$git clone --depth 1 https://github.com/dreammis/social-auto-upload.git /tmp/social-auto-upload && mkdir -p ~/.claude/skills && cp -r /tmp/social-auto-upload/skills/kuaishou-upload ~/.claude/skills/kuaishou-upload
Please install this Agent Skill for me: https://github.com/dreammis/social-auto-upload/tree/ea113097bd14956975129f0008ecccd221d02218/skills/kuaishou-upload — read its SKILL.md and scripts first, and only install it into my skills folder once you have confirmed it is safe.

Summary

Original description · MIT当 agent 需要通过已安装的 `sau` CLI 完成快手登录、cookie 校验、视频上传或图文发布时使用这个 skill。该 skill 适用于已经安装 `social-auto-upload` 且可调用 `sau` 命令的环境。优先使用这个 skill 进行稳定的命令式快手工作流,而不是一开始就阅读 uploader 源码。
The SKILL.md below is reproduced from dreammis/social-auto-upload (commit ea11309) under the MIT license. The text is unchanged; only the file header metadata is omitted, images are shown as links, and very long files are truncated. Copyright 2023 dreammis. License: LICENSE. Only the instructions file is shown; see the original repository for any scripts.

快手上传 Skill

优先把 sau 作为主接口。

不要假设当前环境一定能读取仓库源码。 不要一开始就去读 uploader/。 只有在命令不可用或 CLI 执行失败时,才回退到故障排查说明。

功能概览

功能 命令入口 说明
快手登录 sau kuaishou login --account <name> 生成或刷新指定账号的 cookie
cookie 校验 sau kuaishou check --account <name> 检查指定账号 cookie 是否有效
视频上传 sau kuaishou upload-video ... 上传并发布快手视频
图文上传 sau kuaishou upload-note ... 上传并发布快手图文

元数据约定:

  • 视频使用 title + desc + tags
  • 图文使用 title + note + tags

默认工作流

  1. 先确认 references/runtime-requirements.md 里的运行前提。
  2. 再确认 references/cli-contract.md 里的命令契约。
  3. 执行匹配的 sau kuaishou ... 命令。
  4. 如果命令失败,再看 references/troubleshooting.md。

支持动作

  • 使用 sau kuaishou login --account <name> 登录快手
  • 使用 sau kuaishou check --account <name> 校验 cookie 是否有效
  • 使用 sau kuaishou upload-video ... 上传快手视频
  • 使用 sau kuaishou upload-note ... 上传快手图文

命令选择建议

  • 当用户需要新的 cookie,或现有 cookie 已失效时,使用 login
  • 当用户只需要确认 cookie 状态时,使用 check
  • 当用户要发布视频时,使用 upload-video
  • 当用户要发布图文时,使用 upload-note

仅填写、不发布

sau kuaishou upload-video 和 sau kuaishou upload-note 会立即发布或定时发布,不提供“只填写表单”模式。

  • 用户明确要求发布时,继续使用上述 sau 命令。
  • 用户只要求准备发布表单、停在最终发布前供人工检查时,不要执行上述发布命令;可选择独立第三方项目 kuaishou-fill。
  • 用户意图不明确时,先确认目标是“仅填写”还是“发布”。

该替代项目不随本仓库安装,也不是 sau kuaishou 子命令。支持的内容类型、安装方式和限制以其文档为准。仅填写完成后只能报告“已填写,待人工确认”,不能报告“已发布”。

执行前检查

  • 先确认当前 shell 里是否可以调用 sau
  • 如果 sau 不可用,按 references/runtime-requirements.md 里的回退方式处理
  • 当用户明确指定无头或有头模式时,显式传 --headless 或 --headed
  • 只有用户明确要求定时发布时,才使用 --schedule
  • 如果登录流程生成了本地二维码图片,不要只把图片路径告诉用户
  • 二维码图片本身就是给用户扫码的,优先直接把本地图片展示/发送给用户

参考文档

  • 运行前提:references/runtime-requirements.md
  • CLI 契约:references/cli-contract.md
  • 故障排查:references/troubleshooting.md
View full license text (MIT)
MIT License

Copyright (c) 2023 dreammis

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.