Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill is for interacting with Anki through AnkiConnect, and should be used whenever a user asks to interact with Anki, including to read or modify decks, notes, cards, models, media, or sync operations.
.claude/skills/mkurman-anki-connect/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-10 | ✗→✓ | ▲ Improved | 280% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 78% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 63% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 256% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 195% | 0% |
Enable reliable interaction with Anki through the AnkiConnect local HTTP API. Use this skill to translate user requests into AnkiConnect actions, craft JSON requests, run them via curl/jq (or equivalent tools), and interpret results safely.
http://127.0.0.1:8765 (default). Verify readiness using curl, e.g. curl -sS http://127.0.0.1:8765 should return Anki-Connect.CRITICAL — NO EXCEPTIONS
Before any destructive or modifying operation on notes or cards (adding, updating, deleting, rescheduling, suspending, unsuspending, changing deck, or changing fields/tags), request confirmation from the user. Use the AskUserQuestion tool if available; otherwise ask via chat. Only request confirmation once per logical operation, even if it requires multiple API calls (e.g., search + update + verify). Group confirmation by intent and scope (e.g., “Update 125 notes matching query X”).
Treat the following as confirmation-required by default:
addNote, addNotes, updateNoteFields, updateNoteTags, updateNote, updateNoteModel, deleteNotes, removeEmptyNotes, replaceTags, replaceTagsInAllNotes, clearUnusedTags.setEaseFactors, setSpecificValueOfCard, suspend, unsuspend, forgetCards, relearnCards, answerCards, setDueDate, changeDeck.Every request is JSON with:
action: string action nameversion: API version (use 6 unless user specifies otherwise)params: object of parameters (optional)Every response is JSON with:
result: return valueerror: null on success or a string describing the errorAlways check error before using result.
requestPermission first when interacting from a non-trusted origin; it is the only action that accepts any origin.version to ensure compatibility; older versions may omit the error field in responses when version ≤ 4.Prefer jq to build JSON and parse responses. Keep requests explicit and structured.
bashjq -n --arg action "deckNames" --argjson version 6 '{action:$action, version:$version}' \ | curl -sS http://127.0.0.1:8765 -X POST -H 'Content-Type: application/json' -d @-
bashjq -n \ --arg action "findNotes" \ --argjson version 6 \ --arg query "deck:French tag:verbs" \ '{action:$action, version:$version, params:{query:$query}}' \ | curl -sS http://127.0.0.1:8765 -X POST -H 'Content-Type: application/json' -d @-
bashcurl -sS http://127.0.0.1:8765 -X POST -H 'Content-Type: application/json' -d @- \ | jq -e 'if .error then halt_error(1) else .result end'
Use multi to reduce round-trips and to group actions under a single confirmation when modifying data.
bashjq -n --argjson version 6 --arg query "deck:French" \ '{action:"multi", version:$version, params:{actions:[ {action:"findNotes", params:{query:$query}}, {action:"notesInfo", params:{notes:[]}} ]}}' \ | curl -sS http://127.0.0.1:8765 -X POST -H 'Content-Type: application/json' -d @-
Replace the empty array with the result of the previous action when chaining; in CLI usage, split into two calls unless using a scripting language.
requestPermission (safe).version to confirm the API level and use version: 6 in requests.apiReflect with scopes: ["actions"] to list supported actions.findNotes/findCards + notesInfo/cardsInfo for previews before modification.error for each response.deckNamescreateDeckfindNotes, findCardsnotesInfo (note IDs)addNote, addNotescanAddNotes or canAddNotesWithErrorDetail for preflight checks.updateNoteFields, updateNoteTags, or combined updateNotedeleteNotessuspend, unsuspendchangeDecksetDueDatestoreMediaFile, retrieveMediaFile, getMediaFilesNames, getMediaDirPath, deleteMediaFiledata), file path (path), or URL (url) for upload.syncfindNotes/findCards)or, parentheses, and - for NOT logic.deck:Name, tag:tagname, note:ModelName, card:CardName.front:... or other field names to limit by field.re: for regex, w: for word-boundary searches, nc: to ignore accents.is:due, is:new, is:learn, is:review, is:suspended, is:buried to filter card states.prop: searches for properties like interval or due date.getEaseFactorssetEaseFactorssetSpecificValueOfCardsuspendunsuspendsuspendedareSuspendedareDuegetIntervalsfindCardscardsToNotescardsModTimecardsInfoforgetCardsrelearnCardsanswerCardssetDueDatedeckNamesdeckNamesAndIdsgetDeckscreateDeckchangeDeckdeleteDecksgetDeckConfigsaveDeckConfigsetDeckConfigIdcloneDeckConfigIdremoveDeckConfigIdgetDeckStatsguiBrowseguiSelectCardguiSelectedNotesguiAddCardsguiEditNoteguiAddNoteSetDataguiCurrentCardguiStartCardTimerguiShowQuestionguiShowAnswerguiAnswerCardguiUndoguiDeckOverviewguiDeckBrowserguiDeckReviewguiImportFileguiExitAnkiguiCheckDatabaseguiPlayAudiostoreMediaFileretrieveMediaFilegetMediaFilesNamesgetMediaDirPathdeleteMediaFilerequestPermissionversionapiReflectsyncgetProfilesgetActiveProfileloadProfilemultiexportPackageimportPackagereloadCollectionmodelNamesmodelNamesAndIdsfindModelsByIdfindModelsByNamemodelFieldNamesmodelFieldDescriptionsmodelFieldFontsmodelFieldsOnTemplatescreateModelmodelTemplatesmodelStylingupdateModelTemplatesupdateModelStylingfindAndReplaceInModelsmodelTemplateRenamemodelTemplateRepositionmodelTemplateAddmodelTemplateRemovemodelFieldRenamemodelFieldRepositionmodelFieldAddmodelFieldRemovemodelFieldSetFontmodelFieldSetFontSizemodelFieldSetDescriptionaddNoteaddNotescanAddNotescanAddNotesWithErrorDetailupdateNoteFieldsupdateNoteupdateNoteModelupdateNoteTagsgetNoteTagsaddTagsremoveTagsgetTagsclearUnusedTagsreplaceTagsreplaceTagsInAllNotesfindNotesnotesInfonotesModTimedeleteNotesremoveEmptyNotesgetNumCardsReviewedTodaygetNumCardsReviewedByDaygetCollectionStatsHTMLcardReviewsgetReviewsOfCardsgetLatestReviewIDinsertReviewsimportPackage paths are relative to the Anki collection.media folder, not the client.deleteDecks requires cardsToo: true to delete cards along with decks.No bundled scripts or assets are required for this skill.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-05 | pass→pass | 16,663 | 11,487 | -31% | 1 | 1 | 0% | 2,450 | 4,371 | +78% | 0 | 0 | — |
case-01 | fail→fail | 3,579 | 6,643 | +86% | 1 | 1 | 0% | 620 | 3,144 | +407% | 0 | 0 | — |
case-02 | fail→fail | 5,206 | 11,325 | +118% | 1 | 1 | 0% | 878 | 3,790 | +332% | 0 | 0 | — |
case-03 | pass→pass | 14,156 | 9,660 | -32% | 1 | 1 | 0% | 2,876 | 4,678 | +63% | 0 | 0 | — |
case-04 | pass→pass | 5,881 | 7,232 | +23% | 1 | 1 | 0% | 1,126 | 4,003 | +256% | 0 | 0 | — |
case-06 | pass→pass | 15,599 | 5,883 | -62% | 1 | 1 | 0% | 1,318 | 3,892 | +195% | 0 | 0 | — |
case-07 | pass→pass | 11,404 | 4,537 | -60% | 1 | 1 | 0% | 1,946 | 3,529 | +81% | 0 | 0 | — |
case-08 | fail→fail | 7,197 | 5,394 | -25% | 1 | 1 | 0% | 1,264 | 3,556 | +181% | 0 | 0 | — |
case-09 | pass→pass | 7,237 | 4,801 | -34% | 1 | 1 | 0% | 1,292 | 3,554 | +175% | 0 | 0 | — |
case-10 | fail→pass | 4,816 | 7,087 | +47% | 1 | 1 | 0% | 1,037 | 3,940 | +280% | 0 | 0 | — |
case-11 | pass→pass | 15,850 | 7,121 | -55% | 1 | 1 | 0% | 2,300 | 3,869 | +68% | 0 | 0 | — |
case-12 | fail→fail | 9,498 | 2,983 | -69% | 1 | 1 | 0% | 1,409 | 3,237 | +130% | 0 | 0 | — |
case-13 | pass→pass | 6,655 | 3,713 | -44% | 1 | 1 | 0% | 1,154 | 3,304 | +186% | 0 | 0 | — |
case-14 | pass→pass | 4,367 | 2,120 | -51% | 1 | 1 | 0% | 765 | 3,065 | +301% | 0 | 0 | — |
case-15 | fail→fail | 4,207 | 6,597 | +57% | 1 | 1 | 0% | 787 | 3,963 | +404% | 0 | 0 | — |
case-16 | pass→pass | 4,432 | 2,949 | -33% | 1 | 1 | 0% | 462 | 3,168 | +586% | 0 | 0 | — |
case-17 | pass→pass | 3,573 | 2,756 | -23% | 1 | 1 | 0% | 540 | 3,150 | +483% | 0 | 0 | — |
case-18 | pass→pass | 7,325 | 3,611 | -51% | 1 | 1 | 0% | 1,197 | 3,240 | +171% | 0 | 0 | — |
case-19 | fail→fail | 9,185 | 3,553 | -61% | 1 | 1 | 0% | 1,736 | 3,326 | +92% | 0 | 0 | — |
case-20 | pass→pass | 3,160 | 1,356 | -57% | 1 | 1 | 0% | 538 | 2,872 | +434% | 0 | 0 | — |
case-21 | pass→pass | 4,523 | 1,697 | -62% | 1 | 1 | 0% | 723 | 2,932 | +306% | 0 | 0 | — |
case-22 | pass→pass | 2,664 | 2,412 | -9% | 1 | 1 | 0% | 413 | 3,016 | +630% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 20 counted toward the lift figure. The other 2 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +5 percentage points is the difference between those two pass rates over the 20 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.