Xhs comment research

From Dirtytrii/codex-skills · View interactive version

Xhs comment research is an AI agent skill from the GitHub repository Dirtytrii/codex-skills. Read and analyze Xiaohongshu comments from the user's signed-in Chrome session. Use to collect, export, summarize, or classify comments for content planning, follow-up posts, audience research, reply strategy, and 引流文案。

How to use this skill

Skill file

XHS Comment Research

Use this skill to turn Xiaohongshu comment threads into content intelligence.

Safety

Browser Path

Load $browser-automation-router, then use the Chrome plugin when comments require the user's logged-in session.

  1. Confirm the Chrome plugin is available and the user has approved access to the intended tab.
  2. Reuse an already-open note or creator-manager tab when possible.
  3. Verify the visible account, note title, and URL before collecting data.
  4. Prefer the plugin's current high-level snapshot, semantic locator, scroll, click, and text-reading operations.
  5. Do not load repository-maintained JavaScript snippets or hard-code a selector recipe before inspecting the live page.
  6. Use clicks only for harmless UI expansion such as "展开 ... 条回复".
  7. If the plugin is unavailable, declare the fallback instead of launching a copied Chrome profile or reading browser state from disk.

Extraction Workflow

  1. Confirm target note title/URL and output folder.
  2. Capture visible note metadata:
  1. Identify the live comment scroll region from the current page snapshot and move from top to bottom in small batches.
  2. Repeatedly expand visible reply controls when present.
  3. Extract comment records from the visible page structure:
  1. Deduplicate by id when available; otherwise by name + content + date.
  2. Save raw JSON and an analysis markdown file in the article folder.

Analysis Workflow

Group comments by useful content angles, not generic sentiment:

When revising content based on comments:

Output Files

Use stable filenames:

Quality Bar

Before claiming the crawl is complete:

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.