Follow shared public skill rules in:
postplus-sharedpublic skill rules
Use this skill when implementing or running the local execution layer for the Xiaohongshu skill family.
Main scripts:
scripts/run_xhs_actor.mjsscripts/normalize_xhs_dataset.mjsscripts/extract_xhs_vendor_page_products.mjsscripts/rank_xhs_accounts.mjsscripts/rank_xhs_posts.mjsscripts/cluster_xhs_comments.mjsscripts/rank_xhs_products.mjsscripts/build_xhs_topic_map.mjsscripts/build_xhs_merchant_report.mjs
Shared helpers:
scripts/lib/xhs_common.mjs
Reference contracts:
../xiaohongshu-references/tool-contracts.md../xiaohongshu-references/normalized-schema.md
Execution Rule
Do not invent actor-specific downstream workflows unless the schema truly requires it.
Prefer:
scripts/run_xhs_actor.mjs${CLAUDE_SKILL_DIR}/_postplus_shared/00-core/shared-collection/scripts/collection_actor_run.mjs
This skill should stay focused on stable local contracts after raw data has been collected.
Supported Collection Keys
This support skill may run only these PostPlus public collection keys:
xhs-account-postsxhs-search
Minimal runner examples:
node ${CLAUDE_SKILL_DIR}/scripts/run_xhs_actor.mjs \
--collection-key xhs-account-posts \
--input <work-folder>/.postplus/xiaohongshu-tools/xhs-account-posts-input.json \
--output <work-folder>/.postplus/xiaohongshu-tools/xhs-account-posts-raw.json
node ${CLAUDE_SKILL_DIR}/scripts/run_xhs_actor.mjs \
--collection-key xhs-search \
--input <work-folder>/.postplus/xiaohongshu-tools/xhs-search-input.json \
--output <work-folder>/.postplus/xiaohongshu-tools/xhs-search-raw.json
Do not pass provider-specific collection names or unpublished keys.
Public Skill Execution Contract
- keep actor inputs, raw datasets, normalized datasets, ranking outputs,
clustered comments, product rankings, and topic maps under
<work-folder>/.postplus/xiaohongshu-tools/ - keep only final user-facing shortlists or reports outside
.postplus/ - start with a bounded first pass before broader collection
- if PostPlus Cloud service is unavailable, unauthorized, or returns a stable network error, stop immediately instead of switching to ad hoc shell glue