← 返回 Skills 市场
m-lemon

小红书长文-谷歌浏览器

作者 M-Lemon · GitHub ↗ · v0.0.2 · MIT-0
linux ⚠ suspicious
87
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install xiaohongshu-publish-attach
功能描述
Auto-publish Xiaohongshu long-form notes on Linux (Chrome attach/VNC). Agent writes title+body then exec xhs_publish.sh with --publish --submit. Triggers 小红书...
使用说明 (SKILL.md)

Xiaohongshu publish (Chrome attach / Linux VNC)

Self-contained skill: {baseDir}/scripts/. Uses the same Chrome profile as zhihu-publish-attach (~/.chrome-zhihu-automation, port 9222).

Publish 长文 via creator center (写长文 → 新的创作 → 一键排版 → 下一步 → 发布).

Exec entry: bash {baseDir}/scripts/xhs_publish.sh

First-time setup

bash {baseDir}/scripts/setup.sh
bash {baseDir}/scripts/install_chromedriver.sh   # skip if already done for Zhihu
bash {baseDir}/scripts/start_chrome_debug.sh

In VNC: log in to creator.xiaohongshu.com in the same Chrome window (主站 www 不必单独登录,长文发帖只依赖创作者中心会话).

Verify:

bash {baseDir}/scripts/xhs_publish.sh --check --check-creator --json

See {baseDir}/references/shared-chrome-with-zhihu.md.

Parameters

Parameter Description
--publish Long-form flow (写长文)
--title "..." Note title
--body-file /path Preferred — note body
--body "..." Short body
--tags "a,b,c" Hashtags (appended as #a #b if not in body)
--submit Click 发布 after 下一步 (real post)
--json Machine-readable result
--check-creator With --check, verify creator center login
--no-ensure-chrome Skip auto-start Chrome

--image-file is ignored (long-form only).

Agent workflow (default auto publish)

  1. Write /tmp/xhs_post_body.txt.
  2. Exec:
bash {baseDir}/scripts/xhs_publish.sh \
  --publish \
  --title "标题" \
  --body-file /tmp/xhs_post_body.txt \
  --tags "数码,好物" \
  --submit \
  --json
  1. Success: "ok": true, "mode": "longform", "submitted": true.

ClawMart dual-platform: same Chrome session as Zhihu. Use /tmp/xhs_post_body.txt separately from Zhihu body file.

Safety

  • Default --submit when user/task requests real post.
  • Without --submit, script stops after 下一步 (dry-run).
  • Do not put long body in shell args — use --body-file.
安全使用建议
Install only if you are comfortable letting an agent control a logged-in Chrome profile and publish to your Xiaohongshu account. Use dry-run first, prefer an isolated Chrome profile or test account, avoid sharing the profile with unrelated services, and close the debug Chrome session after use.
能力评估
Purpose & Capability
The publishing capability matches the stated purpose, and the code appears focused on Xiaohongshu creator-center automation rather than unrelated data access, exfiltration, or destructive activity.
Instruction Scope
The skill documents a default agent workflow using --publish --submit, which performs a real public post; SKILL.md notes that --submit is a real post and dry-run is available without it, but there is no strong explicit confirmation gate before live submission.
Install Mechanism
Setup installs Selenium with pip --user and may download a matching chromedriver from Google into a user or system bin path; this is coherent for Selenium-based browser automation but should be reviewed by the installer.
Credentials
The skill starts Chrome with DevTools remote debugging on 127.0.0.1:9222 and uses a persistent shared profile also intended for Zhihu automation, which is powerful access to authenticated browser sessions beyond Xiaohongshu alone.
Persistence & Privilege
It creates or reuses ~/.chrome-zhihu-automation, can detach Chrome in the background, writes chromedriver.env and screenshots, and does not clearly scope or shut down the reusable debugging session after posting.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install xiaohongshu-publish-attach
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /xiaohongshu-publish-attach 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.2
- Clarified that login is only required for the creator center (creator.xiaohongshu.com) in VNC; logging into the main site is not needed for long-form publishing. - No other changes detected.
v0.0.1
- Initial release: Auto-publish Xiaohongshu (小红书) long-form notes on Linux using Chrome attach/VNC. - Supports publishing via the creator center with title, body file, tags, and real post submission. - Uses the same Chrome profile and debugging session as Zhihu publish (port 9222). - Provides CLI flags for title, body, tags, publish (long-form), check, and dry-run. - Agent workflow outputs machine-readable results with safe publishing defaults. - Documentation includes setup, verification steps, and usage guidance.
元数据
Slug xiaohongshu-publish-attach
版本 0.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

小红书长文-谷歌浏览器 是什么?

Auto-publish Xiaohongshu long-form notes on Linux (Chrome attach/VNC). Agent writes title+body then exec xhs_publish.sh with --publish --submit. Triggers 小红书... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 87 次。

如何安装 小红书长文-谷歌浏览器?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install xiaohongshu-publish-attach」即可一键安装,无需额外配置。

小红书长文-谷歌浏览器 是免费的吗?

是的,小红书长文-谷歌浏览器 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

小红书长文-谷歌浏览器 支持哪些平台?

小红书长文-谷歌浏览器 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux)。

谁开发了 小红书长文-谷歌浏览器?

由 M-Lemon(@m-lemon)开发并维护,当前版本 v0.0.2。

💬 留言讨论