gushiwen

Efficient classical Chinese memorization tool for middle and high school students: a four-step process—(1) mind-map of text structure (2) per-sentence pictorial memory cards (simple drawing + pinyin + translation + notes) (3) A4 printable PDF (4) per-sentence explanatory vertical video (1080×1920 MP4). Suited for exam-required texts; triggered by requests for poem/classical text memorization or related memory aids.

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 "gushiwen" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a184a4d95e86b622757b0a5a2cc4866f00cab806a7ee887df370aa972d669482. Verify the upstream source and version against https://skillhub.cn/skills/user_010a3d49/gushiwen 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

Efficient classical Chinese memorization tool for middle and high school students: a four-step process—(1) mind-map of text structure (2) per-sentence pictorial memory cards (simple drawing + pinyin + translation + notes) (3) A4 printable PDF (4) per-sentence explanatory vertical video (1080×1920 MP4). Suited for exam-required texts; triggered by requests for poem/classical text memorization or related memory aids.

0 Downloads

Introduction source: third_party · user_010a3d49 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 古诗文三步记忆法
description: >
  面向初高中生的古诗文高效背诵工具。四步流程:① 思维导图梳理文章结构→② 逐句画图记忆卡(简笔画+拼音+翻译+注释)→③ A4打印版PDF→④ 逐句讲解视频(竖屏1080×1920 MP4)。适用于《逍遥游》《赤壁赋》《岳阳楼记》《滕王阁序》等中高考必背篇目。当用户提出古诗文背诵、古文记忆卡、逐句画图、记忆法时触发此技能。
agent_created: true

古诗文三步记忆法

定位

帮初高中生用"结构梳理→画图记忆→听读巩固→视频跟背"四阶段高效背诵中高考必背古诗文。核心交付物:可打印A4画图记忆卡 + 逐句讲解视频。

触发场景

用户提出以下意图时触发:

  • 背诵某篇古诗文(输入"帮我背《赤壁赋》")
  • 制作记忆卡("做《岳阳楼记》的记忆卡")
  • 逐句图解("把《滕王阁序》逐句配上简笔画")
  • 古文记忆法("有什么高效背古文的方法")
  • 做讲解视频("把这篇做成逐句讲解视频")

四步流程

第一步:思维导图拆解

目标:建立全局认识,知道文章在讲什么、分几段、逻辑如何递进。

做法:

  1. 分析原文结构,划分为 5-10 个章节/段落
  2. 为每章命名(4-6字概括),如"鲲鹏化形""风之积""至人无己"
  3. 用 Mermaid flowchart 或 SVG 生成结构脑图
  4. 标注各章节的逻辑关系(递进/对比/例证/总结)

输出:一张结构化思维导图(Mermaid 或 SVG),向用户确认分段是否合理。

第二步:逐句画图记忆卡

目标:每句配一张卡片,含简笔画+拼音+翻译+注释,实现"看图记句子"。

做法:

  1. 将每章拆为逐句(一句为一卡,通常每章 5-8 句)
  2. 每张卡片生成四项内容:
要素 说明 规范
简笔画 SVG,表达句子核心意象 viewBox 560×160,线条粗≥2.5px,白色背景
原文 带 ruby 拼音标注 <ruby>难字<rt>pīn yīn</rt></ruby>
翻译 白话文直译 以"翻译:"开头,加 <b> 标签
注释 难字解释和文化背景 1-2 句,灰色小字
  1. 生成单一 HTML 文件,封面+章节标题+逐句卡片
  2. 布局用两列 CSS Grid,简笔画在上、文字在下

HTML 输出规范(参见 references/layout-checklist.md 中的完整检查清单):

  • 字体:楷体/KaiTi,橙棕配色(#b8860b 系列)
  • 每章用 <div class="chapter-wrap"> 包裹标题+卡片
  • 卡片编号用圆形橙色 badge(宽高 22px)

第三步:A4 打印版 PDF

目标:产出可直接打印的 PDF,学生拿着纸卡背诵。

做法:

  1. 在 HTML 中设置 @page { size: A4 portrait; margin: 6mm; }
  2. 用 Chrome headless 打印:
    chrome --headless --disable-gpu --print-to-pdf-no-header \
      --print-to-pdf="output.pdf" "file:///input.html"
  3. 确认 PDF 页数和排版无误后交付

第四步:逐句讲解视频

目标:生成可发视频号的逐句讲解视频,学生跟着视频就能背诵全文。

做法:

  1. 提取卡片数据:从第二步的 HTML 中解析每张卡片的原文、翻译、注释、SVG
  2. 生成竖屏全屏卡片图片:
    • 新建 HTML,@page { size: 1080px 1920px; margin: 0; }
    • 包含章节标题页(7张)和句子卡片页(43张),共 50 页
    • 用 Chrome headless 打印 PDF → PyMuPDF 逐页提取为 PNG(dpi≥150)
  3. 生成 TTS 语音:
    • 用 edge-tts(zh-CN-XiaoxiaoNeural,rate -5%)为每段生成 mp3
    • 标题页朗读"第X章,章节标题"
    • 卡片页朗读"原文。翻译内容。"(不出现"翻译:"二字,用句号自然停顿)
    • 关键清理:原文必须先用 <rt>.*?</rt> 正则去除拼音字母,再去除 <[^>]+> 标签
  4. 合成视频:
    • 图片铺满 1080×1920,米色背景 #f5f1e8 补白(scale + pad滤镜)
    • 音频编码 AAC 128kbps,视频编码 H.264 yuv420p
    • 逐段合成 mp4 后用 ffmpeg concat 拼接
  5. 验证:检查视频时长、音画同步、卡片是否全屏铺满

视频参数规范:

参数 值
分辨率 1080×1920 竖屏
帧率 24 fps
视频编码 H.264 (libx264)
音频编码 AAC 128kbps
TTS 语音 edge-tts, zh-CN-XiaoxiaoNeural, rate=-5%

质量检查清单(强制执行)

每次生成记忆卡后,按以下六关逐项检查,全部通过才能交付:

第一关:内容准确性

检查项 标准 逍遥游项目的教训
原文完整 逐字逐句与原文对照,不遗漏任何一句 曾遗漏"《谐》之言曰"等引号内句子
拼音正确 所有难字标注 ruby 拼音,多音字按文义选择 拼音只标注难字,常见字不标
翻译准确 每句翻译独立对应,不串句、不意译过头 翻译 div 内「翻译:」前缀用 <b> 标签
TTS 文本干净 音频朗读文本不含拼音字母、不含 HTML 标签 <rt> 标签内的拼音字母会被 TTS 读出,必须去除

第二关:排版美观度

检查项 标准 逍遥游项目的教训
卡片不割裂 一章的标题+所有卡片在同一页或两页 grid 布局 + break-inside: avoid
章节标题不孤悬 章节标题不和下方卡片分离 用 chapter-wrap 包裹整章
背景色打印保留 所有色块在 PDF 中可见 -webkit-print-color-adjust: exact
字体可读 原文≥15px,翻译≥11px,行距≥1.6 A4 两列时卡片简笔画 ≥ 9cm 宽

第三关:PDF 打印便利度

检查项 标准 逍遥游项目的教训
每章独立分页 每章 page-break-after: always 不加此规则会导致章节粘连
封面单独一页 封面后 page-break-after: always
无孤行/孤字 卡片不跨页(break-inside: avoid)
页边距合理 @page margin ≥ 5mm

第四关:视频质量

检查项 标准 逍遥游项目的教训
图片全屏铺满 卡片填满 1080×1920,无黑边/白边 A4 PDF 转视频会留大片空白,需单独生成竖屏 HTML
TTS 无拼音噪声 朗读文本不含 míng/kūn 等拼音字母 <rt> 标签内容必须先 re.sub 去除再合成
TTS 不读"翻译" 原文和翻译用句号分隔,不出现"翻译:"词 之前文本是"…。翻译:…。",TTS 会读出"翻译"
无重复停顿 原文末尾句号不被重复追加 若原文以"。"结尾,合成时不再加"。"
章节标题页存在 每章开头有标题过渡页(2-3 秒) 直接跳入卡片会导致听者不知当前章节
音画同步 音频时长 = 图片停留时长 用 -shortest 参数以音频为准

第五关:用户确认

  1. 展示分段结果,请用户确认章节划分是否合理
  2. 展示前 3 句的卡片样例(简笔画+原文+翻译),确认风格方向
  3. 确认后再批量生成剩下所有卡片

第六关:最终交付

交付物清单:

  • [x] 思维导图(Mermaid/SVG)
  • [x] 画图记忆卡 HTML(可直接浏览器打开)
  • [x] A4 打印版 PDF(Chrome headless 生成)
  • [x] 逐句讲解视频 MP4(1080×1920 竖屏)

可复用脚本(scripts/)

  • 生成画图卡HTML.py - 从结构化数据生成带两列卡片的 HTML(第二步)
  • 打印为PDF.py - 调用 Chrome headless 将 HTML 转为 A4 PDF(第三步)
  • 提取卡片数据.py - 从已生成的 HTML 中提取卡片数据(第四步前置)
  • 生成视频图片.py - 生成 1080×1920 竖屏 HTML → PDF → PNG(第四步)
  • 生成TTS语音.py - 调用 edge-tts 批量合成语音(第四步)
  • 合成讲解视频.py - ffmpeg 图片+音频合成 → concat 拼接(第四步)

参考资料(references/)

  • layout-checklist.md - 排版检查清单(CSS 模板 + 常见错误)
  • 逍遥游项目总结.md - 实际项目中踩过的坑和解决方案

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 面向初高中生古诗文背诵的高频刚需场景
  • 提供四步完整闭环流程(思维导图→记忆卡→PDF→视频)
  • 覆盖中高考必背篇目,交付物具体可执行
Trigger Precision95/100

Highlights

  • 触发词覆盖全面且边界清晰
  • description 位置规范完整
  • 不易与其他 Skill 重叠
Structure and Standards93/100

Highlights

  • 四步流程清晰,含出口条件
  • 六关质量检查清单确保交付质量
  • frontmatter 完整,文档结构规范
Execution Reliability94/100

Highlights

  • 工具链明确(Chrome headless + edge-tts + ffmpeg)
  • 参数配置详细准确
  • 用户确认机制降低执行风险
Evidence Verifiability (mean of the first four)94/100

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.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.