XHS Comment Research
Use this skill to turn Xiaohongshu comment threads into content intelligence.
Safety
- Stay read-only except for opening/expanding/scrolling comment UI needed to load text.
- Do not like, reply, delete, pin, report, publish, follow, message, or change settings.
- Do not inspect cookies, local storage, passwords, tokens, or browser profile files.
- Treat comments as user research. Quote sparingly; prefer paraphrase and theme summaries.
- If a captcha, login prompt, or permission prompt appears, stop and ask the user.
Browser Path
Load $browser-automation-router, then use the Chrome plugin when comments require the user's logged-in session.
- Confirm the Chrome plugin is available and the user has approved access to the intended tab.
- Reuse an already-open note or creator-manager tab when possible.
- Verify the visible account, note title, and URL before collecting data.
- Prefer the plugin's current high-level snapshot, semantic locator, scroll, click, and text-reading operations.
- Do not load repository-maintained JavaScript snippets or hard-code a selector recipe before inspecting the live page.
- Use clicks only for harmless UI expansion such as "展开 ... 条回复".
- If the plugin is unavailable, declare the fallback instead of launching a copied Chrome profile or reading browser state from disk.
Extraction Workflow
- Confirm target note title/URL and output folder.
- Capture visible note metadata:
- title
- URL
- displayed comment count
- current loaded comment count
- Identify the live comment scroll region from the current page snapshot and move from top to bottom in small batches.
- Repeatedly expand visible reply controls when present.
- Extract comment records from the visible page structure:
id
isSub
name
content
date
like
- Deduplicate by
id when available; otherwise by name + content + date.
- Save raw JSON and an analysis markdown file in the article folder.
Analysis Workflow
Group comments by useful content angles, not generic sentiment:
- engineering-complexity: architecture, components, concurrency, data, maintainability
- local-vs-online: localhost, "works on my machine", environment, deployment
- black-box-debugging: cannot debug, prompt iteration, token burn, frontend/backend diagnosis
- professional-validation: programmer still needed, someone must own review/兜底
- security-and-commercial-risk: security, data, payment, business liability
- pro-ai-non-cs: non-CS can build MVPs, product sense, demand discovery
- identity-conflict: 文科/理科/程序员 identity jokes or disputes
- content-hooks: phrases that can become titles, covers, comments, or follow-up posts
When revising content based on comments:
- Correct any earlier assumption that the comments do not support.
- Start from the actual dominant tension in the thread.
- Separate "what the comments say" from "our content judgment".
- Keep follow-up copy emotionally aware: acknowledge programmers' objections before giving advice to non-CS readers.
Output Files
Use stable filenames:
comments-raw.json: raw deduplicated comment records and metadata.
comment-analysis.md: summary, themes, evidence snippets, and content implications.
content-pack.md: update only when the user asks to revise the article package.
Quality Bar
Before claiming the crawl is complete:
- Report loaded versus displayed comment counts.
- Explain if the platform did not expose all comments or if replies were still collapsed.
- Save enough raw data for later re-analysis.
- Do not pretend partial data is complete.
1---2name: xhs-comment-research3description: 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 引流文案。4---56# XHS Comment Research78Use this skill to turn Xiaohongshu comment threads into content intelligence.910## Safety1112- Stay read-only except for opening/expanding/scrolling comment UI needed to load text.13- Do not like, reply, delete, pin, report, publish, follow, message, or change settings.14- Do not inspect cookies, local storage, passwords, tokens, or browser profile files.15- Treat comments as user research. Quote sparingly; prefer paraphrase and theme summaries.16- If a captcha, login prompt, or permission prompt appears, stop and ask the user.1718## Browser Path1920Load `$browser-automation-router`, then use the Chrome plugin when comments require the user's logged-in session.21221. Confirm the Chrome plugin is available and the user has approved access to the intended tab.232. Reuse an already-open note or creator-manager tab when possible.243. Verify the visible account, note title, and URL before collecting data.254. Prefer the plugin's current high-level snapshot, semantic locator, scroll, click, and text-reading operations.265. Do not load repository-maintained JavaScript snippets or hard-code a selector recipe before inspecting the live page.276. Use clicks only for harmless UI expansion such as "展开 ... 条回复".287. If the plugin is unavailable, declare the fallback instead of launching a copied Chrome profile or reading browser state from disk.2930## Extraction Workflow31321. Confirm target note title/URL and output folder.332. Capture visible note metadata:34 - title35 - URL36 - displayed comment count37 - current loaded comment count383. Identify the live comment scroll region from the current page snapshot and move from top to bottom in small batches.394. Repeatedly expand visible reply controls when present.405. Extract comment records from the visible page structure:41 - `id`42 - `isSub`43 - `name`44 - `content`45 - `date`46 - `like`476. Deduplicate by `id` when available; otherwise by `name + content + date`.487. Save raw JSON and an analysis markdown file in the article folder.4950## Analysis Workflow5152Group comments by useful content angles, not generic sentiment:5354- engineering-complexity: architecture, components, concurrency, data, maintainability55- local-vs-online: localhost, "works on my machine", environment, deployment56- black-box-debugging: cannot debug, prompt iteration, token burn, frontend/backend diagnosis57- professional-validation: programmer still needed, someone must own review/兜底58- security-and-commercial-risk: security, data, payment, business liability59- pro-ai-non-cs: non-CS can build MVPs, product sense, demand discovery60- identity-conflict: 文科/理科/程序员 identity jokes or disputes61- content-hooks: phrases that can become titles, covers, comments, or follow-up posts6263When revising content based on comments:6465- Correct any earlier assumption that the comments do not support.66- Start from the actual dominant tension in the thread.67- Separate "what the comments say" from "our content judgment".68- Keep follow-up copy emotionally aware: acknowledge programmers' objections before giving advice to non-CS readers.6970## Output Files7172Use stable filenames:7374- `comments-raw.json`: raw deduplicated comment records and metadata.75- `comment-analysis.md`: summary, themes, evidence snippets, and content implications.76- `content-pack.md`: update only when the user asks to revise the article package.7778## Quality Bar7980Before claiming the crawl is complete:8182- Report loaded versus displayed comment counts.83- Explain if the platform did not expose all comments or if replies were still collapsed.84- Save enough raw data for later re-analysis.85- Do not pretend partial data is complete.86