360 Secure SkillHub
360 安全技能中心

xhs Agent

该 Skill 通过浏览器自动化操作小红书官方创作者平台,完成笔记策划、标题与正文填写、可选封面 AI 生图、图文/长文上传、发布或存草稿、评论回复及仪表盘指标查看,发布前要求用户在当轮明确确认,不绕过验证码或风控。

yikailucas
yikailucas
热度 70.73
最近更新 2026-05-11 17:28:04
分类:营销依赖:联网浏览搜索 / 读写文件 / 第三方 API应用场景:社交媒体 / 文案创作 / 图像生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

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

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:
  • Title:
  • Mode: publish_now | draft_only
  • Result: success | partial | failed
  • Details:
    • ...
  • Next step:
    • ...

Reference

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