技能图谱SKILLSGROVE
技能图谱/短视频与自媒体/mindfold-ai/xhs-content/xhs-content

xhs-content

安装

$npx skills add https://github.com/mindfold-ai/xhs-content --skill xhs-content
$git clone --depth 1 https://github.com/mindfold-ai/xhs-content.git /tmp/xhs-content && mkdir -p ~/.claude/skills && cp -r /tmp/xhs-content/. ~/.claude/skills/xhs-content
请帮我安装这个 Agent Skill:https://github.com/mindfold-ai/xhs-content/tree/36ad15f45818db88da8dc3929f2b18bd57603d4b/ ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITXiaoHongShu (小红书) content creation tool. Collects trending XHS notes by keyword, generates a topic research report, then produces XHS-style note drafts. Use when the user wants to: (1) research what's trending on XiaoHongShu/小红书 for a topic, (2) generate XHS note drafts, (3) find XHS content inspiration, or mentions "小红书", "XHS", "xiaohongshu", "xhs content", "xhs note".
以下 SKILL.md 内容转载自 mindfold-ai/xhs-content(提交 36ad15f),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 SamCui 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

XHS Content — 小红书选题采集 + 内容生成

从小红书采集热门笔记 → 汇总选题报告 → 生成笔记草稿。

Prerequisites

  • Python 3 — 运行采集脚本
  • xhs-cli — 小红书 CLI 工具 (pipx install xhs-cli 或 uv tool install xhs-cli)
  • 已登录 (xhs login — 支持 QR 码 / cookie / Chrome 自动提取)

Usage

给定一个关键词,执行三步流程:

Step 1: 采集

python3 scripts/xhs-search.py --keyword "<关键词>" --limit 30

采集结果自动保存到 data/<date>-<keyword>/sources.jsonl。

Step 2: 汇总报告

读取 sources.jsonl,生成选题报告 data/<date>-<keyword>/report.md,包含:

  • 话题热度概览(总笔记数、平均互动)
  • 热门角度分类(按标题/内容聚类)
  • Top 笔记摘要(标题、互动数据、核心观点)
  • 选题建议(基于数据的差异化切入点)
  • 全部采集笔记表格(标题、作者、赞/藏/评、链接,按互动量降序)

Step 3: 生成笔记

基于报告 + 固定 prompt,生成 1-3 篇小红书笔记草稿,保存到 data/<date>-<keyword>/drafts.md。

Workflow (for Claude)

When this skill is triggered:

  1. Ask user for keyword (if not provided)
  2. Run xhs-search.py to collect posts → save JSONL
  3. Read JSONL, generate report markdown
  4. Read report + references/prompt.md, generate note drafts
  5. Present drafts to user for review

Data Directory

All outputs go to .claude/skills/xhs-content/data/<date>-<keyword>/:

  • sources.jsonl — raw collected posts
  • report.md — topic research report
  • drafts.md — generated note drafts

References

  • references/prompt.md — Fixed generation prompt with XHS style rules
查看许可证全文(MIT)
MIT License

Copyright (c) 2026 SamCui

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.