agentleFS
dwfennelldwfennell/claude-skills/flashcards/SKILL.md

flashcards

Skill0 starsChanged 13 months agoMITView on GitHub

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. Supports both duplex printers and manual printing workflows.

6 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. anthropics/claude-for-legal★ 9.5ksame name
    2. flowing-abyss/obsidian-vault-skills★ 9same name
    3. Ic3b3rg/learn-skills★ 9same name
    4. yarikleto/claude-teacher-plugin★ 9same name
    5. baney75/myelinate★ 6same name
    6. leonardoaraujosantos/my_ai_skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when users request:

    line 14
  2. Distinctive:

    No manual setup required

    line 46
  3. Distinctive:

    When Claude Code creates flashcards for you, it will:

    line 106
  4. Very specific:

    Generate PDF(s): Call add_flashcards() with appropriate parameters

    line 110
  5. Distinctive:

    Print: Follow instructions based on printer capabilities (duplex or manual)

    line 114
  6. Distinctive:

    Cut: Use dotted lines as guides to separate individual cards

    line 115

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Flashcards

Overview

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.

When to Use This Skill

Use this skill when users request:

  • "Create flashcards for [topic]"
  • "Make study cards for [subject]"
  • "Generate flashcards from this content"
  • "Help me make printable flashcards"
  • Any request involving creating physical or printable study materials

Quick Start

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.

Setup Requirements

The skill handles setup automatically. When Claude Code uses this skill:

  • A virtual environment is created automatically if needed
  • Dependencies (reportlab) are installed automatically
  • No manual setup required

Creating Flashcards

Basic Usage

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")

For Duplex Printers (Default)

Generate a single PDF with alternating front/back pages:

add_flashcards(flashcards, "flashcards.pdf", separate_pdfs=False)

Printer settings to look for:

  • "Two-Sided" or "Duplex Printing"
  • "Long-Edge binding" or "Flip on Long Edge"
  • "Automatic 2-Sided"

For Printers Without Duplex Support

Generate separate PDFs for fronts and backs:

add_flashcards(flashcards, "flashcards.pdf", separate_pdfs=True)

This creates:

  • flashcards_fronts.pdf - Print first
  • flashcards_backs.pdf - Print after flipping the stack

Printing instructions:

  1. Print all pages from _fronts.pdf
  2. Take the printed stack and flip it over
  3. Reinsert into printer tray (blank side up)
  4. Print all pages from _backs.pdf
  5. Cut along the dotted lines

Layout Specifications

  • Grid: 2 columns × 5 rows = 10 cards per sheet
  • Card size: Approximately 3.5" × 1.9" (calculated based on page size and margins)
  • Margins: 0.5 inch on all edges for safe printing
  • Spacing: 0.2 inch between cards
  • Cutting guides: Dotted lines centered between cards
  • Back alignment: Automatically mirrored for proper alignment with fronts

Workflow

When Claude Code creates flashcards for you, it will:

  1. Gather content: Collect or generate the questions and answers based on your request
  2. Format data: Structure as list of dictionaries with "front", "back", and optional "category" keys
  3. Setup environment: Automatically create venv and install dependencies (first time only)
  4. Generate PDF(s): Call add_flashcards() with appropriate parameters
  5. Deliver PDF: Provide the PDF file ready for printing

When you print:

  1. Print: Follow instructions based on printer capabilities (duplex or manual)
  2. Cut: Use dotted lines as guides to separate individual cards

Resources

scripts/create_flashcards.py

The main Python script for generating flashcard PDFs. Contains the add_flashcards() function which handles:

  • PDF generation using reportlab
  • 2x5 grid layout calculation
  • Front/back page alignment (mirroring for proper double-sided printing)
  • Cutting guide generation
  • Category display on back side of cards
  • Both single PDF and separate PDF modes

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 file
  • separate_pdfs: If True, creates separate files for fronts and backs

scripts/ensure_venv.py

A helper script that automatically sets up the Python virtual environment and installs dependencies. Claude Code uses this to ensure seamless operation without manual setup.

scripts/run.sh

A bash wrapper script that handles venv activation and runs the flashcard generator. Alternative to the Python wrapper.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.