技能图谱SKILLSGROVE
技能图谱/短视频与自媒体/gybin02/easypost/xiaohongshu-upload

xiaohongshu-upload

安装

$npx skills add https://github.com/gybin02/easypost --skill xiaohongshu-upload
$git clone --depth 1 https://github.com/gybin02/easypost.git /tmp/easypost && mkdir -p ~/.claude/skills && cp -r /tmp/easypost/skills/xiaohongshu-upload ~/.claude/skills/xiaohongshu-upload
请帮我安装这个 Agent Skill:https://github.com/gybin02/easypost/tree/03eaf87d961d1dc6497d93f4d59a7fa0c13545d8/skills/xiaohongshu-upload ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MIT使用 EasyPost 自动填充或发布小红书创作者中心的图文笔记与短视频。Use when 用户需要向小红书发布图文或短视频。
以下 SKILL.md 内容转载自 gybin02/easypost(提交 03eaf87),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 EasyPost Authors 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

小红书自动填充与发布 Skill

使用 EasyPost 通过创作者日常已登录的 Chrome 浏览器无感填充或发布小红书内容,免配置 Cookie,避免 CDP 探针风控。

平台规格限制与最佳实践

  • 内容形态:
    • imageText:图文笔记(1~18 张图片,推荐 3:4 比例);
    • shortVideo:短视频(推荐 9:16 竖版)。
  • 字段限制:
    • 标题:最大 20 个字(超过会被平台截断或拒绝);
    • 正文:最多 1000 字,支持 #话题 格式;
    • 封面:短视频建议提供竖版封面,对应 role: "cover"。

工作流程

  1. 核验参数:确保标题不超过 20 字,提取前 3~5 个核心标签;
  2. 生成任务配置;
  3. 优先执行 easypost fill(将图片与标题文案填入小红书创作后台,让用户人工在浏览器中微调并点击发布);
  4. 若用户显式要求自动提交,附加 --yes 执行 easypost publish。

示例

发布图文笔记

printf '%s\n' '{
  "type": "imageText",
  "platforms": ["xiaohongshu"],
  "data": {
    "title": "极简桌面好物推荐",
    "content": "近期淘到的几款提升办公幸福感的小物件,尤其是这个磁吸支架... #桌面搭配 #好物推荐 #生产力工具",
    "tags": ["桌面搭配", "好物推荐"]
  },
  "assets": [
    {
      "path": "/absolute/path/to/desktop1.jpg",
      "role": "media"
    },
    {
      "path": "/absolute/path/to/desktop2.jpg",
      "role": "media"
    }
  ]
}' | easypost fill

发布短视频

printf '%s\n' '{
  "type": "shortVideo",
  "platforms": ["xiaohongshu"],
  "data": {
    "title": "3分钟学会高效剪辑",
    "content": "新手剪辑避免踩坑的几个技巧,建议收藏!#剪辑教程 #创作日常"
  },
  "assets": [
    {
      "path": "/absolute/path/to/video.mp4",
      "role": "media"
    },
    {
      "path": "/absolute/path/to/cover_vertical.jpg",
      "role": "cover"
    }
  ]
}' | easypost fill
查看许可证全文(MIT)
MIT License

Copyright (c) 2026 EasyPost Authors

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.