Skip to content
Back to skills

Z Article Card

ASecurity

长文分页卡片生成器(文章→多张 PNG)。触发词:长文、文章转图、分页卡片、多图、帮我把文章做成图、做成卡片、生成多图。

  • 33 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
documentationpythongobash

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 14 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill z-article-card --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Z Article Card?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Z Article Card
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-z-article-card/badge)](https://www.skillsdirectory.com/skills/dvcrn-z-article-card)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: z-article-card
description: "长文分页卡片生成器(文章→多张 PNG)。触发词:长文、文章转图、分页卡片、多图、帮我把文章做成图、做成卡片、生成多图。"
---

# z-article-card

将长文章(Markdown 或纯文本)渲染成多张 3:4 分页卡片图,通过 message 工具顺序发图。

## 环境要求

- Python 3
- Google Chrome(macOS:`/Applications/Google Chrome.app`;Linux:`chromium`)
- `pip install markdown`

## 执行流程

1. **获取内容**:用户粘贴文本 或 用 `web_fetch` 抓取 URL 正文
2. **渲染分页**:调用 `scripts/render_article.py`,脚本自动按句末/换行边界分页
3. **顺序发图**:用 message 工具逐张发送 `card_01.png`、`card_02.png`…

## 示例调用

```bash
python3 /path/to/skills/z-article-card/scripts/render_article.py \
  --title "文章标题" \
  --text "全文内容(支持 Markdown 语法)" \
  --out-dir /path/to/workspace/tmp/article_xxx \
  --chars-per-page 300 \
  --highlight "#3d6b4f" \
  --bg "#f9fcfa" \
  --footer "公众号 · 早早集市"
```

## 参数说明

| 参数 | 默认值 | 说明 |
|------|--------|------|
| `--title` | 必填 | 文章标题,显示在每张卡片顶部 |
| `--text` | 必填 | 全文内容(Markdown 格式) |
| `--out-dir` | 必填 | 输出目录,脚本自动创建 |
| `--chars-per-page` | `280` | 每页字符上限(推荐 300) |
| `--highlight` | `#3d6b4f` | 品牌高亮色 |
| `--bg` | `#f9fcfa` | 背景色 |
| `--footer` | `公众号 · 早早集市` | 底部水印文字 |

## 平台预设

| 平台 | `--footer` | `--bg` | `--highlight` |
|------|-----------|--------|--------------|
| 公众号(默认) | `公众号 · 早早集市` | `#f9fcfa` | `#3d6b4f` |
| 小红书 | `小红书 · 阿康` | `#fef9f0` | `#e53935` |

## 模板

- `assets/templates/article-3-4.html` — 分页卡片模板(3:4,900×1200)
- `assets/styles/md.css` — Markdown 渲染样式,**用户可自定义**

详见 `references/article-3-4.md`

Files in this skill

  • README.md1.6 KB
  • SKILL.md2 KB
  • assets/icons/clover.svg758 B
  • assets/icons/jinx-face.svg2.9 KB
  • assets/icons/openclaw-lobster.svg2.5 KB
  • assets/icons/openclaw-logo.svg1.2 KB
  • assets/icons/zzclub-logo-gray.svg1.2 KB
  • assets/styles/md.css2 KB
  • assets/templates/article-3-4.html3.8 KB
  • assets/templates/poster-3-4.html2.7 KB
  • references/article-3-4.md2.3 KB
  • references/image-3-4.md1.4 KB
  • scripts/render_article.py8.7 KB
  • scripts/render_card.py4.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…