article-to-anki
Skill43 starsChanged 5 days agoApache-2.0View on GitHub
Use when the user provides an article (URL or local file path) and wants Anki flashcards generated from it, one card per independent idea. Triggers on "转成 Anki 卡片", "生成记忆卡片", "make flashcards", "article to Anki".
In this repository3 other files it gives its agents.
- link-to-htmlSkill
- link-to-noteSkill
- video-to-noteSkill
The file
Files
Article → Anki Cards
Overview
根据文章内容生成一批 Anki 卡片,每张卡片抓住一个独立思想,用简洁的无序列表呈现,重点词语用加粗标出。
输入: 文章 URL 或本地文件路径 输出: 可导入 Anki 的卡片文件(Markdown 格式,每张卡片用分隔线隔开)
卡片规则
格式
每张卡片结构(卡片之间用空行分隔,不要用 ---):
### 卡片 N:标题
- **重点词语**加粗,简洁表述核心内容
- 每条列表独立成项,语言精炼
- 条目之间有逻辑关联但可独立理解
### 卡片 N+1:标题
- **重点词语**加粗,简洁表述核心内容
- ...内容要求
- 一个独立思想一张卡片 — 不要把多个概念塞进一张卡片
- 优先使用无序列表 — 每条列表简洁精炼,一条一个要点
- 重点词语用加粗标出 — 核心术语、关键概念、重要结论用
**加粗**;特别重要的可用<span style="color:red">红色</span>辅助 - 不要填空题、不要问答 — 卡片是陈述性的知识条目,不是考题
- 用自己的话重新组织 — 不要照搬原文,要提炼后重新表述
- 保留必要的精确表述 — 专业术语、数据、引述等保留原文准确性
- 语言简洁 — 每条列表项一两句话即可,避免长段落
拆分原则
- 按文章的逻辑单元拆分(论点、方法、结论、关键发现)
- 每张卡片应该是一个可以独立理解的知识点
- 卡片之间可以有逻辑关联,但不应该有依赖关系(单独看也能理解)
- 一般 1000-2000 字的文章产出 3-8 张卡片
标记原则
- 优先用加粗标出重点词语,不要标红整句话
- 核心概念术语(如:强化学习、注意力机制)
- 关键数字和结论(如:提升 40%、错误率低于 5%)
- 对比中的关键差异点
- 不要过度标记,一张卡片 2-5 个加粗项为宜
工作流程
1. 获取文章内容
- URL 输入: 使用 defuddle CLI 或 web_reader MCP 工具提取内容
- 本地文件: 直接读取
2. 分析文章结构
通读全文,识别:
- 核心论点/主题
- 主要论据和支撑
- 关键方法或技术
- 重要结论和发现
- 值得记忆的数据点
3. 生成卡片
按逻辑单元拆分,每张卡片:
- 提炼一个独立思想
- 用无序列表简洁呈现
- 加粗重点词语
- 给出简洁的卡片标题
4. 输出文件
将卡片写入 <当前工作目录>/AI/Anki/<文章标题>.md。
示例
输入文章关于"端侧模型推理优化"的段落,输出:
### 卡片 1:端侧模型的核心挑战
- 端侧设备(手机、IoT)算力和内存远低于服务器,**模型量化**成为端侧部署的关键技术
- 常见量化方法:**INT8** 和 **INT4**,几乎不损失精度,体积压缩到原来的 1/4 到 1/8
- 推理速度通常提升 **2-4 倍**,但过度量化(低于 4-bit)会导致精度显著下降
### 卡片 2:知识蒸馏的原理
- **知识蒸馏**(Knowledge Distillation):让小模型(学生)学习大模型(教师)的输出分布,而非只学原始标签
- 教师 soft label 包含**类间相似度**信息,如"猫"和"狗"的相似度远高于"猫"和"汽车"
- 学生通过拟合这个分布,获得比直接训练更好的**泛化能力**Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

