agentleFS
xiongxianfeixiongxianfei/skillsmith/skills/flashcard-generator/SKILL.md

flashcard-generator

Skill2 starsChanged 7 months agoMITView on GitHub

Flashcard generator that creates source-grounded, spaced-repetition-ready cards with learning objectives, atomic prompts, explanations, tags, and canonical JSON. Use for Anki cards, cloze deletions, memory prompts, durable recall practice, and retention cards from notes, documents, code, papers, courses, or project material.

We split this skill into the rules it gives an agent

18 rules. 0 are common, 18 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 18

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create high-quality flashcards for durable recall from the user's supplied source material.

    line 13
  2. Distinctive:

    Use the user's supplied source as the factual base.

    line 15
  3. Distinctive:

    Use local references when useful:

    line 17
  4. Distinctive:

    Default assumptions when the user does not specify:

    line 50
  5. Distinctive:

    Prefer retrieval over recognition when practical.

    line 62
  6. Distinctive:

    Avoid broad prompts such as "Explain OAuth."

    line 63
  7. Distinctive:

    Avoid trivia unless the user requests trivia.

    line 64
  8. Distinctive:

    Do not create cards that are technically true but not worth reviewing.

    line 65
  9. Distinctive:

    If the source is too thin for the requested count or difficulty, say so and produce only supportable cards.

    line 69
  10. Distinctive:

    If another skill can handle the quiz, keep this skill focused on flashcards and let the quiz skill provide its section.

    line 73
  11. Distinctive:

    If only this skill is active, use this compact fallback:

    line 75
  12. Distinctive:

    Keep the flashcard and quiz sections and JSON payloads separate.

    line 80
  13. Distinctive:

    Do not create a merged study-artifacts schema.

    line 81
  14. Distinctive:

    When source material is provided:

    line 85
  15. Distinctive:

    Do not present inferred or general background facts as source-grounded.

    line 89
  16. Distinctive:

    Do not hide missing context inside the answer.

    line 90
  17. Distinctive:

    Do not provide medical, legal, financial, or high-stakes exam-prep guarantees.

    line 91
  18. Distinctive:

    Use concise Markdown-compatible plain text.

    line 95

“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

Input

$ARGUMENTS

Core Standard

Create high-quality flashcards for durable recall from the user's supplied source material. Do not merely summarize the source. Decide what is worth remembering, what must be understood first, what the smallest testable idea is, and what context prevents orphan facts.

Use the user's supplied source as the factual base. Mark inferred or external context explicitly when the user asks for related facts beyond the source. Avoid unsupported details.

Use local references when useful:

  • references/learning-design.md for shared learning-design principles.
  • references/card-quality.md for flashcard-specific quality checks.
  • schemas/flashcard.schema.json as the reference contract for canonical JSON. The schema is documentation only; do not claim executable validation.

In canonical JSON, use "source" when the item is grounded directly in supplied material. Use "inferred" only when the user requested related or external context and the inference is clearly marked.

Workflow

  1. Identify learner goal, audience, source material, desired card count, difficulty, and requested export format when provided.
  2. Extract learning objectives before writing cards.
  3. Build a compact knowledge map:
    • facts;
    • concepts;
    • procedures;
    • distinctions;
    • examples and non-examples;
    • prerequisites;
    • common misconceptions.
  4. Select only knowledge worth retaining.
  5. Generate candidate cards using appropriate types:
    • basic Q/A;
    • cloze;
    • bidirectional;
    • contrast;
    • example-non-example;
    • procedure;
    • failure-mode.
  6. Validate each card for atomicity, source grounding, answerability, specificity, context, duplicate handling, and usefulness.
  7. Rewrite or drop failed cards before returning the final deck.
  8. Provide the requested export format when requested and feasible from portable text.

Default assumptions when the user does not specify:

  • Audience: general professional learner.
  • Goal: durable understanding and recall.
  • Count: 15-30 cards, or fewer when the source cannot support that many useful cards.
  • Difficulty: mixed, weighted toward useful retrieval.
  • Output: Markdown plus canonical JSON.
  • Source grounding: required for factual cards.

Quality Rules

  • One card tests one idea.
  • Prefer retrieval over recognition when practical.
  • Avoid broad prompts such as "Explain OAuth."
  • Avoid trivia unless the user requests trivia.
  • Do not create cards that are technically true but not worth reviewing.
  • Merge near-duplicates unless bidirectional recall is intentional.
  • Include enough context for project-specific or ambiguous terms.
  • Cloze cards need enough surrounding context to be answerable.
  • If the source is too thin for the requested count or difficulty, say so and produce only supportable cards.

Combined Flashcard And Quiz Requests

If another skill can handle the quiz, keep this skill focused on flashcards and let the quiz skill provide its section.

If only this skill is active, use this compact fallback:

  1. Extract shared learning objectives and one compact knowledge map.
  2. Produce flashcards using this skill's full output contract.
  3. Produce a compact quiz fallback section with a quiz blueprint, 3-5 diagnostic questions, answer key and rationales, and a separate quiz JSON payload.
  4. Keep the flashcard and quiz sections and JSON payloads separate.
  5. Do not create a merged study-artifacts schema.

Source Boundaries

When source material is provided:

  • Ground factual prompts and answers in that source.
  • Mark external or inferred context as inferred.
  • Do not present inferred or general background facts as source-grounded.
  • Do not hide missing context inside the answer.
  • Do not provide medical, legal, financial, or high-stakes exam-prep guarantees.

Output Format

Use concise Markdown-compatible plain text. No emoji.

Deck summary <purpose, audience, source scope, count, and export notes>

Learning objectives

  1. <objective>
  2. <objective>

Knowledge map

  • Facts: <items>
  • Concepts: <items>
  • Procedures: <items or none>
  • Distinctions: <items>
  • Examples/non-examples: <items or none>
  • Misconceptions: <items or none>
  • Prerequisites: <items or none>

Cards

IDTypePromptAnswerSourceTagsNotes
F1<type><atomic prompt><answer><source/inferred><tags><explanation or quality note>

Canonical JSON

{
  "deck_title": "<title>",
  "audience": "<audience>",
  "source_scope": "<source summary>",
  "learning_objectives": ["<objective>"],
  "cards": [
    {
      "id": "F1",
      "type": "basic",
      "prompt": "<atomic prompt>",
      "answer": "<answer>",
      "source": {"kind": "source", "reference": "<source location or summary>"},
      "tags": ["<tag>"],
      "notes": "<explanation>",
      "quality_checks": {
        "atomic": true,
        "answerable": true,
        "source_grounded": true,
        "useful": true
      }
    }
  ]
}

Requested export <Markdown, CSV, TSV, Anki-oriented text, or "Not requested">

Quality check <one concise line confirming source grounding, atomicity, duplicate handling, and unsupported inference handling>

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.

Reviews can't be read right now.

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.