anki
SKILL.md
Anki Card Creator
Create flashcards from Claude Code. Scripts are bundled in ./scripts/.
Available operations
Create a card
python ./scripts/create_card.py \
--deck "7. computer science" \
--front "What does __slots__ do in Python?" \
--back "Restricts instance attributes to a fixed set, saving memory by skipping the per-instance __dict__." \
--tags "python,memory"
List cards (check for duplicates before creating)
python ./scripts/list_cards.py --query "tag:python added:7"
python ./scripts/list_cards.py --deck "7. computer science" --added 30
List decks (discover deck names)
python -c "import sys; sys.path.insert(0, './scripts'); from anki_connect import list_decks; print(list_decks())"
Card quality rules
The user has 226 leeches. Quality over quantity.
- Atomic — one fact per card. If the answer has "and", split it.
- Short, specific front — few words, one unambiguous answer. Not open-ended.
- Minimal back — no unnecessary text. If a structure speaks for itself, don't add explanation below it.
- Visual over prose — prefer file trees, code blocks, or diagrams over sentences when the answer is structural.
- No trivia — only things worth remembering long-term (concepts, gotchas, mental models).
- Tag consistently — use lowercase, comma-separated (e.g.
python,decorators).
Good card
- Front: "What's the file structure of a Claude Code skill?"
- Back:
<skill>/
├── SKILL.md
└── scripts/
├── main.py
└── helpers.py
Bad card
- Front: "Explain Python's memory model, GIL, and garbage collection"
- Back: (three paragraphs) — too many facts, split into separate cards.
Workflow
- Propose the card: show front, back, deck, and tags in a formatted block.
- Wait for user approval. Never create without explicit confirmation.
- Check duplicates with
list_cards.py --query "<relevant keywords>"before creating. - Create the card only after approval.
- Confirm with the note ID from the output.
Troubleshooting
If the connection fails, Anki desktop must be running with the AnkiConnect addon installed (addon code: 2055492159).
Weekly Installs
4
Repository
doasfrancisco/anki-skillGitHub Stars
2
First Seen
Feb 16, 2026
Security Audits
Installed on
opencode4
gemini-cli4
claude-code4
github-copilot4
codex4
amp4