Create printable PDF flashcards optimized for double-sided printing with a 2x5 grid layout. Use when users request to create flashcards, study cards, or memory cards for any subject...
This skill enables creating professional PDF flashcards with a 2x5 grid layout (10 cards per sheet) optimized for efficient double-sided printing. The skill automatically handles proper alignment between front and back sides, adds cutting guides, and supports both automatic duplex printing and manual printing workflows.
Use this skill when users request:
The skill automatically handles Python environment setup. Simply use the add_flashcards() function:
from scripts.create_flashcards import add_flashcards
# Define flashcards as a list of dictionaries
flashcards = [
{"front": "Question 1", "back": "Answer 1"},
{"front": "Question 2", "back": "Answer 2", "category": "Topic Name"},
# ... up to any number of cards
]
# Generate PDF
add_flashcards(flashcards, "output.pdf")
Categories are optional and will appear in the top-right corner of the back side of each card when provided.
The skill handles setup automatically. When Claude Code uses this skill:
from scripts.create_flashcards import add_flashcards
cards = [
{"front": "7 × 8 = ?", "back": "56", "category": "Math"},
{"front": "What is Python?", "back": "A programming language", "category": "Programming"},
]
add_flashcards(cards, "my_flashcards.pdf")
Generate a single PDF with alternating front/back pages:
add_flashcards(flashcards, "flashcards.pdf", separate_pdfs=False)
Printer settings to look for:
Generate separate PDFs for fronts and backs:
add_flashcards(flashcards, "flashcards.pdf", separate_pdfs=True)
This creates:
flashcards_fronts.pdf - Print firstflashcards_backs.pdf - Print after flipping the stackPrinting instructions:
_fronts.pdf_backs.pdfWhen Claude Code creates flashcards for you, it will:
add_flashcards() with appropriate parametersWhen you print:
The main Python script for generating flashcard PDFs. Contains the add_flashcards() function which handles:
Key function:
add_flashcards(flashcards_data, output_filename="my_flashcards.pdf", separate_pdfs=False)
Parameters:
flashcards_data: List of dicts with 'front' and 'back' keys, and optional 'category' key (max 50 characters)output_filename: Name of output PDF fileseparate_pdfs: If True, creates separate files for fronts and backsA helper script that automatically sets up the Python virtual environment and installs dependencies. Claude Code uses this to ensure seamless operation without manual setup.
A bash wrapper script that handles venv activation and runs the flashcard generator. Alternative to the Python wrapper.