Install
openclaw skills install @slyum123/make-knowledge-cardsConvert articles or Markdown/TXT files into 5-8 structured knowledge cards for review and self-testing.
openclaw skills install @slyum123/make-knowledge-cardsTransform articles, pasted text, local Markdown/TXT files, or PDF documents into structured knowledge cards for efficient review and self-testing. Each card isolates a single knowledge point with enough context to understand and recall it independently.
.md, .txt, or .pdf file path for card generationThe following are NOT supported and should be declined with a clear explanation:
.apkg files or Anki-compatible formats.PDF text extraction requires the pypdf Python library. Install it before
using the PDF feature:
pip install -r skills/make-knowledge-cards/scripts/requirements.txt
If pypdf is not installed and the user provides a PDF, inform them of the
dependency and offer to install it, or ask them to paste the text manually.
.md or .txt: Read the file content using the Read tool..pdf: Extract text using the bundled script. Run:
python scripts/extract_pdf.py "<pdf_file_path>"
.docx, .html, etc.): Not supported. Ask the user
to paste text or provide a .md / .txt / .pdf file.For every knowledge point, construct a card with exactly these four fields:
| Field | Description | Guidelines |
|---|---|---|
| Title | Short phrase naming the knowledge point | Concise noun phrase or concept name (2-8 words); no full sentences |
| Core Knowledge | One or two sentences stating the key fact or principle | Direct and precise; must be derivable from the source text; no fabricated details |
| Explanation | 2-4 sentences unpacking the knowledge point | Clarify cause, mechanism, context, or nuance; stay faithful to the source; do not introduce external information |
| Example / Self-Test | Either a concrete example or a self-test question | Priority: (1) if the source provides a relevant example, adapt it as "Example:"; (2) otherwise, write a self-test question whose answer requires recalling the core knowledge, labeled as "Self-Test:". Never invent examples not grounded in the source text. |
Render each card as a Markdown block:
---
### Card N: [Title]
**Core Knowledge:** [1-2 sentence summary]
**Explanation:** [2-4 sentence elaboration]
**[Example / Self-Test]:** [content]
Before outputting, verify each card against this checklist:
Output all cards in sequence using the format from Step 4.
After the last card, add a brief summary line:
---
*Generated N knowledge cards from [source description].*
If knowledge points were omitted due to the 8-card limit, append:
*Note: Some secondary points were omitted to stay within the card limit.*
---
### Card 1: 间隔重复原理
**Core Knowledge:** 间隔重复是一种学习策略,通过逐渐增加复习间隔来强化长期记忆。
**Explanation:** 该方法基于遗忘曲线理论——记忆会随时间自然衰退,但在即将遗忘时复习能有效巩固记忆。每次成功回忆后,下一次复习的间隔适当延长,从而以最少的时间投入维持记忆。
**Self-Test:** 为什么在"即将遗忘时"复习比"频繁复习"更高效?
---
### Card 2: 主动回忆
**Core Knowledge:** 主动回忆是指学习者主动从记忆中提取信息,而非被动地重新阅读材料。
**Explanation:** 研究表明,主动提取信息的过程本身就能强化记忆通路。与反复阅读相比,自我测试或尝试回忆能显著提升长期记忆效果,即使回忆时出现错误。
**Example:** 读完一段文章后合上书,尝试用自己的话复述核心观点,而不是再读一遍。
---
*Generated 2 knowledge cards from "高效学习方法" article excerpt.*