Agent skill

Xhs Batch

by chenxiachan in chenxiachan/xhs-claude-skills

“批量提取小红书帖子,整理为本地 Markdown 知识库”

— description from SKILL.md by chenxiachan
MITAuto-check: notes

Install Xhs Batch

skills CLI
$ npx skills add chenxiachan/xhs-claude-skills --skill xhs-batch -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install chenxiachan/xhs-claude-skills xhs-batch --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/chenxiachan/xhs-claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/xhs-batch .claude/skills/xhs-batch && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
xhs-batch
GitHub stars
421
Token cost
~187 tokens
SKILL.md length
58 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

  • SKILL.md covers 常量定义, 输入 and 流程
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

About this skill

Xhs Batch is a skill in chenxiachan/xhs-claude-skills (421 stars). Its SKILL.md is about 187 tokens. Licence: MIT.

Requirements

  • Pre-approved tools (allowed-tools): Bash, Read, Write, Edit, Glob, Grep

What it can do on your machine

Read from SKILL.md and the folder at commit e140727. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Write
    • Edit
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Xhs Batch loads about 187 tokens when it runs. Until then it costs about 10 tokens; SKILL.md has 58 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~10
When it runs · the whole SKILL.md, loaded when a task matches
~187

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Write, Edit, Glob, Grep

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from chenxiachan/xhs-claude-skills at commit e140727, republished under its MIT licence (© chenxiachan). 58 words, ~187 tokens.

Download SKILL.mdSave it as .claude/skills/xhs-batch/SKILL.md (or your agent's skills folder).
name
xhs-batch
description
批量提取小红书帖子,整理为本地 Markdown 知识库
allowed-tools
Bash, Read, Write, Edit, Glob, Grep
user-invocable
true
argument-hint
<链接1> <链接2> ... 或粘贴多行链接

用户希望批量提取多个小红书帖子。请按以下步骤处理:

常量定义

  • Cookies 文件: ~/cookies.json
  • Obsidian 保存目录: ~/Documents/Obsidian Vault/xhs
  • Whisper 模型: mlx-community/whisper-large-v3-turbo

输入

用户提供的链接列表: $ARGUMENTS

流程

步骤 1:解析链接

从输入中提取所有小红书链接(支持多行、空格分隔、逗号分隔)。 每个链接提取帖子 ID 和 xsec_token。

步骤 2:检查 Cookies

检查 ~/cookies.json 是否存在。如不存在,按 /xhs 的步骤 0 引导用户导出。

步骤 3:逐个提取

对每个链接,执行 /xhs 的完整提取流程(步骤 2-4):

  • 请求页面 → 解析 INITIAL_STATE
  • 视频帖子做语音转录
  • 按 Peter Thiel 风格整理
  • 保存为 {YYYY-MM-DD} {短标题}.md

每个帖子之间间隔 3 秒,避免触发反爬。

步骤 4:汇总报告

全部完成后,输出简短汇总:

  • 成功/失败数量
  • 每个帖子的文件名和一句话摘要

© chenxiachan, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/xhs-batch of chenxiachan/xhs-claude-skills.

Open the folder on GitHubat commit e140727

Compare with similar skills

Xhs Batch next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Xhs Batch compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xhs Batch this skillchenxiachan/xhs-claude-skills421—~187Automated safety check: NotesMIT
Agent ReachPanniantong/Agent-Reach94k—~1.4kAutomated safety check: PassMIT
Guizang Social Cardsop7418/guizang-social-card-skill7.4k1 repos~7.8kAutomated safety check: PassAGPL-3.0
Yuwen Publish Precheckyuwen-cool/yuwen-publish-precheck7751 repos~1.8kAutomated safety check: PassMIT
Video Podcast MakerAgents365-ai/video-podcast-maker1.7k—~4.9kAutomated safety check: PassMIT
Xhs Note Creatorcomeonzhj/Auto-Redbook-Skills2.3k—~580Automated safety check: NotesNone

Similar skills

  • Agent Reach

    Panniantong/Agent-Reach

    Routes web research and platform lookups across 16 sites, including Twitter, Reddit, YouTube, Bilibili, Xiaohongshu and GitHub, through one command-line tool.

    94k GitHub stars~1.4k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Guizang Social Cards

    op7418/guizang-social-card-skill

    Produces social card sets for Xiaohongshu and WeChat: carousels, Live Photo motion cards and puzzle layouts, and WeChat cover pairs, rendered from single-file HTML.

    7.4k GitHub starsUsed in 1 repo~7.8k tokens
    Media & CreativeAuto-check passed
  • Yuwen Publish Precheck

    yuwen-cool/yuwen-publish-precheck

    国内自媒体发布前风险自审与保意修复:审口播稿、文章、图文笔记、字幕、封面文字能不能发抖音/小红书/微信视频号,给出具体位置、依据和可直接替换的改稿;被限流/删除/处罚后帮你复盘归因;你的行业敏感词、误报白名单和踩坑案例会沉淀成个人规则库,越用越准。Use when…

    775 GitHub starsUsed in 1 repo~1.8k tokens
    Productivity & AutomationAuto-check passed
  • Video Podcast Maker

    Agents365-ai/video-podcast-maker

    A skill your agent uses when the user gives a topic and wants an automated topic-driven narrated explainer, podcast, or knowledge-summary video (Bilibili / YouTube / Xiaohongshu / Douyin / WeChat…

    1.7k GitHub stars~4.9k tokensUpdated 8 days ago
    Media & CreativeAuto-check passed
  • Xhs Note Creator

    comeonzhj/Auto-Redbook-Skills

    小红书笔记素材创作技能。当用户需要创建小红书笔记素材时使用这个技能。技能包含:根据用户的需求和提供的资料,撰写小红书笔记内容(标题+正文),生成图片卡片(封面+正文卡片),以及发布小红书笔记。支持 8 种精美排版主题和 4 种智能分页模式。

    2.3k GitHub stars~580 tokensUpdated 1 mo ago
    Auto-check: notes
  • Xhs Virtual Product

    chenjin-cmd/xhs-virtual-product

    This skill helps plan, select, produce, and market Xiaohongshu (RED) virtual/digital products — templates, knowledge bases, test tools, study materials.

    726 GitHub stars~862 tokensUpdated 9 days ago
    Knowledge ManagementAuto-check passed

More from chenxiachan/xhs-claude-skills

  • Xiaohongshu Post Extractor

    chenxiachan/xhs-claude-skills

    Pulls a Xiaohongshu post's text, image text and video subtitles or transcript into a Markdown note saved in an Obsidian folder, in Chinese.

    421 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check: warnings
  • Xiaohongshu Cover Generator

    chenxiachan/xhs-claude-skills

    Creates a Xiaohongshu-style 3:4 cover image from a title by building an HTML page in one of six visual styles and capturing it with Playwright.

    421 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check: notes
  • Xhs Analyze

    chenxiachan/xhs-claude-skills

    分析已提取的小红书收藏内容,做 AI 总结、对比、提炼

    421 GitHub stars~153 tokensUpdated 1 mo ago
    Auto-check: notes

Works with

Questions about Xhs Batch

How do I install Xhs Batch in Claude Code?

Run `npx skills add chenxiachan/xhs-claude-skills --skill xhs-batch -a claude-code`. Or copy the skill folder (skills/xhs-batch in chenxiachan/xhs-claude-skills) into .claude/skills/xhs-batch in your project. Claude Code loads it when a task matches its description.

How do I install Xhs Batch in Codex?

Run `npx skills add chenxiachan/xhs-claude-skills --skill xhs-batch -a codex`. Or copy the skill folder (skills/xhs-batch in chenxiachan/xhs-claude-skills) into .agents/skills/xhs-batch in your project. Codex loads it when a task matches its description.

Can I use Xhs Batch in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add chenxiachan/xhs-claude-skills --skill xhs-batch -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xhs-batch, .gemini/skills/xhs-batch, .github/skills/xhs-batch and .opencode/skills/xhs-batch in your project.

What does Xhs Batch need to run?

SKILL.md names no scripts, command-line tools or credentials: Xhs Batch is instructions for the agent only. Its frontmatter pre-approves these tools: Bash, Read, Write, Edit, Glob, Grep.

Does Xhs Batch access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Xhs Batch safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Xhs Batch use?

Xhs Batch is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Xhs Batch use?

About 187 tokens (SKILL.md is roughly 748 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Xhs Batch?

Skills that share tags, products or a category with Xhs Batch: Agent Reach (Panniantong/Agent-Reach, 94k stars), Guizang Social Cards (op7418/guizang-social-card-skill, 7.4k stars), Yuwen Publish Precheck (yuwen-cool/yuwen-publish-precheck, 775 stars) and Video Podcast Maker (Agents365-ai/video-podcast-maker, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xhs Batch?

chenxiachan (a GitHub user) maintains it in chenxiachan/xhs-claude-skills, which has 421 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on August 14, 2026.

Source: chenxiachan/xhs-claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.