Agent skill

Xhs Analyze

by chenxiachan in chenxiachan/xhs-claude-skills

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

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

Install Xhs Analyze

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

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

GitHub CLI
$ gh skill install chenxiachan/xhs-claude-skills xhs-analyze --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-analyze .claude/skills/xhs-analyze && 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-analyze
GitHub stars
421
Token cost
~153 tokens
SKILL.md length
43 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 Analyze is a skill in chenxiachan/xhs-claude-skills (421 stars). Its SKILL.md is about 153 tokens. Licence: MIT.

Requirements

  • Pre-approved tools (allowed-tools): Bash, Read, 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
    • 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 Analyze loads about 153 tokens when it runs. Until then it costs about 10 tokens; SKILL.md has 43 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
~153

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, 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). 43 words, ~153 tokens.

Download SKILL.mdSave it as .claude/skills/xhs-analyze/SKILL.md (or your agent's skills folder).
name
xhs-analyze
description
分析已提取的小红书收藏内容,做 AI 总结、对比、提炼
allowed-tools
Bash, Read, Glob, Grep
user-invocable
true
argument-hint
<关键词> 或留空分析全部

用户希望对已提取的小红书收藏做 AI 分析。

常量定义

  • Obsidian 保存目录: ~/Documents/Obsidian Vault/xhs

输入

用户查询: $ARGUMENTS

流程

步骤 1:加载数据

读取 <Obsidian 保存目录> 下所有 .md 文件(排除 img/video 子目录)。

如果用户指定了关键词,在文件名和内容中搜索匹配的帖子。 如果参数为空,读取全部帖子进行总览分析。

步骤 2:AI 分析

根据内容类型和用户意图,选择合适的分析方式:

如果是教程/攻略类内容:

  • 提炼核心步骤为编号清单
  • 如有多篇同类内容,做对比总结

如果是知识/科普类内容:

  • 提炼关键知识点
  • 整理为结构化笔记

总览分析(无参数时):

  • 收藏内容的主题分布
  • 高频标签和关注领域
  • 推荐可以深入整理的主题
步骤 3:输出格式

用清晰的中文 Markdown 格式输出分析结果。

© 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-analyze of chenxiachan/xhs-claude-skills.

Open the folder on GitHubat commit e140727

Compare with similar skills

Xhs Analyze 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 Analyze compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xhs Analyze this skillchenxiachan/xhs-claude-skills421—~153Automated safety check: NotesMIT
Xiaohongshu Ingestchubbyguan/chubbyskills1.2k—~613Automated safety check: NotesMIT
Obsidian BasesAtmosphere/atmosphere3.8k22 repos~3.2kAutomated safety check: PassApache-2.0
Knap Markdown Templateskepano/obsidian-skills49k2 repos~986Automated safety check: PassMIT
JSON Canvasheyitsnoah/claudesidian2.6k18 repos~3.5kAutomated safety check: PassMIT
Obsidian MarkdownAtmosphere/atmosphere3.8k20 repos~1.3kAutomated safety check: PassApache-2.0

Similar skills

  • Xiaohongshu Ingest

    chubbyguan/chubbyskills

    小红书笔记采集 → 统一 frontmatter Markdown → 爆款拆解 + 衍生选题. An agent skill from chubbyguan/chubbyskills.

    1.2k GitHub stars~613 tokensUpdated 2 days ago
    Media & CreativeAuto-check: notes
  • Obsidian Bases

    Atmosphere/atmosphere

    Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries.

    3.8k GitHub starsUsed in 22 repos~3.2k tokens
    Backend & APIsAuto-check passed
  • Knap Markdown Templates

    kepano/obsidian-skills

    Renders Markdown notes from Knap templates and JSON data on the command line, including notes built from Defuddle web page output.

    49k GitHub starsUsed in 2 repos~986 tokens
    Documents & OfficeAuto-check passed
  • JSON Canvas

    heyitsnoah/claudesidian

    Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections.

    2.6k GitHub starsUsed in 18 repos~3.5k tokens
    DevelopmentAuto-check passed
  • Obsidian Markdown

    Atmosphere/atmosphere

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    3.8k GitHub starsUsed in 20 repos~1.3k tokens
    Documents & OfficeAuto-check passed
  • 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.

    95k GitHub stars~1.4k tokensUpdated 2 days ago
    Productivity & AutomationAuto-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 Batch

    chenxiachan/xhs-claude-skills

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

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

Questions about Xhs Analyze

How do I install Xhs Analyze in Claude Code?

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

How do I install Xhs Analyze in Codex?

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

Can I use Xhs Analyze 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-analyze -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-analyze, .gemini/skills/xhs-analyze, .github/skills/xhs-analyze and .opencode/skills/xhs-analyze in your project.

What does Xhs Analyze need to run?

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

Does Xhs Analyze 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 Analyze 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 Analyze use?

Xhs Analyze 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 Analyze use?

About 153 tokens (SKILL.md is roughly 612 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 Analyze?

Skills that share tags, products or a category with Xhs Analyze: Xiaohongshu Ingest (chubbyguan/chubbyskills, 1.2k stars), Obsidian Bases (Atmosphere/atmosphere, 3.8k stars), Knap Markdown Templates (kepano/obsidian-skills, 49k stars) and JSON Canvas (heyitsnoah/claudesidian, 2.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xhs Analyze?

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.