Anki Connect Skill banner
crisak crisak

Anki Connect Skill

AI community

Description

AI agent skill for controlling Anki flashcards via Anki-Connect HTTP API. Works with Claude Code, OpenCode, and GitHub Copilot CLI. Create cards, manage decks, search notes, and automate Anki entirely through curl commands.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

anki-connect skill

AI agent skill for controlling Anki flashcards via the Anki-Connect HTTP API. Works with Claude Code, OpenCode, and GitHub Copilot CLI. Built from the [official Anki-Connect documentation](https://foosoft.net/projects/anki-connect/).

Enable your AI coding assistant to create flashcards, manage decks, search notes, customize card templates, and fully automate Anki — all through `curl` commands via the Anki-Connect REST API.

Features

  • Create flashcards — single or bulk, with media (audio/images/video)
  • Manage decks — create, delete, move cards, configure scheduling
  • Search notes and cards — full Anki query syntax support
  • Customize note types — templates, fields, CSS styling
  • Manage tags — add, remove, replace, clear unused
  • Control Anki GUI — browse, review, card dialogs
  • Handle media files — upload, retrieve, delete
  • Statistics and review history — per-deck and collection-wide
  • Full card control — suspend, unsuspend, forget, relearn, answer
  • Export/import decks.apkg file support
  • Sync with AnkiWeb

Compatibility

AI Tool Supported
Claude Code
OpenCode
GitHub Copilot CLI

Prerequisites

  1. Anki installed and running
  2. Anki-Connect add-on installed (code: 2055492159)

Install Anki-Connect

  1. Open Anki
  2. Go to Tools → Add-ons → Get Add-ons...
  3. Enter code: 2055492159
  4. Restart Anki

Anki-Connect exposes a local HTTP server at `http://localhost:8765`.

Installation

Claude Code

claude mcp install https://github.com/crisak/anki-connect-skill

Or manually copy `SKILL.md` to your skills directory:

**macOS / Linux:**

mkdir -p ~/.claude/skills/anki-connect
curl -o ~/.claude/skills/anki-connect/SKILL.md \
  https://raw.githubusercontent.com/crisak/anki-connect-skill/main/SKILL.md

**Windows (PowerShell):** ```powershell