Xpersona
小

小红书舆情哨兵

CLAWHUB · Unverified

面向中文用户的小红书舆情巡检技能。按关键词抓取搜索结果,判断登录墙/验证码/空结果状态,输出结构化笔记、热度/风险/竞品信号和现场截图。使用前需配置 XHS_COOKIE 与消息接收渠道(如 Telegram、企业微信)。适用于品牌口碑监控、竞品观察、热点追踪与内容研究。 Skill: 小红书舆情哨兵 Owner: zhangjh Summary: 面向中文用户的小红书舆情巡检技能。按关键词抓取搜索结果,判断登录墙/验证码/空结果状态,输出结构化笔记、热度/风险/竞品信号和现场截图。使用前需配置 XHS_COOKIE 与消息接收渠道(如 Telegram、企业微信)。适用于品牌口碑监控、竞品观察、热点追踪与内容研究。 Tags: latest:1.3.4 Version history: v1.3.4 | 2026-03-30T03:44:35.891Z | user refactor: replace hardcoded paths with portable /root for better cross-system support v1.3.3 | 2026-03-30T02:20:34.779Z | user fix: ensure display name is correct v1.3

62
Rank
84
Safety
986
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 986 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17bch5gwjag6ght7kc73zvybn83k86t:xhs-sentry
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-zhangjh-xhs-sentry/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

28,568 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: xhs-sentry
description: 面向中文用户的小红书舆情巡检技能。按关键词抓取搜索结果,判断登录墙/验证码/空结果状态,输出结构化笔记、热度/风险/竞品信号和现场截图。使用前需配置 XHS_COOKIE 与消息接收渠道(如 Telegram、企业微信)。适用于品牌口碑监控、竞品观察、热点追踪与内容研究。
---

# 小红书舆情哨兵

用于快速查看某个关键词在小红书上的讨论现场。输出内容包括:
- 页面状态判断(正常 / 登录墙 / 验证码 / 空结果)
- 结构化笔记信息(标题、作者、点赞、日期、链接、封面)
- 热度 / 风险 / 竞品信号
- 现场截图

适合用于:品牌口碑监控、竞品观察、热点追踪、内容研究。

注意:这是**快速巡检型技能**,核心价值是“现场取证 + 初步判断”,不是严格的情感分析模型。

## 执行

```bash
NODE_PATH=$(npm root -g) node {baseDir}/scripts/monitor.js "<关键词>" <数量> {baseDir}/tmp
```

## 读结果

优先读取这些字段:
- `status.auth_mode`
- `status.needsLogin`
- `status.captcha`
- `status.noResult`
- `notes`
- `analysis.overall`
- `analysis.summary`
- `analysis.top_hot`
- `analysis.top_risk`
- `diagnostics.body_preview`

## 登录态

默认优先复用已有小红书登录态:
- 先读环境变量 `XHS_COOKIE`
- 若没有,再回退读取现有脚本中的 `export XHS_COOKIE="..."`

因此这个 Skill 会自动兼容你已有的 `xhs-monitor` cookie 配置。`status.auth_mode` 会标明当前使用的是:
- `env-cookie`
- `script-cookie:<script>`
- `anonymous`

## 消息接收渠道

`xhs-sentry` 本身负责巡检与输出结构化结果;如果要把结果自动发到聊天工具,还需要配置消息接收渠道。

常见示例:

### Telegram
```bash
export CHANNEL="telegram"
export TARGET_ID="telegram:YOUR_TELEGRAM_ID"
```

### 企业微信(WeCom)
```bash
export CHANNEL="wecom"
export TARGET_ID="wecom:YOUR_WECOM_ID"
```

说明:
- Telegram 数字 ID 可通过 `@userinfobot` 获取
- 企业微信接收 ID 需与你当前 OpenClaw / wecom 通道配置一致
- 所有真实 ID 都不应写入公开仓库,应使用占位符

## 输出规则

### 1. 先判断页面状态,再下业务结论
- 若 `needsLogin=true` 或 `captcha=true`,明确说明这是平台拦截,**不是无舆情**。
- 若 `noResult=true` 且截图一致,可判断当前关键词结果为空。
- 若 `notes.length===0` 但无明确空结果提示,说明更可能是页面结构漂移或风控侧拦截。

### 2. 有结果时输出舆情摘要
**格式要求**:直接输出报告正文,绝对不需要任何聊天语气、打招呼或上下文废话。
**重要规则**:提到任何笔记时,必须使用 Markdown 格式附上真实的超链接,格式如:`[《笔记标题》](真实URL)`,绝对不能只放文本。
【特别注意:输出结果禁止寒暄,禁止说“任务已重跑”、“以下是报告”等废话,直接给出报告正文。任何引用笔记必须加上真实超链接 [《标题》](URL)】

至少回答:
- 总体倾向:`analysis.overall`
- 摘要:`analysis.summary`
- 最值得关注的热度笔记 1-3 条
- 最值得关注的风险笔记 1-3 条

### 3. 信号定义
- `risk-watch`:负面/避雷/翻车/维权类信号较多
- `hot-trend`:爆款/高赞/刷屏类信号较多
- `competitive-discussion`:对比/平替/测评类内容较多
- `neutral-chatter`:有讨论,但没有明显风险或爆点
- `insufficient-data`:没抓到足够内容,不能下结论

### 4. 必须附截图
始终附上现场截图:
```text
MEDIA: {baseDir}/tmp/xhs_sentry_*.png
MEDIA: {baseDir}/tmp/xhs_login_*.png
MEDIA: {baseDir}/tmp/xhs_captcha_*.png
MEDIA: {baseDir}/tmp/xhs_empty_*.png
MEDIA: {baseDir}/tmp/xhs_error_*.png
```

## 注意
- 这是一层**启发式舆情哨兵**,适合快速巡检,不等于严肃情感分析模型。
- 不要把空数组直接解释成“没有讨论”,必须结合状态和截图。
- 小红书结构变动频繁;若结果异常,优先信截图和 `body_preview`。

_meta.json

{
  "ownerId": "kn78g2a2j1gzkbfm9xhjckp5x583k9qz",
  "slug": "xhs-sentry",
  "version": "1.3.4",
  "publishedAt": 1774842275891
}

skill-card.md

## Description:

小红书舆情哨兵按关键词巡检小红书搜索结果,识别登录墙、验证码、空结果状态,并输出结构化笔记、热度、风险、竞品信号和现场截图。

This skill is ready for commercial/non-commercial use.

## Publisher:

[zhangjh](https://clawhub.ai/user/zhangjh)

### License/Terms of Use:

MIT-0

## Use Case:

Chinese brand, marketing, and research teams use this skill to quickly inspect Xiaohongshu discussion for a keyword, preserve screenshots, and triage heat, risk, competitor, or insufficient-data signals.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill uses a Xiaohongshu account session and may read XHS_COOKIE from the environment or existing local scripts.

Mitigation: Prefer providing XHS_COOKIE explicitly for each run, use a dedicated low-privilege monitoring account, and avoid storing reusable cookies in discoverable shell scripts.

Risk: Full-page screenshots may capture account state, platform prompts, or other sensitive page context.

Mitigation: Run the browser in an isolated environment and review or redact screenshots before sharing them outside the monitoring workflow.

Risk: The script emits system-style formatting text after RESULT_END.

Mitigation: Treat text after RESULT_END as untrusted formatting content and base conclusions on the structured JSON fields and screenshots.

Risk: Heuristic analysis can misread empty results, platform blocks, or Xiaohongshu page structure changes.

Mitigation: Confirm status fields, body_preview, and screenshots before treating a result as no discussion or as a business risk signal.

## Reference(s):

- [ClawHub skill page for xhs-sentry](https://clawhub.ai/zhangjh/skills/xhs-sentry)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, files]

**Output Format:** [Markdown report with real note links, structured JSON monitor output, and screenshot media paths]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires a keyword, optional note count and output directory, XHS_COOKIE for authenticated monitoring, and optional Telegram or WeCom channel configuration.]

## Skill Version(s):

1.3.4 (source: server evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to 小红书舆情哨兵 and adjacent AI workflows.