一键导入
flashcard-generator
Generate flashcards, quizzes, and study materials from notes or topics using spaced repetition principles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate flashcards, quizzes, and study materials from notes or topics using spaced repetition principles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | flashcard-generator |
| description | Generate flashcards, quizzes, and study materials from notes or topics using spaced repetition principles. |
Generate study materials grounded in memory science. Follow Wozniak's formulation rules, schedule with SM-2, export to Anki via genanki.
Ebbinghaus (1885) showed memory decays as R = e^(-t/S) where S is memory stability — without review, ~50-70% of new information is gone within 24 hours. The curve was replicated in 2015 (Murre & Dros, PLOS ONE). Each successful recall increases S, flattening the curve. The core insight: reviewing just before you'd forget is the most efficient moment to review. Active recall (retrieving the answer) builds stability far more than passive re-reading — this is why cards beat highlighting.
Piotr Wozniak (SuperMemo creator; Anki forked his SM-2 algorithm) published the canonical rules in 1999 at supermemo.com. The ones that matter most for card generation:
Rule 1-2: Understand before you memorize. Don't make cards for material the user hasn't grasped yet. Cards reinforce; they don't teach.
Rule 4: Minimum Information Principle — the single most important rule. One atomic fact per card. Complex cards get forgotten as a unit — if any part fails, the whole card resets. Split aggressively.
Q: What are the three branches of US government and what does each do? (6 facts, fails together)Q: Which branch of US government writes laws? A: Legislative × each branch × each function.Rule 5: Cloze deletion is the fastest path from prose to cards. Take a sentence, blank one term. Beginners who struggle with minimum-information should default to cloze.
TCP guarantees ordered delivery; UDP does not.{{c1::TCP}} guarantees ordered delivery; {{c2::UDP}} does not. → 2 cards from one sentenceRule 9-10: Avoid sets and enumerations. "List all 7 OSI layers" is a nightmare card — high failure rate, painful reviews. Instead, use overlapping cloze: one sentence with the full list, generate N cards each blanking one item. The redundancy is intentional — it's extra cards, not extra info per card.
Rule 11: Combat interference. Similar cards confuse each other (affect vs effect, port 80 vs 443). Add disambiguating context: Q: [web, unencrypted] Default HTTP port? A: 80.
Rule 14: Personalize. Q: What's O(n log n)? A: Merge sort — like the algorithm you botched in the Stripe interview sticks better than the abstract definition.
The diagnostic: If a card's ease factor drops below 1.3 in review, the card is malformed, not hard. Rewrite it, don't grind it.
| Type | Use for | Example |
|---|---|---|
| Basic Q→A | Single facts | Q: Capital of Mongolia? A: Ulaanbaatar |
| Cloze | Converting prose fast; lists | The {{c1::mitochondria}} produces {{c2::ATP}} via {{c3::oxidative phosphorylation}} → 3 cards |
| Reversed | Bidirectional recall (vocab) | Generates both fr→en and en→fr |
| Application | Understanding, not recall | Q: Revenue +20%, profit −5%. Why? A: Costs grew faster than revenue |
| Image occlusion | Anatomy, diagrams, maps | Blank one label on a diagram per card (Wozniak rule 8) |
Mix Bloom's levels: ~40% remember (basic/cloze), ~30% understand, ~30% apply/analyze. Pure recall decks feel productive but fail on exams that test transfer.
Wozniak's 1987 algorithm. Each card tracks three values: repetition count n, ease factor EF (starts at 2.5), interval I in days. After each review, grade 0-5:
if grade >= 3: # correct
if n == 0: I = 1
elif n == 1: I = 6
else: I = round(I * EF) # exponential growth
n += 1
else: # forgot
n = 0; I = 1 # reset interval, keep EF
EF += 0.1 - (5-grade) * (0.08 + (5-grade)*0.02)
EF = max(EF, 1.3) # floor — below this, card is malformed
Grade 5 → EF +0.10. Grade 4 → no change. Grade 3 → EF −0.14. A card you always rate "good" (4) with EF 2.5 goes: 1 → 6 → 15 → 38 → 94 days. FSRS (Anki 23.10+) is the ML successor — fits a personal forgetting curve, ~20-30% fewer reviews for same retention. Mention it; default to SM-2 for simplicity.
genankipip install genanki (github.com/kerrickstaley/genanki). Generates .apkg files that import directly via File → Import.
import genanki, random
# Generate these ONCE, then hardcode — stable IDs let users re-import updates
MODEL_ID = random.randrange(1 << 30, 1 << 31) # e.g. 1607392319
DECK_ID = random.randrange(1 << 30, 1 << 31)
basic = genanki.Model(MODEL_ID, 'Basic',
fields=[{'name': 'Q'}, {'name': 'A'}],
templates=[{'name': 'Card 1', 'qfmt': '{{Q}}',
'afmt': '{{FrontSide}}<hr id="answer">{{A}}'}],
css='.card { font-family: Arial; font-size: 20px; text-align: center; }')
deck = genanki.Deck(DECK_ID, 'Biology :: Cell Structure')
deck.add_note(genanki.Note(model=basic,
fields=['What organelle produces ATP?', 'Mitochondria']))
# Cloze uses built-in model — second field required (can be empty) since 0.13.0
deck.add_note(genanki.Note(model=genanki.builtin_models.CLOZE_MODEL,
fields=['The {{c1::mitochondria}} produces {{c2::ATP}}', '']))
genanki.Package(deck).write_to_file('cells.apkg')
Gotchas: Fields are HTML — html.escape() any user content with <, >, &. For images/audio, set package.media_files = ['diagram.png'] and reference by basename only in the field: <img src="diagram.png"> (paths break). Stable GUIDs let re-imports update cards in place — subclass Note and override guid to hash only the question field.
Quizlet/CSV fallback: Tab-separated, one card per line: question\tanswer\n. Quizlet imports directly. Also works for Anki's File → Import → Text.
Every flashcard generation MUST produce an interactive web app as the primary output. Do not output cards as plain text or markdown — always build a React + Vite single-page app with two modes the user can switch between:
localStorage persistence for {cardId: {n, EF, I, due}}. Sort queue by due date. Cards due today appear first.An AI-powered quiz mode that generates and grades questions:
.apkg files (genanki is write-only); cannot sync to AnkiWebDesign static ad creatives for social media and display advertising campaigns.
Source and evaluate candidates with job analysis, search strategies, specific candidate profiles, and outreach templates.
Draft emails, manage calendar scheduling, prepare meeting agendas, and organize productivity
Create brand identity kits with color palettes, typography, logo concepts, and brand guidelines.
Perform competitive market analysis with feature comparisons, positioning, and strategic recommendations.
Create social media posts, newsletters, and marketing content calibrated to your voice and platform.