Red book content creation
将文章、技术文档等内容转换为适合小红书发布的 HTML 格式,生成封面图和内容截图,配好标题和正文摘要。 用户提供原始内容(Markdown 或纯文本)后,AI 生成适配小红书风格的多图 HTML 页面,并调用截图工具生成可直接发布的图片。 适用于:技术博客分享、知识干货、產品介绍、营销内容等。 Skill: Red book content creation Owner: wenhulove333 Summary: 将文章、技术文档等内容转换为适合小红书发布的 HTML 格式,生成封面图和内容截图,配好标题和正文摘要。 用户提供原始内容(Markdown 或纯文本)后,AI 生成适配小红书风格的多图 HTML 页面,并调用截图工具生成可直接发布的图片。 适用于:技术博客分享、知识干货、產品介绍、营销内容等。 Tags: latest:1.0.2 Version history: v1.0.2 | 2026-05-11T02:00:11.561Z | user - 新增对数学公式渲染支持,内容包含公式时自动引入 katex 并渲染 - 文档详细说明 katex 的引入方式、渲染方法及注意事项 - 增加公式容器与渲染示例代码(含 window.onload 建议) - 注意事项中新增“代码块格式规范”条目,细化代码展示标准
Rank
62
Safety
84
Downloads
1.3k
Updated
Oct 10, 2026
Version
1.0.2
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 10, 2026
- Adoption signal
- 1.3K downloadsadoption · observed Oct 10, 2026
- Latest release
- 1.0.2release · observed May 11, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s1798wxxjz8rdbag65httgxcqs858nym:red-book-content-creation- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-wenhulove333-red-book-content-creation/snapshot"
Documentation
CLAWHUB
16,675 characters of source documentation, loaded on request.
Extracted files
3 files captured from the source.
SKILL.md
--- name: xiaohongshu-content description: > 将文章、技术文档等内容转换为适合小红书发布的 HTML 格式,生成封面图和内容截图,配好标题和正文摘要。 用户提供原始内容(Markdown 或纯文本)后,AI 生成适配小红书风格的多图 HTML 页面,并调用截图工具生成可直接发布的图片。 适用于:技术博客分享、知识干货、產品介绍、营销内容等。 --- # 小红书内容生成技能 ## 功能概述 将任意文章/内容转换为**小红书风格**的 HTML 页面,输出多张可截图发布的图片,并附上**标题 + 正文摘要**。 支持**两种风格**: - 🎨 **热情风**(红色系):#FF6B6B → #FF8E53 橙红渐变,适合激情、励志、营销类内容 - 🔬 **科技风**(蓝紫系):#4A90E2 → #7B68EE 蓝紫渐变,适合技术干货、科普、编程类内容 --- ## 风格选择 | 风格 | 主色调 | 渐变 | 适用场景 | |------|--------|------|----------| | **热情风** | #FF6B6B (珊瑚红) | #FF6B6B → #FF8E53 | 营销/励志/个人成长/情感类 | | **科技风** | #4A90E2 (科技蓝) | #4A90E2 → #7B68EE | 技术干货/编程/数据库/架构类 | 生成内容时,根据内容主题自动选择风格: - 数据库、缓存、架构、编程 → **科技风** - 营销、增长、个人IP、情感 → **热情风** - 可通过指令指定风格,如"用热情风生成" --- ## 使用方式 ### 方式一:发送内容给 AI 直接把你的文章内容发给我(可以是 Markdown 或纯文本),告诉我"帮我生成小红书内容"或"做成适合小红书的格式"。 **示例:** > "帮我把这篇关于 Redis 缓存的文章做成小红书风格的内容" **我会自动:** 1. 分析内容结构,提取核心要点 2. 根据内容类型选择合适风格(科技风/热情风) 3. 生成适配小红书的 HTML 页面(封面 + 多个内容区块) 4. 截图并发送给你 5. 提供标题和正文建议 ### 方式二:命令行调用 ```bash cd ~/.openclaw/workspace/skills/xiaohongshu-content bash scripts/generate_content.sh "你的内容" "输出标题" [tech|passion] ``` --- ## 输出规格 | 项目 | 说明 | |------|------| | **图片数量** | 1张完整长图(包含所有内容) | | **图片格式** | PNG | | **图片宽度** | 680px(小红书标准宽度) | | **图片高度** | 自动(根据内容长度) | | **HTML输出** | 可在浏览器打开查看完整效果 | | **截图工具** | wkhtmltoimage | --- ## HTML 模板 技能包含两个预设模板: ### 科技风 (tech_style.html) - **主色**: #4A90E2 (科技蓝) - **渐变**: #4A90E2 → #7B68EE (蓝紫渐变) - **背景**: #F0F4FF / #F8F0FF (淡蓝/淡紫) - **强调色**: #4A90E2 (蓝), #7B68EE (紫) - **适用**: 技术干货、编程、数据库、架构、DevOps 等 ### 热情风 (passion_style.html) - **主色**: #FF6B6B (珊瑚红) - **渐变**: #FF6B6B → #FF8E53 (橙红渐变) - **背景**: #FFF5F5 / #FFF9F0 (淡粉/淡黄) - **强调色**: #FF6B6B (红), #FF8E53 (橙) - **适用**: 营销、个人成长、情感、励志等 ### 通用组件 两种风格共用相同的组件结构: - **封面卡片**:emoji + 标题 + 副标题 + 标签 - **内容卡片**:图标 + 标题 + 副标题 + 要点列表 + 类比框 - **对比表格**:渐变色表头 + 斑马纹行 - **流程图**:渐变按钮 + 箭头 - **徽章标签**:圆角胶囊样式 - **总结网格**:2列 Summary Card --- ## 截图脚本用法 ```bash cd /root/.openclaw/workspace/skills/xiaohongshu-content/outputs # 生成长图(完整内容) wkhtmltoimage --width 680 --quality 90 input.html output.png # Python 截图(可获取精确尺寸) python3 scripts/take_screenshot.py --input input.html --output output.png --width 680 ``` --- ## 标题与摘要生成规则 ### 标题公式 ``` [符号] + [核心关键词] + [效果词] + [平台词] 示例(科技风): 🔍 一文搞懂MySQL索引核心原理 💡 5分钟理解Redis缓存雪崩 🚀 微服务架构避坑指南 示例(热情风): 🔥 这个思维模式,悄悄拉开了差距 ✨ 3个技巧,让你的效率翻倍 💪 坚持30天,发生惊人变化 ``` ### 摘要公式 ``` [一句话概括价值] + [时间/难度暗示] + [行动引导] 示例: Redis缓存穿透、击穿、雪崩一篇全搞懂,收藏慢慢看~ #Redis #缓存技术 #后端开发 #知识分享 ``` ### 标签策略 - 3-5个标签 - 结构:1个领域词 + 1-2个技术词 + 1个平台词 + 1个情绪词 - 示例:#MySQL #数据库索引 #技术干货 #知识分享 --- ## 依赖项 | 依赖 | 用途 | 安装 | |------|------|------| | Python3 | 截图脚本 | 系统自带 | | wkhtmltoimage | HTML渲染引擎 | `apt install wkhtmltopdf` | | ImageMagick | 图片裁剪 | `apt install imagemagick` | --- ## 文件结构 ``` xiaohongshu-content/ ├── SKILL.md # 本技能说明 ├── scripts/ │ ├── generate_content.sh # 内容生成主脚本 │ ├── take_screenshot.py # Python截图工具 │ └── open_preview.sh # 浏览器打开预览 ├── templates/ │ ├── te
_meta.json
{
"ownerId": "kn739fhz3rn1yz422hv1rw15sh858b77",
"slug": "red-book-content-creation",
"version": "1.0.2",
"publishedAt": 1778464811561
}skill-card.md
## Description: Converts articles, technical documents, and other text into Xiaohongshu-ready HTML pages with a title, summary, cover, and screenshot-ready visual content. This skill is ready for commercial/non-commercial use. ## Publisher: [wenhulove333](https://clawhub.ai/user/wenhulove333) ### License/Terms of Use: MIT-0 ## Use Case: Content creators, marketers, and developers use this skill to turn Markdown or plain text into Xiaohongshu-style visual posts for technical explainers, product introductions, marketing content, and knowledge sharing. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: User-provided text is inserted into generated HTML by the local shell generator without safe escaping. Mitigation: Review generated HTML before rendering, avoid untrusted or sensitive input, and replace shell placeholder substitution with safe escaping before deployment. Risk: Rendering generated HTML can execute template scripts and load KaTeX assets from a CDN. Mitigation: Render in a sandboxed environment and document or restrict network access for CDN-loaded assets. Risk: Generated HTML and PNG outputs may retain user content on disk. Mitigation: Define output retention and cleanup practices before using the skill with confidential material. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/wenhulove333/skills/red-book-content-creation) - [KaTeX stylesheet CDN](https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css) - [KaTeX script CDN](https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js) ## Skill Output: **Output Type(s):** [text, markdown, code, shell commands, files, guidance] **Output Format:** [Markdown guidance with generated HTML, shell commands, and PNG/HTML output file paths.] **Output Parameters:** [1D] **Other Properties Related to Output:** [Uses 680px-wide HTML templates and screenshot generation for Xiaohongshu-style image posts.] ## Skill Version(s): 1.0.2 (source: server release metadata) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/wenhulove333/skills/red-book-content-creation",
"sourceUrl": "https://clawhub.ai/wenhulove333/skills/red-book-content-creation",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T15:58:30.194Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-wenhulove333-red-book-content-creation/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-wenhulove333-red-book-content-creation/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T15:58:30.194Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.3K downloads",
"href": "https://clawhub.ai/wenhulove333/red-book-content-creation",
"sourceUrl": "https://clawhub.ai/wenhulove333/red-book-content-creation",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T15:58:30.194Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.2",
"href": "https://clawhub.ai/wenhulove333/red-book-content-creation",
"sourceUrl": "https://clawhub.ai/wenhulove333/red-book-content-creation",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-05-11T02:00:11.561Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-wenhulove333-red-book-content-creation/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-wenhulove333-red-book-content-creation/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.2",
"description": "- 新增对数学公式渲染支持,内容包含公式时自动引入 katex 并渲染 - 文档详细说明 katex 的引入方式、渲染方法及注意事项 - 增加公式容器与渲染示例代码(含 window.onload 建议) - 注意事项中新增“代码块格式规范”条目,细化代码展示标准",
"href": "https://clawhub.ai/wenhulove333/red-book-content-creation",
"sourceUrl": "https://clawhub.ai/wenhulove333/red-book-content-creation",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-05-11T02:00:11.561Z",
"isPublic": true
}
]
}Record generated Oct 10, 2026.
