Xhs dm

From AceDataCloud/Skills · View interactive version

Xhs dm is an AI agent skill from the GitHub repository AceDataCloud/Skills. 小红书私信(DM)自动读取与回复,仅 Android(Nexior 手机端),经 Computer Use 无障碍直接操作小红书 App 的界面 —— 打开消息、读取未读私信、生成并(经用户确认后)发送回复。当用户提到:回小红书私信、小红书私信自动回复、小红书 DM、Xiaohongshu/RED 私信、帮我看/回小红书消息、回复主动私信来的人时使用。写操作(发送)一律先 dry-run 并经用户明确同意;受严格的安全红线与每日条数上限约束。

How to use this skill

Skill file

小红书私信 · Android Computer Use

Read and reply to the user's 小红书 (Xiaohongshu) private messages by driving the

app's UI on their own Android phone through Nexior's Computer Use accessibility

service. This skill writes to the user's real account, so it is deliberately

conservative: dry-run first, confirm before every send, and obey the red lines below.

适用范围(仅 Android / Nexior 手机端)— 先做运行时校验

This skill is Android-only. It requires the on-device computer.* screen-control

tools (Nexior mobile + the "AceData Computer Use" accessibility service). Before doing

anything else:

  1. Call computer.screenshot. If it errors or the tools are unavailable → STOP and

tell the user: this skill only runs on the Nexior 手机端 (Android) with Computer

Use enabled — it does not work on desktop or web.

  1. Confirm the screen is a phone running 小红书 (com.xingin.xhs). If 小红书 isn't

installed/logged in → stop and ask the user to open and log into 小红书 first.

surface: android is declared in metadata. Do not attempt this flow on any other surface.

前置条件

Computer Use」已开启。

Computer Use 循环纪律(每一步都遵守)

  1. 先看:computer.screenshot(或 computer.observe 拿标注编号)看清当前界面。
  2. 只做一步:一次只点一个元素 / 输入一次,坐标是原始像素(左上角原点,x 向右、y 向下)。
  3. 再验证:动作后再截图确认结果,不对就纠正。

优先用 computer.tapText(按可见文字点,抗改版)与 computer.observe+computer.tapMark

(按编号点);computer.dumpUi 在找不到目标时拿无障碍树精确定位;用 computer.click 坐标点击兜底。

流程:读取并回复私信

  1. 进入小红书:若不在前台,computer.tapText "小红书" 或请用户切到前台。
  2. 进消息页:点底部导航栏的「消息」tab。它常是无文字的图标,tapText "消息"

可能点不到 → 用 computer.observe 找到带未读角标的那个标,或按底栏第 4 个位置点。

(实测:1080×2340 机型该 tab 中心约在 (756, 2272),即相对坐标约 x≈0.70 / y≈0.97。)

  1. 定位私信:消息页上方是「赞和收藏 / 新增关注 / 评论和@」等通知入口,下方才是私信

会话列表。优先找未读会话(红点 / 未读数)。跳过系统/活动通知(无输入框)。列表较长时用 computer.scroll 上滑查找未读。

  1. 打开会话:点一个会话进入聊天页(com.xingin.im 的 ChatActivity),截图读最新几条消息。
  2. 拟草稿:根据对方消息写一条自然、口语化、非模板的中文回复。先把草稿念给用户。
  3. 确认后发送:得到用户明确同意后 → 点底部输入框(android.widget.EditText)→

computer.type 输入 → 找到「发送」按钮(输入文字后才出现,可见文字为「发送」)→ 点发送。

  1. 下一条:用 computer.key ['back'] 返回列表,处理下一个未读,直到无未读或触及当日上限。

安全红线(必须遵守,并主动向用户说明)

少做冷启动外发。群发按人头计数。

规避 / 引导到站外 / 模板化重复内容 —— 这些是永久封号的高危触发项。

默认不自动连发、不自动群发。

合规提示(主动告知用户,不要隐瞒)

自动化操作违反小红书用户协议,账号有被限流/封禁的风险;群控 / 批量营销在中国有明确法律

判例(如腾讯诉群控工具案,判赔至千万级,追责工具方),并涉及 PIPL 的用户同意与个人信息、

跨境数据合规。本技能仅供用户辅助操作自己的账号,不得用于群控、黑产、或未经对方同意的营销

外发。能做不等于合规(capability ≠ compliance)。

出错处理

再继续。

「AceData Computer Use」无障碍服务。

仅 v1(技能版):本技能靠 LLM + Computer Use 逐步操作,适合中小量、需人确认的场景。

若要高频/无人值守,后续再加确定性工具(xhs.list_dms / xhs.reply,需改 Nexior 原生插件

与 aichat2 工具 schema),本技能不覆盖。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.