anki-expertlisted
Install: claude install-skill BENJAMINGLAI/anki-card-skill
# Anki Flashcard Expert Skill
## Trigger Conditions
Activate when the user's request involves:
- Creating/generating Anki cards or flashcards
- Creating study cards from text, files, or URLs
- Exporting to .apkg or .tsv format, or pushing to Anki via AnkiConnect
- Mentions of Anki, flashcard, or spaced repetition
---
## Workflow
### Step 1: Get Input Text
- If the user provides text inline (wrapped in `{}`), use it directly.
- If the user specifies a local file path (.md, .txt, .pdf), use the Read tool.
- For PDFs, use the `pages` parameter to read in batches.
- For large files, read and generate cards in batches.
- If the user provides a URL (starting with `http://` or `https://`):
- Use the WebFetch tool (or platform equivalent) to retrieve the page content.
- Strip navigation, ads, headers, footers, and other non-content elements. Focus on the main article/body text.
- If the page is very long, process it in sections.
- If neither text, file, nor URL is provided, ask the user.
### Step 2: Check for nidd Identifier
- Check whether the user's text ends with `nidd` + digits (e.g., `nidd1742293016393`).
- **If no nidd is provided**, ask the user for one. Do not start making cards until a nidd is obtained, unless the user explicitly states there is none.
### Step 3: Check Top-Level Tag
- Check whether the user specified a top-level tag.
- If so, use it as the highest-level tag prefix for all cards.
### Step 4: Generate Flashcards
Follow the **Card-Making R