en un clic
xiaohongshu-writer
// 小红书图文内容创作助手。**必须传入 content**(含 title、body、hashtags、thumbnail),建议 generate_thumbnail=true。优先 Playwright HTML 截图生成封面,失败时回退 Pillow。
// 小红书图文内容创作助手。**必须传入 content**(含 title、body、hashtags、thumbnail),建议 generate_thumbnail=true。优先 Playwright HTML 截图生成封面,失败时回退 Pillow。
查询指定城市未来几天(明天、后天等)的天气预报。当用户询问「明天」「后天」「未来几天」天气时使用;与 weather 互补,weather 仅提供实时天气。
查询城市天气信息,支持查询今天和明天的天气预报。当用户询问某个城市的天气、温度、湿度等信息时使用。
A simple calculator that can add, subtract, multiply, and divide numbers. Use when the user needs to perform basic arithmetic operations.
发起 HTTP 网络请求,支持 GET、POST、PUT、DELETE、PATCH 方法。当用户需要调用 API、获取网页内容、发送数据到服务器时使用。
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
文本处理工具。支持的操作(operation):uppercase(大写)、lowercase(小写)、reverse(反转)、trim(去空白)、count(统计)。参数:text(文本)、operation(操作类型)。
| name | xiaohongshu-writer |
| description | 小红书图文内容创作助手。**必须传入 content**(含 title、body、hashtags、thumbnail),建议 generate_thumbnail=true。优先 Playwright HTML 截图生成封面,失败时回退 Pillow。 |
| license | MIT |
| compatibility | Requires Python 3.x with playwright (pip install playwright, playwright install chromium),或 Pillow 作为回退 |
| metadata | {"author":"skillLite","version":"1.0"} |
content,建议 generate_thumbnail: trueimage_path无需 OpenAI,优先 Playwright HTML 截图,回退 Pillow 绘图。
{
"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"
}
}
封面为高质量图文风格,包含三部分:主标题、正文摘要(2–5 行)、话题标签。由 Playwright 渲染 HTML 并截图(主)或 Pillow 绘制(备选)生成,竖版 3:4。成功后保存到项目根目录 xiaohongshu_thumbnail.png。
| 字段 | 说明 | 示例 |
|---|---|---|
cover_title | 封面上显示的主标题(可略,默认用 title) | "3 件办公室好物" |
accent_color | 主色调,十六进制或中文 | "#FF6B6B" 或 "暖橙" |
style | 风格 | "gradient" / "minimal" / "vibrant" |
gradient:渐变背景,主色到深色(默认)minimal:简约灰白vibrant:纯色块工具调用:传入 content(必填),即 Agent 已生成的内容。格式:
{
"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=1entry_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