xhs Agent

xhs 全流程助手,覆盖小红书内容策划、文案与标题生成、封面制作、笔记发布及日常运营管理。适用于写笔记、生成标题/封面、发布或保存草稿、站内搜索、评论互动(点赞/收藏/回复)等小红书相关任务。支持从内容创作到发布执行的一站式流程;封面 AI 生图可选配置 GEMINI_API_KEY、IMG_API_KEY 或...

Lucas

@yikailucas

What This Skill Does

Browser automation tool for the Xiaohongshu creator platform that handles content planning, copywriting, title generation, cover creation, note publishing, and daily account management. It can create and publish notes, save drafts, search within the platform, and interact with comments (like, bookmark, reply).

Replaces manual multi-step publishing workflows on Xiaohongshu by automating the entire content creation-to-publication pipeline through a single interface.

When to Use It

  • Generate a catchy title and body copy for a new Xiaohongshu note
  • Create and publish a note with images directly from your computer
  • Save a draft note for later review without publishing
  • Reply to comments on your published notes to engage with followers
  • Check your 7-day or 30-day dashboard metrics for account performance
  • Search within Xiaohongshu for trending content or keywords

Install

$ openclaw skills install @yikailucas/xhs-browser-ops

Redbook (Xiaohongshu) Publishing Skill

Use browser automation on the official creator site.

Read this first

  • Main entry: https://creator.xiaohongshu.com
  • If user is not logged in, pause and ask user to complete SMS login.
  • Never bypass CAPTCHA, SMS, or risk controls.
  • Never publish without explicit confirmation in the current chat turn.

Supported tasks

  • Create a note draft (with or without images)
  • Publish immediately (only after explicit confirmation)
  • Save and leave as draft
  • Reply to comments/messages
  • Check dashboard metrics (7d/30d where visible)

Publish flow (deterministic)

  1. Confirm inputs:
    • title
    • body
    • image paths (optional)
    • mode: publish_now or draft_only
  2. Open creator page and verify logged-in account name.
  3. Enter publish page:
    • with images: choose 图文上传
    • no image: use 长文创作入口
  4. Fill title/body.
  5. Validate before submit:
    • title not empty
    • body not empty
    • hashtags formatted
  6. If draft_only: click save/draft and report success.
  7. If publish_now: ask one final yes/no confirmation, then publish.
  8. Return result summary with account, title, mode, status.

Required confirmation policy

For publish action, require exact confirmation intent such as:

  • “立即发布”
  • “确认发布”
  • “继续发布”

If user says vague words (“随便”, “你看着办”), default to draft-only and explain why.

Failure handling

  • Login expired: ask user to login, then continue from current page.
  • Missing controls due to UI changes: snapshot again and switch to nearest equivalent button.
  • Publish button unavailable: keep draft and report manual step clearly.

Output template

  • Action: draft | publish | reply | metrics
  • Account: <name>
  • Title: <title>
  • Mode: publish_now | draft_only
  • Result: success | partial | failed
  • Details:
    • ...
  • Next step:
    • ...

Reference

For reusable copy templates, read references/post-templates.md.

Top skills in this category