xiaohongshu-tools
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseXiaohongshu Tools
小红书工具
Follow shared release-shell rules in:
- release-shell rules
postplus-shared
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
请遵循以下共享发布外壳规则:
- 发布外壳规则
postplus-shared
当实现或运行小红书工具家族的本地执行层时,请使用本技能。
主要脚本:
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
共享辅助工具:
scripts/lib/xhs_common.mjs
参考契约:
../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.
除非 schema 确实要求,否则请勿创建特定于Actor的下游工作流。
优先使用:
scripts/run_xhs_actor.mjs${CLAUDE_SKILL_DIR}/_postplus_shared/00-core/shared-collection/scripts/collection_actor_run.mjs
本技能应专注于原始数据采集完成后的稳定本地契约。
Release-Shell 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 hosted capability is unavailable, unauthorized, or returns a stable network error, stop immediately instead of switching to ad hoc shell glue
- 将Actor输入、原始数据集、标准化数据集、排名输出、聚类后的评论、产品排名和主题图谱存储在 目录下
<work-folder>/.postplus/xiaohongshu-tools/ - 仅将最终面向用户的候选列表或报告存储在 目录之外
.postplus/ - 在进行更广泛的采集之前,先完成一个有限范围的首轮处理
- 如果托管功能不可用、未授权或返回稳定的网络错误,请立即停止操作,不要切换到临时的外壳粘合逻辑