agentsclimarketplace

Skills

Skill danny-doza/agent-skills/skills/anki/skills

Use this skill whenever Anki flashcards are involved in any way — creation, review, editing, deck management, or study sessions. Trigger on phrases like "make flashcards", "add to Anki", "create cards", "study with Anki", "review cards", "add a deck", or whenever a learning context implies spaced repetition. This skill uses the mcp__anki__* tools from the ankimcp/anki add-on (AnkiWeb ID 124672614) — NOT the older AnkiConnect protocol.From its SKILL.md

Install
npx -y skills add danny-doza/agent-skills --skill skills

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.5 KB, as published. Nobody here has run it

Anki MCP Skill

Interface for the ankimcp MCP server (AnkiWeb add-on 124672614, @ankimcp/anki). Tools are prefixed mcp__anki__* and communicate with Anki over AnkiConnect on port 8765.


Tool Reference

ToolPurpose
mcp__anki__syncSync with AnkiWeb
mcp__anki__list_decksList decks; include_stats: true for card counts
mcp__anki__create_deckCreate a deck; supports Parent::Child nesting
mcp__anki__model_namesList available note types
mcp__anki__model_field_namesGet field names for a specific model
mcp__anki__model_stylingGet CSS for a model
mcp__anki__create_modelCreate a custom note type
mcp__anki__add_noteAdd a single note
mcp__anki__add_notesBatch-add up to 100 notes (preferred over add_note)
mcp__anki__find_notesSearch via Anki query syntax → returns note IDs
mcp__anki__notes_infoGet full note data (fields, tags, CSS) from IDs
mcp__anki__update_note_fieldsModify fields on an existing note
mcp__anki__delete_notesDelete notes (requires confirmDeletion: true)
mcp__anki__tag_managementAdd, remove, replace, or list tags
mcp__anki__card_managementSuspend, bury, move, flag, set due date
mcp__anki__get_due_cardsGet the next due card from a deck
mcp__anki__present_cardShow a card's question or answer
mcp__anki__rate_cardSubmit a rating (1=Again, 2=Hard, 3=Good, 4=Easy)
mcp__anki__store_media_fileUpload media via base64, file path, or URL
mcp__anki__get_media_files_namesList media files by pattern
mcp__anki__delete_media_fileDelete a media file

Creating Notes

Sequence

  1. Check models — model_names(), then model_field_names(model_name) to confirm exact field names
  2. Check/create deck — list_decks() or create_deck() (safe to call on existing deck)
  3. Add notes — use add_notes for batches; each note's fields keys must exactly match the model

Built-in Models

ModelFields
BasicFront, Back
Basic (and reversed card)Front, Back — generates two cards
ClozeText (use {{c1::...}}), Extra

add_notes — Call Shape

{
  "deck_name": "My Deck",
  "model_name": "Basic",
  "notes": [
    { "fields": { "Front": "Question", "Back": "Answer" } },
    { "fields": { "Front": "Question 2", "Back": "Answer 2" } }
  ],
  "tags": ["topic", "subtopic"]
}

Cloze example:

{
  "deck_name": "My Deck",
  "model_name": "Cloze",
  "notes": [
    { "fields": { "Text": "The speed of light is {{c1::299,792,458}} m/s.", "Extra": "In a vacuum." } }
  ]
}

Review Session

1. sync()
2. get_due_cards(deck_name)         → card_id
3. present_card(card_id)            → show question
4. [user answers]
5. present_card(card_id, show_answer: true)
6. Suggest rating 1–4, wait for user confirmation
7. rate_card(card_id, rating)
8. Repeat from 2

Never call rate_card without explicit user confirmation.


tag_management and card_management

Both tools take a params object keyed by action.

tag_management:

{ "action": "add_tags",     "notes": [1234567890], "tags": "topic subtopic" }
{ "action": "remove_tags",  "notes": [1234567890], "tags": "old-tag" }
{ "action": "replace_tags", "notes": [1234567890], "tag_to_replace": "old", "new_tag": "new" }
{ "action": "get_tags" }
{ "action": "clear_unused_tags" }

card_management:

{ "action": "suspend",      "cards": [1234567890] }
{ "action": "unsuspend",    "cards": [1234567890] }
{ "action": "bury",         "cards": [1234567890] }
{ "action": "change_deck",  "cards": [1234567890], "deck": "Target Deck" }
{ "action": "set_due_date", "cards": [1234567890], "days": "0" }
{ "action": "forget_cards", "cards": [1234567890] }
{ "action": "set_flag",     "cards": [1234567890], "flag": 1 }

find_notes Query Syntax

deck:MyDeck              notes in a specific deck
tag:topic                notes with tag
is:due                   cards due for review
is:new                   cards never reviewed
added:7                  added in last 7 days
front:keyword            front field contains keyword
flag:1                   red-flagged cards

Combine with spaces (AND) or OR:

deck:"My Deck" tag:physics OR tag:chemistry

Gotchas

  • Field name mismatch — a note silently fails if field keys don't exactly match the model. Always verify with model_field_names first.
  • Duplicates — add_notes with allow_duplicate: false (default) skips duplicates and reports them without failing the batch.
  • Update while browsing — update_note_fields fails if the note is open in Anki's card browser. The user must close or navigate away first.
  • Deletion is permanent — pass confirmDeletion: true explicitly; there is no undo.

Reference

For complete tool schemas, parameter tables, FSRS scheduler tools, media operations, and GUI tools, see references/API.md.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.