SkillsGrove
SkillsGrove/숏폼 영상 및 크리에이터/puppyfront-web/social-publish-skills/xiaohongshu-upload

xiaohongshu-upload

설치

$npx skills add https://github.com/puppyfront-web/social-publish-skills --skill xiaohongshu-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/xiaohongshu-upload ~/.claude/skills/xiaohongshu-upload
이 Agent Skill을 설치해 주세요: https://github.com/puppyfront-web/social-publish-skills/tree/433b2b1a53509c867b354a497aac380e2190663a/skills/xiaohongshu-upload — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MIT当 agent 需要完成小红书登录、cookie 校验、视频发布或图文笔记发布时使用。使用本仓库 TypeScript + Playwright 引擎;命令为 node dist/cli.js xiaohongshu check|login|upload-video|upload-note(或 npm run dev --)。
아래 SKILL.md는 puppyfront-web/social-publish-skills(커밋 433b2b1)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 social-publish-skills contributors. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

小红书上传 Skill

Agent 执行规则(重要)

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

执行入口(本仓库)

在 social-publish-skills 根目录:

node dist/cli.js xiaohongshu check --account <name>
node dist/cli.js xiaohongshu login --account <name>
node dist/cli.js xiaohongshu upload-video \
  --account <name> \
  --file <absolute_video_path> \
  --title "..."
node dist/cli.js xiaohongshu upload-note \
  --account <name> \
  --images <absolute_image_1> <absolute_image_2> \
  --title "..."

参数约定

视频

  • --file:视频绝对路径,必填
  • --title:标题,必填
  • --desc:描述,可选,默认同标题
  • --tags:逗号分隔话题,可选
  • --schedule:定时发布,格式 YYYY-MM-DD HH:mm
  • --draft:存草稿(「暂存离开」进草稿箱),可选,默认直接发布

图文

  • --images:图片绝对路径列表,至少 1 张
  • --title:标题,必填
  • --note:正文,可选,默认同标题
  • --tags:逗号分隔话题,可选
  • --schedule:定时发布,格式 YYYY-MM-DD HH:mm
  • --draft:存草稿,可选,默认直接发布

cookie 持久化

  • 默认目录:$SOCIAL_PUBLISH_DATA_DIR/cookies/xiaohongshu/<account>.json
  • 发布前后引擎会读写 Playwright storageState

平台边界

  • 支持小红书创作者平台视频和图文笔记。
  • 当前实现参考抖音适配器,使用 Playwright 直接操作 creator.xiaohongshu.com。
  • 首次验收建议设置 SOCIAL_PUBLISH_HEADLESS=0 观察扫码、上传控件和安全验证。

进度可视化

引擎在控制台输出 ⏳/✅/❌ [step/total] STAGE - message;agent 应同步转述给用户。

라이선스 전문 보기(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.