ancient-poetry-memory-card
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ancient-poetry-memory-card" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d5f1f032f83dda662bad9a9b9a12d2b84afbe14692d1a0d1d69e4718e5b01a50. Verify the upstream source and version against https://skillhub.cn/skills/org-awzs0xyg/ancient-poetry-memory-card before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Ancient-poetry memory card generator. Converts a classical poem (e.g., "Quiet Night Thought") into an illustrated HTML memory card that includes the poem split by lines, an image for each line, author background, an overall interpretation, and line-by-line commentary. Intended for creating teaching materials, memory cards, and cultural popularization content; supports batch processing of multiple poems. Triggered by user requests like "generate image cards for a poem," "ancient-poetry memory card," "poem with images," or "make a pictorial card for XX poem."
Introduction source: third_party · org-awzs0xyg · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: ancient-poetry-memory-card
description: 古诗词记忆卡片生成器。将一首古诗(如《静夜思》)转化为图文并茂的 HTML 记忆卡片,包含原文分句、逐句配图、作者背景、整体意境阐述和逐句赏析。当用户请求"为古诗生成图片卡片""古诗词记忆卡片""古诗配图""把XX古诗做成图文卡片"时触发此技能。适用于制作古诗词教学素材、记忆卡片、文化科普内容。支持批量处理多首古诗。
version: 1.0.0
category: 教育
platforms: WorkBuddy
agent_created: true古诗词记忆卡片生成器
概述
将一首古诗词转化为图文并茂的 HTML 记忆卡片。每句诗配一张水墨画风格图片,附作者背景、整体意境、逐句赏析。输出为可独立打开的精美 HTML 文件。
适用场景
- 为中小学古诗词教学制作图文卡片
- 制作古诗词记忆/背诵卡片
- 文化科普内容(公众号、小红书等)的图文素材
- 批量生成多首古诗的配图卡片(如唐诗三百首)
工作流(4 步)
整个流程是一个 SOP,从输入古诗到输出 HTML 卡片共 4 步。每步使用的模型/工具说明如下。
第 1 步:准备古诗数据
使用模型/工具:无(纯数据整理,由 WorkBuddy 直接处理)
输入:诗名、作者、朝代、原文
输出:结构化的古诗数据,包含分句列表
操作:
- 根据用户提供的诗名,确认原文(如不确定,查询可靠来源)
- 将原文按句拆分(4 句、8 句或其他)
- 为每句准备一段意境描述(用于第 2 步生图的 prompt)
- 确认作者、朝代、整体创作背景
示例(以《静夜思》为例):
诗名:静夜思
作者:李白
朝代:唐
分句:
1. 床前明月光 — 床边洒落银白月光
2. 疑是地上霜 — 月光如霜铺满地面
3. 举头望明月 — 抬头仰望天上圆月
4. 低头思故乡 — 低头沉思遥念故乡
第 2 步:逐句生成图片
使用模型/工具:腾讯混元(Hunyuan)文生图模型,通过 ImageGen 工具调用(先用 ToolSearch 加载 ImageGen 的 schema,再用 DeferExecuteTool 调用)
成本:每张图约 5-10 credits,每首诗 4-8 张图
操作:
- 为每句诗构造一个英文 prompt,统一使用以下风格模板保证画风一致:
Traditional Chinese ink wash painting (shuimo hua), vertical scroll format. [诗句意境描述], minimalist composition with generous negative space, soft ink brushwork, muted ink tones, poetic and contemplative mood - 图片尺寸统一用
1024x1536(竖轴卷轴画比例) - quality 设为
high - ⚠️ 必须串行调用,不能并行:实测发现,并行调用 ImageGen 时
output_dir参数会失效,所有图都会被存到同一个目录且文件名(基于时间戳)相同,导致互相覆盖,最终只剩 1 张图。正确做法是逐张生成,每张完成后再发下一张。 - 每张图指定独立的
output_dir子目录(如images/line1、images/line2),生成完成后统一复制重命名为poem_X.png(X 为句序号)
prompt 模板和示例:详见 references/prompt_templates.md
第 3 步:生成文本内容
使用模型/工具:当前对话模型(即执行此 skill 的 WorkBuddy 实例所用的模型,如 DeepSeek、GPT 等)。WorkBuddy 直接基于自身知识生成,无需额外调用外部模型。
操作:为每首诗生成以下文本内容:
- 作者背景:作者生平要点、创作风格、文学地位(150-200 字)
- 整体意境:这首诗的整体氛围、情感基调、艺术特色(100-150 字)
- 逐句赏析:每句诗的字面意思 + 深层意蕴 + 配图说明(每句 50-100 字)
要求:
- 语言简洁优美,适合做成记忆卡片
- 信息准确,不编造作者生平
- 逐句赏析要和第 2 步生成的图片意境呼应
第 4 步:组装 HTML 卡片
使用模型/工具:无(模板化组装,使用 assets/card_template.html 作为基础模板)
操作:
- 读取
assets/card_template.html模板 - 将以下变量替换为实际内容:
{{POEM_TITLE}}— 诗名{{AUTHOR}}— 作者{{DYNASTY}}— 朝代{{ORIGINAL_TEXT}}— 原文全文{{AUTHOR_BG}}— 作者背景{{MOOD}}— 整体意境- 每句的
{{LINE_X}}、{{LINE_X_ANALYSIS}}、{{LINE_X_IMAGE}}
- 图片路径使用相对路径(如
images/jingyesi_1.png) - 保存为
{{诗名}}_记忆卡片.html到输出目录 - 用
present_files展示给用户
模型与工具一览表
| 步骤 | 任务 | 模型/工具 | 说明 |
|---|---|---|---|
| 1 | 准备古诗数据 | 无(WorkBuddy 直接处理) | 纯数据整理 |
| 2 | 逐句生成图片 | 腾讯混元 Hunyuan 文生图 | 通过 ImageGen 工具调用 |
| 3 | 生成文本内容 | 当前对话模型 | WorkBuddy 自身能力 |
| 4 | 组装 HTML 卡片 | 无(模板替换) | 使用 assets/card_template.html |
关键注意事项
图片生成(第 2 步)的坑
- 并行调用会导致文件覆盖(重要):实测发现,并行调用 ImageGen 时,即使为每张图指定了不同的
output_dir,所有图仍会被存到同一个目录(通常是最后一个 output_dir),且文件名基于相同时间戳,互相覆盖后只剩 1 张图。必须串行调用:一张图生成完成后再发下一张,这是目前唯一可靠的解决方案。 - 风格统一:必须用同一套风格描述词("Traditional Chinese ink wash painting, vertical scroll format"),否则 4 张图画风不一致
- 成本控制:每张图 5-10 credits。批量处理 300 首诗约需 6000-12000 credits,建议分批进行
文本生成(第 3 步)的要求
- 准确性优先:作者生平、创作背景必须准确,不确定时宁缺毋滥
- 诗意和图片呼应:逐句赏析的意境描述要和第 2 步生成的图片风格一致
- 篇幅控制:记忆卡片追求简洁,避免长篇大论
HTML 组装(第 4 步)的规范
- 相对路径:图片路径必须用相对路径,方便整体迁移
- 响应式:模板已做响应式处理,移动端可正常查看
- 字体:使用 STSong/STKaiti 等中文字体,保证古典美感
- 独立可打开:HTML 文件应能脱离服务器独立打开
批量处理指南
当用户需要批量处理多首古诗(如唐诗三百首)时:
- 先确认一首 demo 效果:让用户确认图片质量和卡片样式满意后再批量
- 分批进行:每次处理 5-10 首,避免单次消耗过多 credits
- 统一目录结构:
古诗卡片集/ ├── 静夜思_记忆卡片.html ├── 静夜思卡片/images/ ├── 春晓_记忆卡片.html ├── 春晓卡片/images/ └── ... - 成本预估:提前告知用户总 credits 消耗,征得同意
- 进度跟踪:用 TaskCreate 创建任务列表,逐首标记完成
资源说明
assets/
card_template.html— HTML 卡片基础模板,含样式和占位符
references/
prompt_templates.md— 图片生成 prompt 模板和示例集
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向古诗词教学和文化科普场景,具有明确的教育价值和实用意义
- 支持批量处理,可提升内容制作效率
Highlights
- 触发词覆盖全面,包含多种常见表达方式
- 边界清晰,不易与其他技能混淆
Areas to improve
-
文档过长 Reported severity: Minor
SKILL.md 文档约1800字,超过建议的500行限制
Recommendation: 可考虑将部分详细说明移至 references 目录下的独立文档
-
缺少 When to Use 章节 Reported severity: Minor
文档中未明确标注 When to Use 章节
Recommendation: 建议在概述后添加 When to Use 章节,明确使用时机
Highlights
- 4步工作流结构清晰,步骤划分明确
- 包含详细示例和模板说明
- frontmatter 完整规范
Areas to improve
-
异常处理覆盖不全 Reported severity: Minor
缺少对古诗原文查询失败、图片生成失败等异常的明确处理机制
Recommendation: 建议添加异常处理说明,如原文不确定时的处理方案
Highlights
- 工具来源明确,参数说明详细
- 覆盖主要异常场景(并行调用文件覆盖问题)
- 有成本控制说明和批量处理指南
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.