anki-flashcard-generator

star 6

Generate Anki flashcard decks from PDF or Markdown study materials. Use only when "Anki flashcard" or "Anki deck" is explicitly mentioned. Do not trigger for generic flashcard requests. Outputs in Anki-importable format (Question | Answer).

maaarcooo By maaarcooo schedule Updated 6/10/2026

name: anki-flashcard-generator description: Generate Anki flashcard decks from PDF or Markdown study materials. Use only when "Anki flashcard" or "Anki deck" is explicitly mentioned. Do not trigger for generic flashcard requests. Outputs in Anki-importable format (Question | Answer).

Anki Flashcard Generator

Generate study flashcards from PDF or Markdown content in Anki-importable format. Cards should be terse, exam-aligned, and quick to self-grade during review.

Process

  1. Read the source file (PDF or Markdown) thoroughly
  2. Verify accuracy: fix clear factual errors in card content. If something looks wrong but may be an intentional simplification for the syllabus level, keep the source's version and flag it in a short note after the deck. Never silently rewrite source content
  3. Identify key content: definitions, laws, equations, units, standard values, conditions, named processes, and common explain/justify points. Treat bolded or highlighted text as a strong signal where formatting survives extraction
  4. Generate cards covering all essential topic content
  5. Scan the finished set for direct contradictions or confusable pairs that the source itself contrasts, and resolve or add a single discriminating card (see Interference)
  6. Output one card per line: Question | Answer

Card Style

This register is the priority. When any rule below conflicts with brevity, prefer brevity.

  • One idea per card, judged flexibly. Answers are one to two short sentences. A definition may be bundled with one directly associated detail — its formula, unit, key property, or an example — when they are naturally recalled together (e.g. impulse: definition plus F × t). Never bundle a reasoning chain or a second independent concept
  • Bundle or split, not both. If a detail is bundled into a definition answer, do not also give it its own card. If it has its own card, leave it out of the definition. An answer must never contain the answer to another card in the deck
  • No rationale padding. Do not append "because..." justifications to recall answers. If the reasoning matters, it gets its own card
  • Production, not recognition. No yes/no or true/false questions — rephrase so the answer must be generated. Not "Have quarks been observed in isolation? | No", but "In what combinations are quarks always observed? | Pairs (mesons) or groups of three (baryons)"
  • Unambiguous. Each question has exactly one correct answer. Rephrase vague questions ("What is important about X?") to target one specific property
  • Plain language. Simple, direct wording. Match the source's syllabus level

Card Types

  • DefinitionWhat is X? | [definition]. For key terms only (terms the exam asks candidates to define), also output the reverse as a separate line: [definition] — what term is this? | X
  • Recall — single facts, values, units, equations
  • Formula application — alongside a formula card, optionally one single-step application: R = V/I = 6/2 = 3 Ω. Never multi-step
  • ClozeThe SI unit of energy is the [...] | joule (J). Use sparingly, one deletion per card, only where surrounding context is a natural cue without giving the answer away
  • Explain — only where the source itself explains the reasoning and it is a likely exam point. Answer states the mechanism concisely, still within two sentences. Do not convert recall content into explain cards
  • Enumeration — one card per list item, not one card per list. A list answer may contain at most 3 items, and only if the source treats them as a single fact

Interference

After generating the deck, check for two failure modes only:

  1. Contradictions — two cards whose answers conflict as phrased (e.g. "Which radiation is most ionising?" answered "alpha" on one card and "gamma" on another because each assumed a different unstated context). Rephrase each question to name its context so both are unambiguous
  2. Source-contrasted pairs — where the source explicitly contrasts two concepts (e.g. elastic limit vs limit of proportionality), add one compare card stating the specific point of divergence

Do not generate compare cards beyond these cases, and never two compare cards that test the same distinction.

Exclusions

Do not create:

  • Questions requiring a diagram or visual to answer (convert any factual content from diagrams into text cards instead)
  • Multi-step calculations
  • Yes/no or true/false questions
  • Answers that merely restate the question (e.g. "Why do kaons have long lifetimes? | This is characteristic of particles containing strange quarks"). If the source only offers a circular explanation, omit the card and flag it
  • Cards for content the source does not adequately explain

Output Format

One card per line, separated by a single pipe:

Question | Answer
  • Never use the | character inside a question or answer (e.g. write "magnitude of v" rather than |v|). One pipe per line, exactly
  • Reverse cards are separate lines in the same format
  • No preamble, headers, blank lines, markdown, or code fences in the output file
  • Any accuracy flags from step 2 go in the chat response, never in the output file

Example output:

What is the unit of electrical resistance? | Ohm (Ω)
Define specific heat capacity | The energy required to raise the temperature of 1 kg of a substance by 1 °C
The energy required to raise the temperature of 1 kg of a substance by 1 °C — what quantity is this? | Specific heat capacity
What is the equation for kinetic energy? | Ek = ½mv²
The SI unit of energy is the [...] | joule (J)
What is an alpha particle? | Two protons and two neutrons (a helium-4 nucleus). Stopped by a few centimetres of air
What is impulse? | The change in momentum of an object when a force acts on it, equal to force × time (Ft = Δp)
What is the worst-case time complexity of binary search? | O(log n)
Explain why resistance increases with temperature in a metal | Ions vibrate with greater amplitude, so electrons collide with them more frequently
How does the elastic limit differ from the limit of proportionality? | Limit of proportionality: extension stops being proportional to force. Elastic limit: material stops returning to its original shape. Proportionality limit is reached first

Coverage

Aim for thorough coverage of the source. Deck size is determined by content density — let the material decide how many cards are needed. Prioritise definitions, laws, equations, and points that recur in mark schemes. Do not pad with trivial or redundant cards.

Install via CLI
npx skills add https://github.com/maaarcooo/claude-skills --skill anki-flashcard-generator
Repository Details
star Stars 6
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator