Agent skill

Xiaohongshu Writer

by EXboys in EXboys/skilllite

小红书图文内容创作助手。必须传入 content(含 title、body、hashtags、thumbnail),建议 generatethumbnail=true。优先 Playwright HTML 截图生成封面,失败时回退 Pillow。

MITAuto-check passedTesting & QA

Install Xiaohongshu Writer

skills CLI
$ npx skills add EXboys/skilllite --skill xiaohongshu-writer -a claude-code

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

GitHub CLI
$ gh skill install EXboys/skilllite xiaohongshu-writer --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/EXboys/skilllite.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.skills/xiaohongshu-writer .claude/skills/xiaohongshu-writer && 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
xiaohongshu-writer
GitHub stars
170
Token cost
~737 tokens
SKILL.md length
138 words
Files
2 (incl. scripts)
Skills in repo
10
Repo updated
First seen
Licence
MIT

At a glance

小红书图文内容创作助手。必须传入 content(含 title、body、hashtags、thumbnail),建议 generatethumbnail=true。优先 Playwright HTML 截图生成封面,失败时回退 Pillow。

  • Works in 3 steps: Agent 用本 Skill… → 调用本工具,传入生成的 content,建议… → 脚本:优先用 Playwright 渲染 HTML…
  • Tasks that involve Browser testing
  • SKILL.md covers 工作流程, 输出结构(工具返回), 标题规则 and 正文规则, plus 4 more sections
  • Runs Python scripts from its folder; calls pip, playwright and apt

What it does

Xiaohongshu Writer is an agent skill from EXboys/skilllite. 小红书图文内容创作助手。必须传入 content(含 title、body、hashtags、thumbnail),建议 generatethumbnail=true。优先 Playwright HTML 截图生成封面,失败时回退 Pillow。

Its SKILL.md is about 740 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/main.py`). Compatibility notes: Requires Python 3.x with playwright (pip install playwright, playwright install chromium),或 Pillow 作为回退

It sits in Testing & QA, covering Browser testing. It works with Xiaohongshu and Playwright. The repository describes itself as: A lightweight secure Self-evolution engine built in Rust, featuring a built-in native system-level sandbox, zero dependencies, and fully local execution. The licence is MIT.

When your agent uses it

  • Tasks that involve Browser testing

Example prompts

  • “/xiaohongshu-writer”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): Requires Python 3.x with playwright (pip install playwright, playwright install chromium),或 Pillow 作为回退

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Agent 用本 Skill 的指引,根据用户主题生成完整内容(标题、正文、标签、封面设计)
  2. 调用本工具,传入生成的 content,建议 generate_thumbnail: true
  3. 脚本:优先用 Playwright 渲染 HTML 并截图(效果好、排版一致),失败时回退 Pillow;返回 base64 及保存到 image_path

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pip
    • playwright
    • apt

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

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    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.

  • Compatibility

    Requires Python 3.x with playwright (pip install playwright, playwright install chromium),或 Pillow 作为回退

    From compatibility in the SKILL.md frontmatter.

Context cost

Xiaohongshu Writer loads about 737 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 138 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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); the scripts in this folder are not scanned.

SKILL.md

The full file from EXboys/skilllite at commit 281b368, republished under its MIT licence (© EXboys). 138 words, ~737 tokens.

Download SKILL.mdSave it as .claude/skills/xiaohongshu-writer/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
xiaohongshu-writer
description
小红书图文内容创作助手。**必须传入 content**(含 title、body、hashtags、thumbnail),建议 generate_thumbnail=true。优先 Playwright HTML 截图生成封面,失败时回退 Pillow。
compatibility
Requires Python 3.x with playwright (pip install playwright, playwright install chromium),或 Pillow 作为回退
license
MIT
metadata.author
skillLite
metadata.version
1.0

小红书图文创作助手

工作流程

  1. Agent 用本 Skill 的指引,根据用户主题生成完整内容(标题、正文、标签、封面设计)
  2. 调用本工具,传入生成的 content,建议 generate_thumbnail: true
  3. 脚本:优先用 Playwright 渲染 HTML 并截图(效果好、排版一致),失败时回退 Pillow;返回 base64 及保存到 image_path

无需 OpenAI,优先 Playwright HTML 截图,回退 Pillow 绘图。


输出结构(工具返回)

json
{
  "success": true,
  "title": "吸睛标题,带 emoji",
  "body": "正文内容",
  "hashtags": ["#话题1", "#话题2"],
  "thumbnail": {
    "cover_title": "封面显示标题",
    "accent_color": "#FF6B6B",
    "style": "gradient",
    "image_base64": "封面图 base64(仅当未保存到文件时返回,避免输出过大)",
    "image_path": "项目根目录下保存的图片路径,如 xiaohongshu_thumbnail.png",
    "image_source": "playwright 或 pillow"
  }
}

标题规则

  • 长度:15-25 字为宜,信息密度高
  • 必备:至少 1 个 emoji,放在开头或关键词处
  • 禁止:标题党、夸张承诺、违禁词
  • 技巧:数字+结果、反常识、疑问式、场景代入

正文规则

  • 分段:每段 2-4 行,多用空行隔开
  • 语气:口语化、像朋友分享,用"我"、"你"
  • emoji:适当点缀,每段 0-2 个,不过度
  • 结构:开头抓人 → 干货/故事 → 总结/互动
  • 禁止:硬广感、堆砌关键词、违禁词

标签规则

  • 数量:3-5 个
  • 搭配:1 个大类话题 + 2-3 个细分 + 1 个热门
  • 示例:#生活好物 #平价好物 #宿舍党必备 #618攻略

缩略图(封面)设计

封面为高质量图文风格,包含三部分:主标题、正文摘要(2–5 行)、话题标签。由 Playwright 渲染 HTML 并截图(主)或 Pillow 绘制(备选)生成,竖版 3:4。成功后保存到项目根目录 xiaohongshu_thumbnail.png。

Agent 生成 content 时,thumbnail 需包含:
字段说明示例
cover_title封面上显示的主标题(可略,默认用 title)"3 件办公室好物"
accent_color主色调,十六进制或中文"#FF6B6B" 或 "暖橙"
style风格"gradient" / "minimal" / "vibrant"
风格说明
  • gradient:渐变背景,主色到深色(默认)
  • minimal:简约灰白
  • vibrant:纯色块

使用方式

工具调用:传入 content(必填),即 Agent 已生成的内容。格式:

json
{
  "content": {
    "title": "🛒 打工人的 3 件办公室好物!",
    "body": "正文...",
    "hashtags": ["#办公室好物", ...],
    "thumbnail": {
      "cover_title": "3 件办公室好物",
      "accent_color": "#FF6B6B",
      "style": "gradient"
    }
  },
  "generate_thumbnail": true
}

前置条件:

  • pip install playwright 且执行 playwright install chromium(优先,skilllite init 时会安装)
  • 可选回退:pip install Pillow 及中文字体(macOS 自带 PingFang;Linux: apt install fonts-noto-cjk;或于 .skills/xiaohongshu-writer/fonts/ 放入 NotoSansCJKsc-Regular.otf)

沙箱下使用 Playwright:macOS 沙箱会阻止 fork/spawn。若需 HTML 截图,可设置;仅本技能会跳过沙箱(其它技能仍走沙箱):

  • SKILLLITE_SANDBOX_LEVEL=2,或
  • SKILLLITE_ALLOW_PLAYWRIGHT=1

Runtime

yaml
entry_point: scripts/main.py
language: python
input_schema:
  type: object
  properties:
    content:
      type: object
      description: Agent 生成的小红书内容,含 title、body、hashtags、thumbnail
    generate_thumbnail:
      type: boolean
      description: 是否生成缩略图
      default: true
  required:
    - content

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

Files

SKILL.md and 1 other file (scripts) in .skills/xiaohongshu-writer of EXboys/skilllite.

  • SKILL.md
  • scripts/main.py

Open the folder on GitHubat commit 281b368

Compare with similar skills

Xiaohongshu Writer 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.

Xiaohongshu Writer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xiaohongshu Writer this skillEXboys/skilllite170—~737Automated safety check: PassMIT
Xhs Auto PublisherDjangoPeng/agentic-ai152—~570Automated safety check: PassMIT
Xhs Article To ImagesPluviobyte/rnskill1.6k—~985Automated safety check: PassMIT
Xhs Video Linksdragon-hh/ai-boshu-crawler106—~653Automated safety check: PassNone
Skill Xhs Comment ReplyZJU-REAL/Easel3.4k—~865Automated safety check: PassApache-2.0
Skill Xhs PublisherZJU-REAL/Easel3.4k—~726Automated safety check: PassApache-2.0

Similar skills

  • Xhs Auto Publisher

    DjangoPeng/agentic-ai

    面向云服务器的小红书图文自动发布 Skill。适用于需要在 Linux 云服务器上,通过 Playwright/CDP、二维码人工接管、登录缓存、龙虾代发飞书群图片消息、截图留痕与审计日志来完成小红书草稿或发布流程的场景。

    152 GitHub stars~570 tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • Xhs Article To Images

    Pluviobyte/rnskill

    把 Markdown 长文转成小红书 3:4(1080×1440)图片组的 Agent skill。内置五套设计皮肤(E 雅刊·默认 / A 暖杏奶咖 / B 雾松青 / C 黛墨描金 / D 夜读鎏金)+ 女性向三主题(F 粉色王国 / G 乙游夜境 / H 吉卜力)× 多种页型;Agent 负责读文章、拆页和填 HTML,Playwright 渲染器负责逐张截图导出…

    1.6k GitHub stars~985 tokensUpdated 20 days ago
    Testing & QAAuto-check passed
  • Xhs Video Links

    dragon-hh/ai-boshu-crawler

    Extract Xiaohongshu user profile video/note links from a provided profile URL.

    106 GitHub stars~653 tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • 小红书评论互动运营:列出我的笔记、抓取某条笔记下的评论、按画像语气逐条回复、以及删除评论 (含自己发的回复)。基于 Playwright + 持久化登录态,headless 即可运行,与 skill-xhs-publisher 共用同一登录态。评论抓取走接口响应拦截(稳);回复/删除走 DOM 文本定位(无坐标)+ 逐字符输入反检测; 带已回复去重、逐条间隔防风控、dry-run 预演。用…

    3.4k GitHub stars~865 tokensUpdated 2 days ago
    Testing & QAAuto-check passed
  • Skill Xhs Publisher

    ZJU-REAL/Easel

    将图文/视频内容发布到小红书(XHS)。基于 Playwright + 持久化登录态,headless 即可运行, 流程与选择器移植自成熟开源实现 xiaohongshu-mcp(含发布成功校验、上传完成等待、话题联想绑定、 新旧发布按钮兼容、反检测)。适用场景:发布图文笔记、发布视频、扫码登录、发布前预检。

    3.4k GitHub stars~726 tokensUpdated 2 days ago
    Testing & QAAuto-check passed
  • Web Application Testing

    anthropics/skills

    Official

    Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.

    180k GitHub starsUsed in 51 repos~966 tokens
    Testing & QAAuto-check passed

More from EXboys/skilllite

All 10 skills in this repo
  • Web Search

    EXboys/skilllite

    Web search and content extraction with Tavily and Exa via inference.sh CLI.

    170 GitHub starsUsed in 2 repos~1k tokens
    Auto-check passed
  • Text Processor

    EXboys/skilllite

    文本处理工具。支持的操作(operation):uppercase(大写)、lowercase(小写)、reverse(反转)、trim(去空白)、count(统计)。参数:text(文本)、operation(操作类型)。

    170 GitHub stars~261 tokensUpdated 16 days ago
    Auto-check passed
  • HTTP Request

    EXboys/skilllite

    发起 HTTP 网络请求,支持 GET、POST、PUT、DELETE、PATCH 方法。当用户需要调用 API、获取网页内容、发送数据到服务器时使用。

    170 GitHub stars~757 tokensUpdated 16 days ago
    Auto-check passed
  • Calculator

    EXboys/skilllite

    A simple calculator that can add, subtract, multiply, and divide numbers.

    170 GitHub stars~168 tokensUpdated 16 days ago
    Auto-check passed
  • Check Weather Forecast

    EXboys/skilllite

    查询指定城市未来几天(明天、后天等)的天气预报。当用户询问「明天」「后天」「未来几天」天气时使用;与 weather 互补,weather 仅提供实时天气。

    170 GitHub stars~306 tokensUpdated 16 days ago
    Auto-check passed
  • Weather

    EXboys/skilllite

    查询城市天气信息,支持查询今天和明天的天气预报。当用户询问某个城市的天气、温度、湿度等信息时使用. An agent skill from EXboys/skilllite.

    170 GitHub stars~272 tokensUpdated 16 days ago
    Auto-check passed

Categories

Questions about Xiaohongshu Writer

What does Xiaohongshu Writer do?

小红书图文内容创作助手。必须传入 content(含 title、body、hashtags、thumbnail),建议 generatethumbnail=true。优先 Playwright HTML 截图生成封面,失败时回退 Pillow。. Xiaohongshu Writer is an agent skill from EXboys/skilllite.

When should I use Xiaohongshu Writer?

Xiaohongshu Writer fits situations like: tasks that involve Browser testing.

How do I install Xiaohongshu Writer in Claude Code?

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

How do I install Xiaohongshu Writer in Codex?

Run `npx skills add EXboys/skilllite --skill xiaohongshu-writer -a codex`. Or copy the skill folder (.skills/xiaohongshu-writer in EXboys/skilllite) into .agents/skills/xiaohongshu-writer in your project. Codex loads it when a task matches its description.

Can I use Xiaohongshu Writer 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 EXboys/skilllite --skill xiaohongshu-writer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xiaohongshu-writer, .gemini/skills/xiaohongshu-writer, .github/skills/xiaohongshu-writer and .opencode/skills/xiaohongshu-writer in your project.

What does Xiaohongshu Writer need to run?

Going by SKILL.md and its folder, Xiaohongshu Writer needs Python for the scripts in its folder and the command-line tools its instructions call (pip, playwright and apt). Our summary lists: Python 3. Compatibility (from SKILL.md): Requires Python 3.x with playwright (pip install playwright, playwright install chromium),或 Pillow 作为回退.

Does Xiaohongshu Writer access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Xiaohongshu Writer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Xiaohongshu Writer use?

Xiaohongshu Writer is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Xiaohongshu Writer use?

About 737 tokens (SKILL.md is roughly 2.9k 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 Xiaohongshu Writer?

Skills that share tags, products or a category with Xiaohongshu Writer: Xhs Auto Publisher (DjangoPeng/agentic-ai, 152 stars), Xhs Article To Images (Pluviobyte/rnskill, 1.6k stars), Xhs Video Links (dragon-hh/ai-boshu-crawler, 106 stars) and Skill Xhs Comment Reply (ZJU-REAL/Easel, 3.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xiaohongshu Writer?

EXboys (a GitHub user) maintains it in EXboys/skilllite, which has 170 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on September 25, 2026.

Source: EXboys/skilllite on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.