SkillsGrove
SkillsGrove/Vídeo corto y creadores/puppyfront-web/social-publish-skills/kuaishou-upload

kuaishou-upload

Instalación

$npx skills add https://github.com/puppyfront-web/social-publish-skills --skill kuaishou-upload
$git clone --depth 1 https://github.com/puppyfront-web/social-publish-skills.git /tmp/social-publish-skills && mkdir -p ~/.claude/skills && cp -r /tmp/social-publish-skills/skills/kuaishou-upload ~/.claude/skills/kuaishou-upload
Instala por favor esta Agent Skill por mí: https://github.com/puppyfront-web/social-publish-skills/tree/433b2b1a53509c867b354a497aac380e2190663a/skills/kuaishou-upload. Lee primero su SKILL.md y sus scripts, y solo instálala en mi carpeta de skills cuando hayas confirmado que es segura.

Resumen

Descripción original · MIT当 agent 需要编排快手视频的登录校验、cookie 持久化与发布进度可视化时使用。本仓库为独立 social-publish-skills,快手 TypeScript 引擎已通过 Playwright 完整实现。
El SKILL.md siguiente se reproduce de puppyfront-web/social-publish-skills (commit 433b2b1) bajo la licencia MIT. El texto no se ha modificado; solo se omiten los metadatos de cabecera del archivo, las imágenes se muestran como enlaces y los archivos muy largos se truncan. Copyright 2026 social-publish-skills contributors. Licencia: LICENSE. Solo se muestra el archivo de instrucciones; consulta el repositorio original para ver los scripts.

快手上传 Skill

本仓库 不依赖 外部上传项目;快手执行入口为 node dist/cli.js kuaishou(Node CLI),与抖音、视频号共用同一 CLI。拉取源码后需在本仓库根目录执行 npm install、npx playwright install chromium、npm run build 后再调用(见 references/runtime-requirements.md)。

Agent 执行规则(重要)

  • 默认由 Agent 在仓库根目录直接执行命令,不要让用户手动复制粘贴命令。
  • 只有在必须人工完成的步骤(扫码、短信验证码、账号确认、终端按 Enter)才请求用户介入。
  • 若缺少 dist/cli.js 或依赖未安装,Agent 先自动执行 npm install、npx playwright install chromium、npm run build,再继续业务命令。

标准执行模板(全自动优先)

  1. 在仓库根目录检查 dist/cli.js 是否可用。
  2. 若不可用,自动执行 npm install、npx playwright install chromium、npm run build。
  3. 自动执行目标命令(check / login / upload)。
  4. 仅在扫码或显式人工确认时暂停并请求用户操作;完成后由 Agent 继续后续步骤。

当前状态

  • 引擎:src/platforms/kuaishou.ts — 已完整实现(Playwright + TypeScript)
  • 功能:cookie 校验 / QR 扫码登录 / 视频上传 / 描述话题 / 定时发布 / 引导遮罩关闭

CLI 用法

# 校验 cookie
node dist/cli.js kuaishou check --account <name>

# 扫码登录
node dist/cli.js kuaishou login --account <name>

# 上传视频
node dist/cli.js kuaishou upload \
  --account <name> \
  --file /path/to/video.mp4 \
  --title "标题" \
  --desc "描述" \
  --tags "话题一,话题二" \
  --schedule "2026-04-10 10:00"

元数据约定

  • title:视频标题
  • description:描述内容(默认同标题)
  • tags:逗号分隔的话题(最多 3 个)

cookie 持久化策略

  • 路径:$SOCIAL_PUBLISH_DATA_DIR/cookies/kuaishou/<account>.json
  • upload 使用有头浏览器;若上传页未登录会跳转扫码,成功后写回 storageState;check 仍可用无头粗验(与实际上传态可能不完全一致)

发布进度可视化协议

8 阶段:INIT → COOKIE_CHECK → COOKIE_REFRESH → OPEN_PUBLISH_PAGE → UPLOAD_START → UPLOAD_TRANSFERRING → PUBLISHING → DONE

参考文档

  • references/runtime-requirements.md
  • references/cli-contract.md
  • references/troubleshooting.md
Ver el texto completo de la licencia (MIT)
MIT License

Copyright (c) 2026 social-publish-skills contributors

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.