Use when user requests spaced-repetition flashcards from a documentation/article URL or wants to merge/update an existing flashcard vault file - enforces strict card-only output formatting, deep-link footnote citations with stable slugs, and zero-duplicate minimal-churn updates based only on provided sources.
Convert one or more documentation URLs into Q/A flashcards that are atomic, source-checkable, and deduplicated against an existing vault. Prefer skipping or minimally updating existing cards; create new cards only for missing, citation-backed facts.
Refuse or stop if any of the following is true:
Refusal output rules:
Applies whenever you produce cards (stdout or writing into a file).
Exception: if you are refusing/stopping because required inputs are missing, do not output cards. Output a short request for the missing stable URL/permalink and (if deduping/merging is required) the vault path.
When producing cards, your response/output file must contain only flashcards + footnote definitions at the very bottom.
Per card:
**<question>** #card <optional tags>
#card is mandatory on every card.<answer> (Markdown allowed)[^slug1][^slug2]
Global rules:
<task_metadata>...</task_metadata>.[^<slug>]: [<Title>](<URL>)#card is mandatory on every card.#beginner: definitions, defaults, primary purpose.#advanced: trade-offs, decision rules, key operational limits.#expert: edge cases, internals, precise failure modes/scenarios.[[Amazon S3]]); otherwise leave unlinked.Is, Does, Can, Are.
Question Style by Difficulty:
| Level | Goal | Question Style | Example |
|---|---|---|---|
| #beginner | Vocabulary & Models | Simple Recall (Definition, Purpose) | "What is the default S3 storage class?" |
| #advanced | Decisions & Trade-offs | Comparison / Synthesis (Why X over Y?) | "Why choose S3 Standard over S3 Intelligent-Tiering for predictable workloads?" |
| #expert | Internals & Edge Cases | Constraints / Scenarios (What happens if...?) | "What happens to an SQS batch if one message fails and ReportBatchItemFailures is disabled?" |
id="anchor", name="anchor", or a link href="#anchor"). If you can’t fetch/verify, do not use an anchor.(<url filename> + <anchor>).- separator.../storage-class-intro.html#sc-compare → storage-class-intro-sc-compare.../optimizing-storage-costs.html → optimizing-storage-costsTreat the vault as the source of truth for whether a card should exist.
For each candidate fact:
^...) unless the user explicitly asked for them.If a new source adds authoritative confirmation/context to an existing accurate card:
If multiple provided sources overlap:
[^slug]: ...), insert new/updated cards above the first footnote definition.skip / update / create.[^1] (violates slug policy).