Claude Code slash command

Xhs Claude Skills

Claude Code slash commands for extracting Xiaohongshu posts into Obsidian notes

430 stars 40 forksSlash commands Source

Install

Inside Claude Code
/plugin marketplace add chenxiachan/xhs-claude-skills

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/chenxiachan/xhs-claude-skills.git

From the README

📕 小红书转 Obsidian

中文  |  English

一个 Claude Code 插件,把小红书帖子一键提取为简洁的 Obsidian 笔记。支持图文和视频帖子——视频优先使用平台内嵌字幕,无字幕时回退到本地 Whisper 转录;图文帖子支持 OCR 识别图片中的文字内容。不需要 MCP 服务、无头浏览器或任何后端,只用 cookies + HTTP + Claude 多模态。

🚀 安装

前置要求

- Claude Code(本插件的运行环境)
- Obsidian(只需 vault 文件夹存在,不需要 CLI)
- 视频转录(可选,仅当视频无内嵌字幕时需要):brew install ffmpeg + pip install mlx-whisper

安装插件

首次使用

首次运行会自动引导你完成 30 秒 Cookie 设置:

1. 🌐 打开 Chrome → xiaohongshu.com(确保已登录)
2. 🔧 打开 DevTools Console(F12)
3. 📋 粘贴 skill 给出的代码 → cookies 自动复制到剪贴板
4. 💾 保存到 ~/cookies.json
5. ✅ 搞定 — 之后每次运行自动使用
🔄 Cookies 过期时 skill 会自动检测并重新引导,无需手动检查。

✨ 功能

📂 输出

笔记按日期排序,直接放在 Obsidian vault 的 xhs/ 文件夹下:

每条笔记是决策工具——扫一眼决定深挖还是跳过:

"与我的关联"会读取 Claude Code 的 memory 自动适配你的背景,无需手动配置。

🏗 工作原理

⚙️ 配置

路径不同时编辑 skills/xhs/SKILL.md 中的常量定义。

📁 插件结构

MIT License
Read the full README on GitHub

How custom slash commands work

  • A slash command is a Markdown file. Put it in ~/.claude/commands (for you) or .claude/commands (for a project), and it becomes /file-name inside Claude Code. Claude Code now treats commands and skills the same way, so .claude/skills/name/SKILL.md also works.
  • Arguments you type after the command are passed in as $ARGUMENTS.
  • If the repo is a plugin marketplace, installing it from /plugin adds the commands for you.
Claude Code docs

Details

License
MIT
Last updated
14 August 2026

FAQ

What is Xhs Claude Skills?

Claude Code slash commands for extracting Xiaohongshu posts into Obsidian notes It is a slash command for Claude Code, from chenxiachan/xhs-claude-skills on GitHub.

How do I install Xhs Claude Skills?

Run /plugin marketplace add chenxiachan/xhs-claude-skills inside Claude Code, then follow the setup in the README.

Is Xhs Claude Skills popular?

chenxiachan/xhs-claude-skills has 430 GitHub stars and 40 forks. It was last updated on 14 August 2026.

More slash commands

Browse the most popular Claude Code mods, all slash commands, or the skills and MCP server directories.