z-article-card

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

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "z-article-card" with this command: npx skills add aatrooox/z-article-card

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.pngcard_02.png

示例调用

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-page280每页字符上限(推荐 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

交互式教学网页生成器

根据教案、教材或课件生成交互式教学HTML网页

Registry SourceRecently Updated
General

大学生学习规划助手

大学生学习规划与作业助手。根据课程表、作业截止日期和复习计划,生成每日任务清单、优先级排序,整理学习资料和复习要点,提供番茄钟学习提醒。触发词:学习计划、作业规划、复习计划、任务清单、DDL管理、课程安排、番茄钟、学习提醒。

Registry SourceRecently Updated
General

The English Tutor

英语口语陪练助手。触发词:「练习英语」「我要说英语」「英语陪练」。功能:上传生词表 → 每日定时情景对话 → 语音输入即时纠错 → 飞书语音推送 → 自动艾宾浩斯复习。

Registry SourceRecently Updated
General

Writing Triadic Repo

Triadic collaborative writing framework with self-evolving memory engine. Creator mines intent via progressive questioning, Executor produces ≥2 distinct dra...

Registry SourceRecently Updated