← ClaudeAtlas

ankilisted

Create decks and add cards/flashcards to the user's AnkiWeb account from the command line. Bundles a self-contained Python CLI plus the user's AnkiWeb credentials, so no setup is required. Use whenever the user wants to add a flashcard or note to Anki/AnkiWeb, create or remove an Anki deck, or list their existing Anki decks or note types — e.g. "add a card to my Spanish deck", "make an Anki deck called X", "save this as a flashcard".
htlin222/ankiweb-add-card · ★ 6 · Web & Frontend · score 76
Install: claude install-skill htlin222/ankiweb-add-card
# Anki Add cards and create decks on the user's AnkiWeb account. A bundled CLI (`anki.py`) logs in with the bundled `.env` credentials, caches the session, and calls AnkiWeb's internal endpoints directly. No browser, no extra config. ## Running the CLI The skill is installed at a runtime path shown as **"Base directory for this skill"**. Always invoke the CLI by absolute path from that base directory: ```bash SKILL="<the base directory for this skill>" python3 "$SKILL/anki.py" <command> [args] ``` The CLI is pure Python stdlib — no dependencies, no install step. Login happens automatically on the first command and is cached; don't run `login` unless a command fails with an auth error. ## Commands ```bash # Typical flow: make a new deck ('::' nests subdecks), then add a card to it. # Positional values fill the note type's fields IN ORDER. # Nesting goes arbitrarily deep; missing parent levels are auto-created in one # call (here both 'Spanish' and 'Spanish::Verbs' come into existence). python3 "$SKILL/anki.py" create_deck "Spanish::Verbs" python3 "$SKILL/anki.py" add_card "hola" "hello" -d "Spanish::Verbs" -n Basic # Override a field by name, attach tags python3 "$SKILL/anki.py" add_card "Q" "A" -f "Extra=a note" -t "tag1 tag2" # Omit -d/-n to use the user's last-used deck and note type python3 "$SKILL/anki.py" add_card "front" "back" # Find existing notes (Anki search syntax) -> 'note_id<TAB>field-summary' python3 "$SKILL/anki.py" search "deck:Spanish front:hola"