Skip to content
Back to skills

generating-stem-flashcards

ASecurity

Generates atomic flashcards from technical/STEM source material. Supports three output modes: (1) interactive React artifacts with client-side KaTeX rendering, (2) Anki-ready TSV export with MathJax-compatible LaTeX, or (3) direct push to Anki via MCP Server (no export/import step). Use when users request flashcards, study cards, revision cards, Anki cards, quiz materials, or spaced repetition content from lecture notes, textbooks, or worksheets containing mathematical notation.

  • 15 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 26, 2026
ai-agentsreactgitfrontend

Works with

  • cli
  • mcp

Security analysis

A100/100

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

Scanned May 27, 2026

npx -y skills add jalliet/flashcards --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of generating-stem-flashcards?

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

Security grade badge for generating-stem-flashcards
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jalliet-generating-stem-flashcards/badge)](https://www.skillsdirectory.com/skills/jalliet-generating-stem-flashcards)

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: generating-stem-flashcards
description: "Generates atomic flashcards from technical/STEM source material. Supports three output modes: (1) interactive React artifacts with client-side KaTeX rendering, (2) Anki-ready TSV export with MathJax-compatible LaTeX, or (3) direct push to Anki via MCP Server (no export/import step). Use when users request flashcards, study cards, revision cards, Anki cards, quiz materials, or spaced repetition content from lecture notes, textbooks, or worksheets containing mathematical notation."
---

# STEM Flashcard Generation

## Output Mode Detection

Detect the output mode from the user's request:

**Artifact mode** (default): "flashcards", "interactive", "artifact", "study cards", "revision cards"
**Anki mode (TSV export)**: "anki", "anki deck", "for anki", "import into anki", "anki export", "export to anki"
**Anki mode (MCP direct)**: "send to anki", "push to anki", "add to anki directly", "anki mcp", "create in anki"

If ambiguous, ask the user. Default to artifact mode. If the user says "anki" without specifying, ask whether they want a TSV file or direct push via MCP.

## Dependencies

### Artifact mode
No CLI dependencies required. The React artifact handles KaTeX rendering client-side.

**Recommended complementary skills** from [anthropics/skills](https://github.com/anthropics/skills):
- `frontend-design` — Improved React artifact rendering and styling
- `pdf` — Better extraction from scanned/complex PDFs
- `docx` — Preserves formatting from Word documents

### Anki mode (TSV export)
No dependencies required (uses raw LaTeX with MathJax delimiters).

### Anki mode (MCP direct)
Requires:
- **Anki 25.x or later** running locally
- **Anki MCP Server addon** installed (code: `124672614`)
  Install: Tools → Add-ons → Get Add-ons → enter `124672614` → restart Anki
- Server auto-starts on `http://127.0.0.1:3141/` when Anki opens

No file export or manual import needed — cards are pushed directly into Anki.

---

## Shared Workflow (All Modes)

### Step 1: Extract Topics
Identify topic boundaries from section headings or conceptual groupings.

### Step 2: Generate Cards
For each topic, create cards across three layers:
- **L1 (Recall)**: Facts, definitions, formulas
- **L2 (Understanding)**: Why/how, connections, intuition
- **L3 (Boundaries)**: Limitations, edge cases, when things break

See `references/COGNITIVE_LAYERS.md` for layer definitions, card types, and answer constraints.

### Step 3: Validate Cards
Check each card against atomicity rules and refusal policy.

See `references/ATOMICITY.md` for atomicity definition, refusal policy, and quality checklist.

For LaTeX syntax lookup: `references/LATEX_SYNTAX.md`

---

## Mode-Specific Workflow

After completing Steps 1–3, branch based on the detected mode:

### → Artifact Mode

Read and follow `artifact/WORKFLOW.md`. Summary:

4. Write raw LaTeX strings (NOT compiled HTML)
5. Build artifact from `artifact/template.jsx`
6. Save to `/mnt/user-data/outputs/[name]_flashcards.jsx`
7. Present draft

### → Anki Mode (TSV Export)

Read and follow `anki/WORKFLOW.md`. Summary:

4. Wrap LaTeX in MathJax delimiters (see `anki/RENDERING.md`)
5. Build 5-column TSV with per-card tags
6. Save to `/mnt/user-data/outputs/[name]_anki.txt`
7. Present draft with import instructions from `anki/IMPORT_GUIDE.md`

### → Anki Mode (MCP — Direct Push)

Read and follow `anki/MCP_WORKFLOW.md`. Summary:

4. Wrap LaTeX in MathJax delimiters (see `anki/RENDERING.md`)
5. Ensure note type "3-Layer Card" and target deck exist (auto-created if missing)
6. Push cards directly to Anki via `add_note`
7. Report results — no import step needed

---

## Communication Style

Report progress in phases, not steps. Use compact formats:

```
Extracted 8 topics. Generating cards...

Draft: 45 cards (L1: 18, L2: 15, L3: 12). Review and let me know changes.
```

For iterations: "Updated card 12. ✓"

Omit rendering mechanics (KaTeX/MathJax) from user-facing messages.

Files in this skill

  • SKILL.md3.9 KB
  • Theory.md8 KB
  • anki/IMPORT_GUIDE.md2.1 KB
  • anki/MCP_WORKFLOW.md3.4 KB
  • anki/NOTE_TYPE_TEMPLATE.md1.2 KB
  • anki/RENDERING.md1.5 KB
  • anki/WORKFLOW.md2.8 KB
  • artifact/RENDERING.md2.3 KB
  • artifact/WORKFLOW.md1.9 KB
  • artifact/template.jsx15.5 KB
  • references/ATOMICITY.md3.5 KB
  • references/COGNITIVE_LAYERS.md3.6 KB
  • references/LATEX_SYNTAX.md3.9 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.

Comments

Loading comments…

Newsletter

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