xiaohongshu-analyze

xiaohongshu-analyze is a skill for Claude Code, Codex from guyulong/cn-agent-skills. It costs 13 tokens per session (549 once invoked), scanned A, original, MIT.

A guide and script template for analyzing Xiaohongshu, a Chinese social platform for image and video posts. It examines post types, engagement, publishing times, tags, and cover styles.

In plain words
What is it for?
Use it to load Xiaohongshu data from a CSV file, find active publishing times, compare image and video posts, count popular tags, and study features of high-performing posts.
Why use it?
It helps turn post data into publishing decisions instead of relying on guesswork. The included examples compare engagement and identify patterns in highly liked posts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to load Xiaohongshu data from a CSV file, find active publishing times, compare image and video posts, count popular tags, and study features of high-performing posts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/guyulong/cn-agent-skills/xiaohongshu-analyze
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add guyulong/cn-agent-skills --skill xiaohongshu-analyze
Clone the repo
git clone --depth 1 https://github.com/guyulong/cn-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xiaohongshu-analyze

README.md
[![agentmods](https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/xiaohongshu-analyze/github.svg)](https://agentmods.dev/skills/guyulong/cn-agent-skills/xiaohongshu-analyze)
Your own site
<a href="https://agentmods.dev/skills/guyulong/cn-agent-skills/xiaohongshu-analyze"><img src="https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/xiaohongshu-analyze/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xiaohongshu-analyze

Your own site · 80×15
<a href="https://agentmods.dev/skills/guyulong/cn-agent-skills/xiaohongshu-analyze"><img src="https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/xiaohongshu-analyze.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 549 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.00549
Opus 5 $0.00006 $0.00275
Sonnet 5 $0.00003 $0.00110
Haiku 4.5 $0.00001 $0.00055

Measured 11d ago against content hash f795d54d5f7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

xiaohongshu-analyze scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/xiaohongshu-analyze/SKILL.md · 72 lines

What it actually says

小红书数据分析

使用场景

分析小红书内容数据,优化发布策略。

数据维度

  • 笔记类型(图文/视频)
  • 互动数据(点赞、收藏、评论)
  • 发布时间
  • 标签使用
  • 封面设计风格

分析脚本模板

import pandas as pd
import matplotlib.pyplot as plt

plt.rcParams['font.sans-serif'] = ['SimHei', 'Arial Unicode MS']

# 加载数据
df = pd.read_csv('xiaohongshu_data.csv')

# 1. 最佳发布时间分析
df['hour'] = pd.to_datetime(df['发布时间']).dt.hour
hourly_engagement = df.groupby('hour')['互动量'].mean()

plt.figure(figsize=(12, 6))
hourly_engagement.plot(kind='bar')
plt.title('各时段平均互动量')
plt.xlabel('发布时段')
plt.ylabel('平均互动量')
plt.show()

# 2. 热门标签分析
from collections import Counter
all_tags = []
for tags in df['标签'].dropna():
    all_tags.extend([t.strip() for t in tags.split(',')])
tag_counts = Counter(all_tags).most_common(20)

# 3. 内容类型对比
type_stats = df.groupby('类型').agg({
    '点赞': 'mean',
    '收藏': 'mean', 
    '评论': 'mean'
}).round(0)
print(type_stats)

# 4. 爆款特征分析
viral = df[df['点赞'] > df['点赞'].quantile(0.9)]
print(f"爆款笔记特征:")
print(f"  平均标题长度: {viral['标题'].str.len().mean():.0f}字")
print(f"  平均图片数: {viral['图片数'].mean():.0f}张")
print(f"  最常用标签: {Counter([t for tags in viral['标签'] for t in tags.split(',')]).most_common(5)}")

运营建议

  • 最佳发布时间:工作日晚7-10点,周末全天
  • 标签数量:5-10个为宜
  • 标题长度:15-25字
  • 图片数量:6-9张最佳
  • 首图要有吸引力
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 72 lines · 13 tokens per session scan A f795d54d5f7b

Subscribe to this mod's changes

xiaohongshu-analyze is a skill published in the GitHub repository guyulong/cn-agent-skills (3 stars, last pushed 3mo ago), licensed MIT. It adds 13 tokens to every session and 549 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.