anki-card-generator

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Anki Card Generator

Anki卡片生成器

Generate high-quality Anki cards based on LessWrong best practices and simple-anki-sync format.
基于LessWrong最佳实践和simple-anki-sync格式生成高质量Anki卡片。

Pre-Generation Clarification

生成前的确认环节

Before generating cards, clarify with user if unclear:
  1. Scope: "Which aspects to focus on?" (for broad topics)
  2. Depth: "Basic concepts only, or detailed Level 2/3 cards?"
  3. Quantity: "How many cards? (Recommend 5-10 for core concepts)"
  4. Context: "Any specific exam or application scenario?"
Proceed only after understanding requirements.
在生成卡片前,若信息不明确,需与用户确认以下内容:
  1. 范围:"需要聚焦哪些方面?"(针对宽泛主题)
  2. 深度:"仅基础概念,还是需要包含Level 2/3的详细卡片?"
  3. 数量:"需要生成多少张卡片?(核心概念建议5-10张)"
  4. 场景:"是否有特定的考试或应用场景?"
明确需求后再继续生成。

Output Format

输出格式

Use simple-anki-sync format:
markdown
#anki/[domain]/[topic]

| [Question] |
| ---------- |
| [Core answer]<br><br><small>💡 [Supplementary info]</small> |
使用simple-anki-sync格式:
markdown
#anki/[domain]/[topic]

| [Question] |
| ---------- |
| [Core answer]<br><br><small>💡 [Supplementary info]</small> |

Format Options

格式选项

Option A (Recommended): HTML tags
markdown
| 唐朝建立时间 |
| ---------- |
| 618年,李渊建立<br><br><small>💡 隋末农民起义后起兵</small> |
Option B: Separator
markdown
| 唐朝建立时间 |
| ---------- |
| 618年,李渊建立 ——— 💡 隋末农民起义后起兵 |
Option C: Parentheses
markdown
| 唐朝建立时间 |
| ---------- |
| 618年,李渊建立(趣闻:其子李世民功劳最大) |
选项A(推荐):HTML标签
markdown
| 唐朝建立时间 |
| ---------- |
| 618年,李渊建立<br><br><small>💡 隋末农民起义后起兵</small> |
选项B:分隔符
markdown
| 唐朝建立时间 |
| ---------- |
| 618年,李渊建立 ——— 💡 隋末农民起义后起兵 |
选项C:括号
markdown
| 唐朝建立时间 |
| ---------- |
| 618年,李渊建立(趣闻:其子李世民功劳最大) |

Atomization Rules

拆分规则

Word Limits

字数限制

  • English: Max 9 words, absolute limit 18 words
  • Chinese: Recommended 15-20 characters, absolute limit 30-35 characters
  • Max items: 3 bullet points per card
  • 英文:最多9个词,绝对上限18个词
  • 中文:建议15-20字,绝对上限30-35字
  • 最大条目数:每张卡片最多3个项目符号

Core Principle

核心原则

If a card can be split into two shorter cards, split it.
如果一张卡片可以拆分为两张更短的卡片,就进行拆分。

Question Design

问题设计

Standardized Templates

标准化模板

  • Time: "X 时间" (not "X发生于何时?")
  • Definition: "X 定义" (not "什么是X?")
  • Person: "who X" (not "谁做了X?")
  • Pros/Cons: "X 利弊" (not "X的优势是什么?")
  • 时间类:"X 时间"(而非"X发生于何时?")
  • 定义类:"X 定义"(而非"什么是X?")
  • 人物类:"who X"(而非"谁做了X?")
  • 利弊类:"X 利弊"(而非"X的优势是什么?")

Key Rules

关键规则

  • Match real-world recall scenarios
  • Use plain, unremarkable wording
  • Avoid words in question that appear in answer
  • Keep all critical info in answer, not question
  • 匹配真实的回忆场景
  • 使用平实、无修饰的表述
  • 问题中避免出现答案里的词汇
  • 所有关键信息都放在答案中,而非问题里

Answer Construction

答案构建

Core Answer

核心答案

  • Strictly follow word limits
  • Answer should be meaningful without the question
  • All key information in answer
  • 严格遵守字数限制
  • 脱离问题后答案仍有意义
  • 所有关键信息都包含在答案中

Supplementary Info (Optional)

补充信息(可选)

Format:
<br><br><small>💡 content</small>
Emoji Guide:
  • 💡 Fun fact / trivia
  • 📝 Note / explanation
  • 🔗 Related concept
  • ⚡ Tip / key point
  • 📊 Data / statistics
  • 📅 Date / timeline
Keep supplementary info to 10-20 characters.
格式:
<br><br><small>💡 content</small>
表情符号指南
  • 💡 趣味知识/ trivia
  • 📝 注释/解释
  • 🔗 相关概念
  • ⚡ 技巧/关键点
  • 📊 数据/统计
  • 📅 日期/时间线
补充信息控制在10-20字。

Handle System

关联系统

Use
>
to reference related cards:
markdown
| 牛顿贡献 |
| ------- |
| >运动定律 >万有引力 >微积分发展 |
使用
>
引用相关卡片:
markdown
| 牛顿贡献 |
| ------- |
| >运动定律 >万有引力 >微积分发展 |

Detail Levels

细节层级

  • Level 1: Basic concept (core answer)
  • Level 2: Detailed info (supplementary section)
  • Level 3: Advanced details (create separate cards)
  • Level 1:基础概念(核心答案)
  • Level 2:详细信息(补充部分)
  • Level 3:进阶细节(创建独立卡片)

Tag Naming

标签命名

Use English tags:
#anki/[domain]/[topic]
Common domains: history, programming, language, science, mathematics, psychology, economics, philosophy, medicine, art
使用英文标签:
#anki/[domain]/[topic]
常见领域:history, programming, language, science, mathematics, psychology, economics, philosophy, medicine, art

Quality Checklist

质量检查清单

Per Card

单张卡片

  • Core answer within word limit?
  • Correct supplementary format?
  • Can it be further split?
  • Question matches real recall scenario?
  • No memory shortcuts?
  • All key info in answer?
  • 核心答案符合字数限制?
  • 补充信息格式正确?
  • 是否可以进一步拆分?
  • 问题匹配真实回忆场景?
  • 无记忆捷径?
  • 所有关键信息都在答案中?

Card Set

卡片集

  • Appropriate cross-references?
  • Proper detail levels?
  • No redundancy?
  • 交叉引用是否恰当?
  • 细节层级是否合适?
  • 无冗余内容?

Domain Examples

领域示例

See references/examples.md for detailed examples:
  • History (ancient China)
  • Programming (Python)
  • Language learning (English)
  • Academic concepts (psychology)
  • Complex topics (quantum mechanics)
  • Error corrections
  • Advanced techniques (reversible cards, redundancy design)
查看references/examples.md获取详细示例:
  • 历史(中国古代)
  • 编程(Python)
  • 语言学习(英语)
  • 学术概念(心理学)
  • 复杂主题(量子力学)
  • 错误修正
  • 进阶技巧(可逆卡片、冗余设计)

Workflow

工作流程

  1. Receive input: Knowledge points, wiki links, study materials
  2. Clarify: Ask questions if uncertain
  3. Generate: Follow atomization and best practices
  4. Output: simple-anki-sync markdown format
Core Philosophy: Prioritize sustainability and real recall scenarios over comprehensive coverage. Focus on preventing cognitive and motivational barriers.
  1. 接收输入:知识点、维基链接、学习资料
  2. 确认需求:若有不确定之处,向用户提问
  3. 生成卡片:遵循拆分规则和最佳实践
  4. 输出结果:simple-anki-sync格式的markdown内容
核心理念:优先考虑可持续性和真实回忆场景,而非全面覆盖。重点关注避免认知和动机障碍。

When NOT to Use

不适用场景

不适合卡片化的内容:
  • 需要视觉理解的(图表、流程图)
  • 超过 50 行的代码块
  • 高度情境依赖的知识
替代方案:
  • 视觉内容 → 配图索引卡片
  • 大代码块 → 代码 Snippet 库
不适合卡片化的内容:
  • 需要视觉理解的(图表、流程图)
  • 超过 50 行的代码块
  • 高度情境依赖的知识
替代方案:
  • 视觉内容 → 配图索引卡片
  • 大代码块 → 代码 Snippet 库