agentleFS
djt97djt97/anki-skill/anki/SKILL.md

anki

Skill4 starsChanged 5 months agoMITView on GitHub

Searches, reviews, triages, and safely rewrites a user's Anki cards through AnkiConnect without changing scheduling. Runs collection health checks, identifies costly cards, and learns the user's flags, tags, fields, external-source conventions, and card-writing preferences. Use when the user mentions Anki or AnkiConnect, asks about an Anki deck or collection, or requests work on suspended cards, leeches, lapses, Anki card rewrites, or collection health. Do not use for unrelated generic flashcard advice.

6 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. nailuoGG/anki-mcp-server★ 253same name
    2. anath2/anki-skill★ 3same name
    3. b0r1sp/claude-skill-anki★ 1same name
    4. andrevictor23-tech/claude-skills★ 0same name
    5. jstilb/ai-assistant★ 0same name
    6. jvgitty/claude-anki-skill★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. 0 are common, 18 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 18

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use AnkiConnect to inspect and improve the user's Anki collection.

    line 9
  2. Distinctive:

    Never touch scheduling: Do not change intervals, ease, due dates, learning state, review history, deck scheduling options, or FSRS …

    line 14
  3. Distinctive:

    Adapt instead of assuming: Do not assign meanings to flags, tags, suspension, fields, or card styles until the user's conventions have been …

    line 17
  4. Distinctive:

    Respect the source of truth: If a note is externally authored, edit the external source only.

    line 18
  5. Distinctive:

    Keep one dependency: Use AnkiConnect and Python's standard library only.

    line 20
  6. Distinctive:

    Use the host's structured multiple-choice or question interface whenever it is available.

    line 24
  7. Distinctive:

    If the host has no clickable-choice interface, present a short numbered list and ask the user to reply with a number.

    line 25
  8. Distinctive:

    Keep guided steps short and end each one with a clear next choice.

    line 27
  9. Distinctive:

    When the user asks for a specific result—such as showing suspended cards, searching for a topic, counting cards, reviewing a named deck, or …

    line 43
  10. Distinctive:

    Read references/ankiconnect.md, then verify connectivity.

    line 45
  11. Distinctive:

    If the request depends on an unknown convention, perform only the relevant discovery, confirm the inference, and continue.

    line 48
  12. Distinctive:

    Connect: Verify AnkiConnect. If unavailable, explain that Anki must be running with AnkiConnect installed, then stop.

    line 55
  13. Very specific:

    Calibrate: If no saved preferences exist, run the preference interview in references/fixing-and-triage.md.

    line 58
  14. Distinctive:

    Hand back and stop: Do not begin fixing cards.

    line 59
  15. Distinctive:

    Inspect: Read the current card, its note, all sibling cards generated by that note, tags, deck, note type, lapse signals, and the …

    line 65
  16. Distinctive:

    Resolve the destination: Check whether the note is Anki-native or externally authored.

    line 66
  17. Distinctive:

    all sibling cards or files that will be affected.

    line 71
  18. Distinctive:

    Apply only approved items: Use the source-of-truth route.

    line 75
  19. Distinctive:

    Use the bundled read-only scripts where their reference says to run them.

    line 89

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Anki collection assistant

Use AnkiConnect to inspect and improve the user's Anki collection. Treat this file as the control plane: keep its safety rules active, and load the detailed references only when the current task needs them.

Non-negotiable rules

  1. Preview every mutation and obtain explicit approval. Read-only inspection may proceed after the user's request, but do not modify Anki, an external source file, or conventions.local.md until the user has seen the exact proposed operation and clearly approved it. Silence is not consent. Approval applies only to the displayed batch.
  2. Never touch scheduling. Do not change intervals, ease, due dates, learning state, review history, deck scheduling options, or FSRS parameters, and do not answer cards or run a rescheduler. Suspension and unsuspension are allowed only after approval. A filtered-deck workflow must have rescheduling disabled.
  3. Separate construction from target. Assess whether a card reliably cues its chosen answer. Never decide what the user should remember, re-aim a card, suspend it permanently, or delete it without the user's decision.
  4. Find weaknesses, not missing knowledge. Collection data can reveal weak, redundant, confusable, costly, or poorly worded cards. Do not claim to detect syllabus gaps without a syllabus or another source defining expected coverage.
  5. Adapt instead of assuming. Do not assign meanings to flags, tags, suspension, fields, or card styles until the user's conventions have been loaded or discovered and confirmed.
  6. Respect the source of truth. If a note is externally authored, edit the external source only; never update the Anki note directly. If it is Anki-native, edit Anki only. Confirm the route before proposing a write.
  7. Use Anki terminology. Say lapses, leeches, intervals, ease, retrievability, difficulty, and stability where applicable. Do not invent marketing-style metrics. Clearly label the skill's own cost score as a custom diagnostic.
  8. Keep one dependency. Use AnkiConnect and Python's standard library only. Do not install databases, packages, or other services.

Interaction rules

  • Use the host's structured multiple-choice or question interface whenever it is available.
  • If the host has no clickable-choice interface, present a short numbered list and ask the user to reply with a number. Use free text for “something else” or when choices would be artificial.
  • Offer choices rather than forcing a path. The user may stop, skip, or jump to a different task at any decision point.
  • Keep guided steps short and end each one with a clear next choice.

Skill state

Set SKILL_ROOT to the directory containing this SKILL.md. The state file is:

SKILL_ROOT/conventions.local.md

Load it when present. Do not hard-code a Claude- or Codex-specific installation path. Before creating or updating it, show the proposed contents or diff and obtain explicit approval. If the directory is not writable, keep the confirmed conventions in the current session and explain that they were not persisted.

Route the request

Specific request

When the user asks for a specific result—such as showing suspended cards, searching for a topic, counting cards, reviewing a named deck, or rewriting a particular card—do that task rather than forcing the full guided flow.

  1. Read references/ankiconnect.md, then verify connectivity.
  2. Load saved conventions when relevant.
  3. Load only the task-specific references listed below.
  4. If the request depends on an unknown convention, perform only the relevant discovery, confirm the inference, and continue.
  5. For any mutation, use the approval workflow below.

Bare invocation or general request

For a bare invocation, “help me with my flashcards,” or another general request, drive this sequence yourself:

  1. Connect. Verify AnkiConnect. If unavailable, explain that Anki must be running with AnkiConnect installed, then stop.
  2. Conventions. Load conventions.local.md. If it does not exist, run the discovery in references/conventions.md, confirm the inferences, and offer to save them.
  3. Scope, then health check. First ask whether to focus on or exclude a particular deck before ranking — one large deck (e.g. a language or geography deck) can otherwise dominate the costliest list. Default to the whole collection. Then run references/health-check.md: explain what the collection is about, where cost concentrates, and which cards are costliest.
  4. Calibrate. If no saved preferences exist, run the preference interview in references/fixing-and-triage.md. Offer to save the resulting profile; do not write it without approval.
  5. Hand back and stop. Do not begin fixing cards. Reassure the user that nothing will change without explicit approval, then ask where they want to start. Offer choices such as the costliest cards, a deck or note type, or their confirmed review-flag queue.

On later general invocations, skip discovery and calibration that are already saved, run the health check, and perform the same hand-back.

Approval workflow for every mutation

  1. Inspect. Read the current card, its note, all sibling cards generated by that note, tags, deck, note type, lapse signals, and the annotation field if one is configured.
  2. Resolve the destination. Check whether the note is Anki-native or externally authored.
  3. Propose a batch. Show 1–4 proposed edits at once; use one card for a heavy rewrite. For each item, show:
    • card and note identifiers for traceability;
    • current Front/Back or affected fields, tags, deck, and relevant cost signals;
    • the exact before/after change or operation;
    • all sibling cards or files that will be affected;
    • the reason for the recommendation and its T0–T3 construction grade;
    • ⚠ confirm beside any factual content not verified against the user's source.
  4. Stop for approval. Let the user approve all, some, none, or revised versions. Do not write yet.
  5. Apply only approved items. Use the source-of-truth route. Do not add a “changed” tag unless the user has approved the exact tag; otherwise skip tagging.
  6. Verify. Re-read each changed note or source file and report whether the applied content exactly matches the approved preview. For multi, inspect every sub-result because batching is not transactional.
  7. Finish. Summarise what changed and what did not. Suggest a manual AnkiWeb sync when appropriate; never trigger sync without explicit approval.

Deletion requires a separate, explicit confirmation after showing every card generated by the note. Re-aiming a target also requires a separate, explicit choice.

Load the relevant reference

  • Connection, API calls, IDs, search syntax, external sources, mutation hazards: references/ankiconnect.md
  • Discover and save flags, tags, fields, external-source rules, and style: references/conventions.md
  • Collection orientation, cost scoring, hotspots, and content scan: references/health-check.md
  • Preference discovery, costly-card decisions, fix batches, and triage: references/fixing-and-triage.md
  • T0–T3 rubric and card-writing rules: references/card-writing.md

Use the bundled read-only scripts where their reference says to run them. Execute utility scripts rather than copying their source into the conversation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.