Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Ego Xiaohongshu Notes

БесплатноЗапускает вложенные скриптыНе проверен

Publish one Xiaohongshu (小红书) note — video or image-text — through the creator web UI in Ego Lite. Login-check first. Soft-fail when ego-browser is missing…

terrysoот terryso201 установка в других каталогах

Об этом скилле

xiaohongshu-ego

用 Ego Lite 里已经登录的创作者会话,发一条小红书笔记:视频笔记或图文笔记。只走 creator 网页,不走 MCP。

Publish one note — a video note or an image-text note — through the logged-in creator site. Ego Lite and ego-browser only. Not MCP.

成功标准是 stdout 打出 https://www.xiaohongshu.com/explore/<noteId>,页面曾出现「发布成功」。没有这条链接就不算成功。

Success is https://www.xiaohongshu.com/explore/<noteId> after 「发布成功」.

先装 Ego

先装 Ego Lite,保证 ego-browser 在 PATH。非交互 shell 找不到时,再试 ~/.local/bin/ego-browser。仍然缺失则 soft-fail(退出码 2),不要改用 Playwright、Puppeteer 或云端浏览器。

Install Ego Lite and put ego-browser on PATH. A non-interactive shell also tries ~/.local/bin/ego-browser. If it is still missing, soft-fail with exit 2. Do not switch to Playwright, Puppeteer, or a cloud browser.

封面

传 --cover 才会换主封面(例如 cover-3x4.png)。2026-11-05 改版后走「编辑封面」弹窗:悬停主封面卡片(.cover--column .default.column)让「编辑封面」(.cover-edit-entry)显现并点击,把图片传进弹窗里的 .upload-btn input.upload-input,等「完成」按钮变为可用后点它。主封面预览(卡片 background-image)必须发生变化,才点「发布」。确认失败就退出,不要带着视频首帧发布。

PK 封面槽不能代替主封面。只上传 PK 时,主封面和笔记管理缩略图仍是视频首帧,角标「封面待PK」,要等约 72 小时 PK 结束才会换。因此 --cover 不走 PK 槽。

不传 --cover 时,平台默认就是视频首帧。技能不会自己造一张封面。

图文笔记没有 --cover:第一张图就是封面,传了 --cover 直接校验失败。图文走「上传图文」tab,见下面的图文一节。

Pass --cover to set the main cover (for example cover-3x4.png) through the cover editor dialog, verified on 2026-11-05: hover the 主封面 card (.cover--column .default.column) to reveal 编辑封面 (.cover-edit-entry), click it, setInputFiles the image into .upload-btn input.upload-input, wait for the 完成 button to enable, then click it. Click 发布 only after the main-cover preview (the card's background-image) changes. If that confirmation fails, the run fails and does not publish the first frame.

PK slots are not this path. Uploading only a PK cover leaves the main cover and the note-manager thumbnail as the video's first frame (badge 封面待PK) until the 72-hour PK ends. --cover does not use the PK slots.

Without --cover, Xiaohongshu keeps the first frame. This skill does not invent a cover.

Image-text notes have no --cover: the first image is the cover, and passing --cover fails validation. Image-text publishes through the 上传图文 tab, see the image-text section below.

图文笔记

--images 接受逗号分隔的绝对路径(1–18 张,.jpg .jpeg .png .webp,单张不超过 32MB),和 --video 互斥。发布走「上传图文」tab:

  1. 点文案恰好为「上传图文」的叶子元素。切过去之后 URL 会带 target=image。
  2. 找到图片上传框。它和视频上传框同类名 input.upload-input,只能靠 accept 区分:图文是 .jpg,.jpeg,.png,.webp 且 multiple,视频是 .mp4,...。绝不能把视频 accept 的输入当图片输入。
  3. 一次 setInputFiles 传入全部路径(数组)。
  4. 等所有缩略图出现(blob: 或 sns-img 的 img 数量 ≥ 张数,或计数 N/18 ≥ 张数),且没有「上传中 N%」「上传失败」,才继续。
  5. 图文页的「发布」按钮在 closed shadow root 里,DOM 选择器摸不到,要用无障碍快照里的 button [ref=N](精确文本「发布」)点 ref=N。不要点 .btn-wrapper——那是侧边栏「发布笔记」菜单,点了会把草稿存进草稿箱。详见 references/imagetext-flow.md。
  6. 之后与视频相同:标题、正文、账号闸门、发布成功。

第一张图就是封面,没有确认环节。--cover 在图文模式下校验直接失败。

--images takes comma-separated absolute paths (1-18 images, .jpg .jpeg .png .webp, max 32MB each) and is mutually exclusive with --video. The flow clicks the 上传图文 tab (the URL gains target=image), finds the upload input — same class input.upload-input as the video input, told apart only by the accept .jpg,.jpeg,.png,.webp with multiple — sets all files in one setInputFiles call, waits until every thumbnail is counted (blob:/sns-img images ≥ count, or the N/18 counter ≥ count) with no 上传中/上传失败 text, then continues like a video: title, body, account gate, 发布, 发布成功. The first image is the cover; --cover fails validation on this mode.

不能带链接

小红书笔记不能出现链接。--title、--desc、--topics 里的 http(s)://、www.、裸域名(如 github.com/xxx、x.com/xxx)和 t.co 默认直接失败,退出码 4,并列出片段。不要发布。把链接从文案里删掉,或加 --strip-links:删掉链接,并去掉同一行上因此悬空的「项目地址:」「链接:」,收掉多余空行,同时打印删了什么。没有 --yes 的预检也做同样的检查。

Xiaohongshu notes must not contain links. By default, http(s)://, www., bare domains such as github.com/xxx or x.com/xxx, and t.co in --title, --desc, or --topics fail with exit 4 and the offending fragments. Delete them from the copy, or pass --strip-links to remove the links, drop a dangling label such as 项目地址: or 链接: on that line, trim leftover blank lines, and print what was removed. The dry run without --yes uses the same check.

已经发出的笔记可以事后改封面,但那是尽力而为:edit-cover.mjs。保存可能重新进入「审核中」,并出现「封面PK中」。笔记管理里找不到、或更新页「加载失败」时不要重试。优先在第一次发布前换封面。

每次发布前:登录闸门

node scripts/check-login.mjs
node scripts/check-login.mjs --expect-account "听懂AI"
node scripts/check-login.mjs --keep
退出码 含义 Agent 做什么
0 已登录,且昵称匹配(若传了 --expect-account) 把 login_tip 告诉用户,继续
2 未登录 / 昵称不符 / 无 ego-browser 展示 how_to_login,停
4 文案里有链接 把片段给人看。删掉链接,或改用 --strip-links 后再跑。不要加 --yes 硬发
1 其它错误 报告 JSON error,不要假装已经发出

www.xiaohongshu.com 上的账号可能和创作者平台不是同一个。只看创作者页眉昵称。不要代填密码,不要粘贴 Cookie。

默认 finish({ keep: [] })。--keep 才把页面留着并 handOff()。

确认规则

没有 --yes:只检查登录并打印

Полный SKILL.md на ClawHub

Установить Ego Xiaohongshu Notes в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Ego Xiaohongshu Notes?

Publish one Xiaohongshu (小红书) note — video or image-text — through the creator web UI in Ego Lite. Login-check first. Soft-fail when ego-browser is missing, logged out, or --expect-account mismatches. Nothing uploads without --yes. Video notes accept --cover and click 发布 only after the 编辑封面 dialog changes the main-cover preview. Image-text notes take 1-18 images via --images. Notes cannot contain links. Ego Lite only, not MCP.

Как установить скилл Ego Xiaohongshu Notes?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Ego Xiaohongshu Notes запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Ego Xiaohongshu Notes с