# Xhs Graphic Generator

> |

- **Type:** Skill
- **Install:** `agentstack add skill-norsizu-xhs-graphic-generator-xhs-graphic-generator`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [norsizu](https://agentstack.voostack.com/s/norsizu)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [norsizu](https://github.com/norsizu)
- **Source:** https://github.com/norsizu/xhs-graphic-generator

## Install

```sh
agentstack add skill-norsizu-xhs-graphic-generator-xhs-graphic-generator
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 小红书图文生成

将主题或文章转化为小红书风格的图文卡片系列（3:4竖版，2K分辨率）。

## 工作流程

### 1. 分析输入

- **主题模式**：用户给主题，自由规划内容
- **改写模式**：用户给文章，提取核心改写

确定内容密度：
| 密度 | 每张字数 | 图片数 | 适用 |
|------|----------|--------|------|
| 轻量 | 60-100 | 5-7 | 技巧、分享 |
| 中等 | 100-180 | 7-12 | 科普、攻略 |
| 重量 | 150-250 | 10-18 | 教程、分析 |

### 2. 规划图片序列

| 序号 | 类型 | 作用 |
|------|------|------|
| P1 | cover | 封面 - 吸睛标题 |
| P2-Pn | content | 内容 - 每张一个知识点 |
| 最后 | summary | 收尾 - 总结+互动引导 |

### 3. 编写 Prompt 并生成

**每张图片的 Prompt 必须包含（300-500英文词）：**

```
3:4 vertical Xiaohongshu [card type].

**Style**: [风格名称] with [特征]
**Background**: [背景描述 + HEX色值]
**Main Subject/Layout**: [主体布局]
**Decorative Elements**: [装饰元素]
**Text Content** (Chinese): [完整中文文案]
**Typography**: [字体、大小、颜色、位置]
**Negative prompts**: [15-25个负面词]
```

调用脚本生成（固定参数：3:4 比例，2K 分辨率）：
```bash
bash scripts/generate.sh "完整的英文Prompt" "3:4" "2K"
```

### 4. 输出结果

展示所有图片 + 帖子标题 + 正文 + 话题标签：
```markdown

...

### 📝 帖子标题
xxx

### 🏷️ 话题
#话题1 #话题2
```

## 参考文件

- `references/prompt-guide.md` - Prompt 编写规范与示例模板
- `references/styles.md` - 五种视觉风格的详细配色方案
- `references/content-planning.md` - 内容分析与规划方法论

## 配色速查

| 风格 | 主色 | 强调色 |
|------|------|--------|
| 清新自然 | #FAF9F7 | #B8E0D2, #5ABAB7 |
| 简约卡片 | #FFFFFF | #E8E8E8 |
| 奶油治愈 | #FDF8F3 | #C4A77D |
| 知识卡片 | #F5F0E8 | #8B7355 |
| 科技简约 | #1E293B | #7C3AED, #6366F1 |

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [norsizu](https://github.com/norsizu)
- **Source:** [norsizu/xhs-graphic-generator](https://github.com/norsizu/xhs-graphic-generator)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-norsizu-xhs-graphic-generator-xhs-graphic-generator
- Seller: https://agentstack.voostack.com/s/norsizu
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
