Skip to content
Back to skills

Flashcard Generator

ASecurity

Generate flashcard decks from PDF or Markdown study materials. Use when the user asks for flashcards, a flashcard deck, or study cards from source material. Outputs in importable format (Question | Answer).

  • 14 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added August 31, 2026
ai-agentsgoexpressawsgit

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add maaarcooo/agent-skills --skill flashcard-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flashcard Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Flashcard Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/maaarcooo-flashcard-generator/badge)](https://www.skillsdirectory.com/skills/maaarcooo-flashcard-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: flashcard-generator
description: Generate flashcard decks from PDF or Markdown study materials. Use when the user asks for flashcards, a flashcard deck, or study cards from source material. Outputs in importable format (Question | Answer).
---

# Flashcard Generator

Generate study flashcards from PDF or Markdown content. Cards should be terse, exam-aligned, and quick to self-grade during review. A deck keeps what is worth remembering for the exam and leaves out the rest.

## Process

1. Read the source file (PDF or Markdown) thoroughly
2. Verify accuracy. Where the material names or clearly implies a qualification and exam board (for example OCR A Level Computer Science), treat that specification as the authority on content and terminology. Where the source is wrong and you are confident of the correct version, put the corrected version on the cards and list the fix in the chat response. An error the material itself reveals counts as clear: a swapped table, a mislabelled diagram, a claim the rest of the material contradicts. Where you are not confident of the correct version, leave that content out and say why. Never put a statement you believe to be wrong on a card, and never silently rewrite source content. Keep the source's wording only where it is a legitimate syllabus-level simplification, and leave out content the specification does not require (see Coverage)
3. Identify the content worth remembering: definitions, laws, equations, units, the values candidates must know, conditions, named processes, and common explain/justify points. Treat bolded or highlighted text as a strong signal where formatting survives extraction. Set it apart from the background and illustration around it, which gets no cards
4. Generate cards covering all essential topic content (see Coverage)
5. Reread the finished set and fix exactly three things: a card that is only true with context it does not state, cards that contradict each other, and confusable pairs the source itself contrasts (see Final Check)
6. Mark the Core cards (see Core Cards)
7. Output one card per line: `Question | Answer`, or a gap card's marked sentence, with `| Core` on a Core card

If the user gives instructions with the material (for example restricting to one topic, or asking for every value in a table), follow them. The coverage rules and exclusions then apply to the selected scope only.

## 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 \times 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
- **True as phrased.** Every card is true read on its own, with no page around it. Name in the question the condition the answer depends on: "What happens to the internal energy of an insulated gas when it expands?", not "What happens to the internal energy of a gas when it expands?". Where the source states something loosely, tighten it and list the change in the chat response. A condition belongs on a card only when the specification states it with the fact, as it does for Ohm's law at constant temperature. Leave out a condition that is true but that the level never mentions, such as the pressure at which water boils
- **Punctuation.** No em-dashes or semicolons on a card. Use a comma, a colon before a list of values, or two sentences
- **Plain language.** Simple, direct wording. Match the source's syllabus level
- **LaTeX for equations.** Write all mathematical expressions using standard LaTeX notation: inline with `$...$` and display with `$$...$$`. For example, `$E_k = \frac{1}{2}mv^2$` rather than `Ek = ½mv²`. Use LaTeX for all symbols, fractions, subscripts, superscripts, and special characters in equations

## Card Types

- **Definition**: `What 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`. Reverse the definition of a term only, never a law, a principle, or a description of when something happens
- **Recall**: single facts, values, units, equations
- **Formula application**: for each main equation candidates are expected to calculate with, one worked single-step card with values and units beside its formula card: `What is the resistance of a component with 6 V across it and 2 A through it? | $R = \frac{V}{I} = \frac{6}{2} = 3\;\Omega$`. Never multi-step
- **Gap**: `The SI unit of energy is the {{c1::joule (J)}}`. A sentence worth learning as written, with the words to recall marked as `{{c1::words}}`, or `{{c1::words::hint}}` with a short hint. A note shown with the answer may follow after ` | `. Use sparingly, one gap per card, only where surrounding context is a natural cue without giving the answer away. Never mark a gap inside LaTeX, though a gap may hold a whole `$...$` expression
- **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

## Coverage

A deck holds what a learner needs to remember for the exam, not everything the source mentions. Notes and textbooks surround the key content with background, asides and illustrative detail that no exam asks for, and a card that is reviewed for months has to be worth it. Deck size is determined by how much of the material is worth remembering: let that decide how many cards are needed.

- **A card earns its place** when the specification requires the fact or an exam question could reasonably ask for it. Without a named specification, it earns its place when it is a core idea of the material or a point the material treats as important, not a detail mentioned in passing
- **Leave out the noise**: figures quoted only to illustrate (the number of ion pairs alpha radiation makes per cm of air), dates and the names of discoverers, further examples once a point has the one or two it needs (which organ takes up iodine-131), the history and anecdotes around an idea, and detail deeper than the specification goes. Keep any of these the specification asks for, as a history course asks for dates and a geography course for case-study figures
- **When unsure, ask whether a learner without the card would lose a mark.** If not, leave it out. Do not list each detail left out. Flag only a topic the material covers at length that the specification does not require
- **Every definition, law and equation gets its card**, along with the unit of each quantity the topic introduces. A law or principle candidates are asked to state gets a card asking for the statement. Do not make a card for a general unit the material only uses in passing, such as the SI unit of mass
- **Experimental methods and required practicals**: cover what is measured and with what, what is kept constant and how, the reason for each key step, and the sources of error the material explains
- **A table the material sets out as content to learn is carded row by row** when its rows are worth remembering by the rules above: food tests, vocabulary lists, a history course's dates, stopping distances
- **A formula booklet does not decide what gets a card.** An equation or rule candidates are expected to know and use fluently gets its card even when the exam supplies it, such as the quotient rule or $pV = nRT$. Leave out a supplied formula only when it is long, seldom used, and looked up in practice, and list each one you left out in the chat response

## Final Check

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

1. **Unstated context**: a card that is only true with context it does not state. Name the condition in the question (see True as phrased)
2. **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
3. **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
- A card for rearranging an equation that already has a card
- Cards for constants and data values the exam supplies in the question or on a data sheet
- Cards for content the material itself says need not be learned
- Cards for background, history or illustrative detail an exam would not ask for (see Coverage)
- 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

## Core Cards

Core cards are the topic's foundation: the definitions, key facts, equations and methods that a pass-grade answer can't do without and that the rest of the topic builds on. NeuroCards puts them first among a learner's new cards, so the foundation is learnt before the rest.

- About a quarter to a third of the cards are Core. A deck that is the spine of its topic can reach 40%, never more than 45%
- When two cards say much the same thing, at most one is Core, the more basic. Of a key term's definition and reverse cards, only the definition is Core
- Content the material marks as higher tier, extension or optional is never Core

## Output Format

The file opens with two lines that tell NeuroCards and Anki the third field holds tags, then one card per line, its fields separated by pipes:

```
#separator:pipe
#tags column:3
Question | Answer
Question | Answer | Core
```

- Never use the `|` character inside a question or answer (e.g. write "magnitude of v" rather than |v|). One pipe per line, or two on a Core card. A gap card with no note is its marked sentence alone, or `sentence | | Core` when it is Core
- Reverse cards are separate lines in the same format
- After the two opening lines, no preamble, headers, blank lines, markdown, or code fences in the output file
- Accuracy flags go in the chat response, never in the output file, as a bullet list in the manner of release notes: one line per item, each starting with `Fixed:`, `Tightened:`, `Skipped:`, `Kept:` or `Flagged:`, the point stated directly, no paragraphs

**Example output:**

```
#separator:pipe
#tags column:3
What is the unit of electrical resistance? | Ohm (Ω) | Core
Define specific heat capacity | The energy required to raise the temperature of 1 kg of a substance by 1 °C | Core
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? | $E_k = \frac{1}{2}mv^2$ | Core
What is the resistance of a component with 6 V across it and 2 A through it? | $R = \frac{V}{I} = \frac{6}{2} = 3\;\Omega$
The SI unit of energy is the {{c1::joule (J)}} | | Core
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 times time ($F t = \Delta p$)
What happens to the internal energy of an insulated gas when it expands? | It decreases
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
```

Files in this skill

  • SKILL.md7.5 KB
  • agents/openai.yaml437 B
  • assets/icon.svg1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.