Best for
- Use when the user asks to collect and analyze notes/comments about pharma companies, aliases, roles, compliance, medical affairs, or AI topics, then produce a cited and scored sampled-insight report.
EthanYoQ/Skill-hub/skills/10-business-industry/xhs-pharma-social-listening/SKILL.md
Run evidence-disciplined Xiaohongshu social listening for foreign pharma employee pain points. Use when the user asks to collect and analyze notes/comments about pharma companies, aliases, roles, compliance, medical affairs, or AI topics, then produce a cited and scored sampled-insight report. Includes independent-evidence counting, MediaCrawler batch collection, and CAPTCHA/461 fallback to Agent Reach/OpenCLI.
Decision brief
Run evidence-disciplined Xiaohongshu social listening for foreign pharma employee pain points. Includes independent-evidence counting, MediaCrawler batch collection, and CAPTCHA/461 fallback to Agent Reach/OpenCLI.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/EthanYoQ/Skill-hub --skill "skills/10-business-industry/xhs-pharma-social-listening"Inspect the Agent Skill "xhs-pharma-social-listening" from https://github.com/EthanYoQ/Skill-hub/blob/c6ef622c58bb5a58fd61219f5adce2b3b518a9a3/skills/10-business-industry/xhs-pharma-social-listening/SKILL.md at commit c6ef622c58bb5a58fd61219f5adce2b3b518a9a3. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Check platform access: - Run agent-reach doctor --json. - Confirm xiaohongshu.status is ok and active backend is OpenCLI or another working backend. 2. Select collection path: - Delegate Xiaohongshu information collection to a subagent when multiagentv1.spawnagent or an equiv…
Review the “Collection Commands” section in the pinned source before continuing.
Use a collector subagent for Xiaohongshu collection. The main agent should continue with non-overlapping work such as query-matrix refinement, scoring review, schema mapping, and final report preparation.
Every final report must include:
Score each pain-topic cluster on a 0-100 scale:
Permission review
The documentation asks the agent to run terminal commands or scripts.
python <skill>/scripts/collect_xhs_pharma.py --output-dir ./xhs-pharma-run --target-items 1200 --max-queries 40 --search-limit 20 --max-notes 80 --comment-limit 30 --sleep 2.5The documentation asks the agent to run terminal commands or scripts.
python <skill>/scripts/collect_xhs_pharma.py --output-dir ./xhs-pharma-run --target-items 1200 --resumeThe documentation includes network, browsing, or remote request actions.
If OpenCLI succeeds, MediaCrawler search/API path is the likely blocked path; use Agent Reach/OpenCLI for slow but stable collection and wait 12-24 hours before retrying MediaCrawler.Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 7 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Use this skill to run an end-to-end Xiaohongshu social listening workflow for foreign pharma employee pain points. The main agent owns orchestration, scoring, analysis, and final reporting. Delegate Xiaohongshu collection to a collector subagent when subagent tools are available. Use Agent Reach/OpenCLI for access checks, seed discovery, spot validation, and note-level fill-in. For large runs or when OpenCLI throughput is insufficient, prefer a batch crawler path, with MediaCrawler as the first candidate. See references/batch-collection.md before changing collection strategy.
agent-reach doctor --json.xiaohongshu.status is ok and active backend is OpenCLI or another working backend.multi_agent_v1.spawn_agent or an equivalent subagent tool is available.scripts/collect_xhs_pharma.py.>1000 items, or asks for recurring social listening, read references/batch-collection.md and run a MediaCrawler POC first.市场部, 报销, 背调, 外企, 裁员, 离职, 合规, 薪资, and KPI; these must be paired with a pharma context anchor from references/query-matrix.md.opencli xiaohongshu search "<query>" --limit 5 -f json, then read one note and comments. If OpenCLI succeeds but MediaCrawler fails, switch the collection backend to Agent Reach/OpenCLI and cool down MediaCrawler; do not continue retrying MediaCrawler in the same turn.scripts/analyze_xhs_pharma.py on the collection directory.report.md, topic_scores.csv, evidence_notes.csv, evidence_comments.csv, and dataset_summary.json.Default collection:
python <skill>/scripts/collect_xhs_pharma.py --output-dir ./xhs-pharma-run --target-items 1200 --max-queries 40 --search-limit 20 --max-notes 80 --comment-limit 30 --sleep 2.5
Resume a partial run:
python <skill>/scripts/collect_xhs_pharma.py --output-dir ./xhs-pharma-run --target-items 1200 --resume
Analyze a run:
python <skill>/scripts/analyze_xhs_pharma.py --input-dir ./xhs-pharma-run --output-dir ./xhs-pharma-report
Use a collector subagent for Xiaohongshu collection. The main agent should continue with non-overlapping work such as query-matrix refinement, scoring review, schema mapping, and final report preparation.
Subagent model choice:
Collector subagent prompt template:
Use the xhs-pharma-social-listening skill. You own only Xiaohongshu data collection for this run.
Do not edit skill files or analysis scripts. Write outputs only under <output-dir>.
Run the selected collection path, capture command lines, elapsed time, item counts, errors, login/captcha observations, and sample raw links.
Return a concise status with: output directory, files produced, search rows, detail rows, comment rows, failures, and unverified assumptions.
For large query matrices, shard by keyword groups only when the user explicitly asks for parallel collection. Give each collector a disjoint output directory and keep per-process crawler concurrency conservative.
Every final report must include:
Score each pain-topic cluster on a 0-100 scale:
score =
heat 20
+ repetition 20
+ source_proximity 15
+ comment_validation 15
+ specificity 15
+ negative_intensity 10
+ confidence 5
Do not include trend-spike scoring unless the run has comparable historical windows.
OpenCLI is sufficient when it can collect more than 1,000 independent evidence items with acceptable failure rates. If collection stalls, returns frequent login/captcha errors, or cannot meet the independent-evidence target, switch to batch-collection evaluation:
NanmiCoder/MediaCrawler: first candidate for batch runs; supports Xiaohongshu keyword search, note detail, first-level comments, optional second-level comments, CDP/local Chrome mode, and JSONL/SQLite/Excel storage. License is non-commercial learning only.JoeanAmier/XHS-Downloader: use as link extraction or single-work metadata helper, not as the primary comment social-listening collector unless comment support is separately verified.chenningling/Redbook-Search-Comment-MCP2.0: can search/read notes/comments, but includes comment-posting tools; only use read-only functions after code audit.yangsijie666/xiaohongshu-crawler: Playwright stealth crawler with JSON/Excel and comments; lower maturity, use only for sandbox POC.Prefer MediaCrawler for recurring or larger research runs after a small POC verifies login, output schema, and rate-limit behavior. Keep Agent Reach for spot checks against raw links and for filling missing note pages.
When MediaCrawler logs CAPTCHA appeared, Verifytype, or HTTP 461:
opencli xiaohongshu search "<query>" --limit 5 -f jsonopencli xiaohongshu note <url> -f jsonopencli xiaohongshu comments <url> --limit 5 -f jsonThe 2026-07-05 local run established this pattern: MediaCrawler hit 461 on both 辉瑞 and low-frequency RWE 药企, in CDP and standard modes, while Agent Reach/OpenCLI successfully searched RWE 药企 and read note comments. Treat this as evidence to preserve the broad query matrix and adjust backend/execution strategy instead.
When Xiaohongshu or the browser page shows Requests too frequent. Try again later., 访问过于频繁, 请求过于频繁, 操作频繁, or an equivalent frequency block:
xhs_cooldown_until.json in the workspace, with observed_at, cooldown_until, reason, and source evidence. Use at least 3 hours unless the user explicitly sets a longer pause.cooldown_until has passed.For repeated OpenCLI Detached while handling command errors during an XHS batch, treat it as a warning signal. If it appears in a rising cluster together with browser instability or user-observed frequency-block pages, stop collection and apply the same 2-3 hour minimum cooldown. Mark this link as a candidate hypothesis unless the block page is directly observed.
When evidence is insufficient, do not present a definitive cause or solution. Report only:
Clearly label all unverified conclusions.
Frequently asked questions
Run evidence-disciplined Xiaohongshu social listening for foreign pharma employee pain points. Includes independent-evidence counting, MediaCrawler batch collection, and CAPTCHA/461 fallback to Agent Reach/OpenCLI.
The source record exposes this install command: npx skills add https://github.com/EthanYoQ/Skill-hub --skill "skills/10-business-industry/xhs-pharma-social-listening". Inspect the command and pinned source before running it.
Static rules flagged exec-script, network in the source; the page lists the matching lines and excerpts.
Alternatives
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
wanshuiyin/Auto-claude-code-research-in-sleep
Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.
prowler-cloud/prowler
PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance
brucesongs/kali-claw
Insecure Design (OWASP A06:2025) focuses on security flaws in system architecture and design phases, rather than code implementation-level bugs.