/ankiconnect:due-card-redesignfrom ankiconnect
Triage and redesign poorly designed Anki cards via ankiconnect MCP tools. Gathers due, red-flagged, leech, or chosen notes, gets user verdicts, redesigns bad cards in parallel, applies approved changes with scheduling carryover, and logs verdicts to improve judgement rules.
Ships in ankiconnect. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The pipeline runs as triage, verdicts, redesign, approval, apply, scheduling, rework and distil. It needs nothing but this plugin's MCP tools, subagents and a scratch working directory. Load card-judgement before any triage or redesign, and make every subagent load it too. A personal overlay skill may set the deck, tags, flag meanings, paths and exclusions; its settings replace the defaults below.
Never write to Anki before the user approves in chat. Steps 1–6 only read Anki and write local files; only step 7 onwards writes, and only what was approved.
Use WORK = <root>/<YYYY-MM-DD>/, where <root> is the overlay's path or else ./anki-redesign/.
Files, all JSON, written with the Write tool and validated by re-reading:
| File | Holds |
|---|---|
notes.json | the gathered notes: nid, model, tags, fields, card_ids, lapses, flag |
chunk{i}.json → class{i}.json | triage input and output (format in rubric.md) |
verdicts.json | the user's triage verdicts: {nid: {"verdict", "comment"}} |
rd{i}.json → prop{i}.json | redesign input and output (format in redesign_brief.md) |
decisions.json | approval per note and per piece: approve, reject (with comment), edit, exclude |
applied.json | what was written, with the original fields of every in-place edit, for undo |
<root>/ledger.jsonl | one line per note ever triaged (nid, date, verdict), so later sessions skip it |
| judgements log | one line per user verdict (below); the overlay names its path, else <root>/judgements.jsonl |
Judgements log record (append-only; never rewrite earlier lines):
{"date", "stage": "triage"|"redesign"|"rework", "nid", "cycle", "claude": {verdict or proposal}, "user": {"verdict": "bad"|"ok"|"approve"|"reject"|"edit"|"exclude", "comment"}, "issues": [codes]}
Gather. Build the set with search_notes(query, limit=100, return_card_content=true), paging
with narrower queries if needed:
is:due -is:suspendedflag:1tag:leech, or find_struggling_cardsnid:123,456Exclude notes tagged redesigned::*, notes already in ledger.jsonl, and Image Occlusion notes
(their fields collapse to a placeholder). Add lapses, card_ids and the flag with
inspect_cards(note_ids=[…], properties=["identity", "scheduling", "state"]). Images appear as
[image: filename]; retrieve_media_file shows one. Write notes.json and tell the user the
count before going on.
Chunk into files of about 35 notes.
Triage in parallel. Launch one subagent per chunk in a single message (a fast model is
enough). Prompt: "Load the card-judgement skill and follow ${CLAUDE_SKILL_DIR}/rubric.md.
Classify WORK/chunk{i}.json and write WORK/class{i}.json." Merge and check that every nid
has exactly one row. Red-flagged notes count as the user's own "bad" verdict.
Verdicts, on the review page or in chat. Show only the notes judged bad, in batches of
about ten. Review page (preferred where the app displays it): call
open_card_review(note_ids, context) with, per note, "<issue codes>: <reason>. Approve = redesign it; Reject = leave it as it is." The user's submit posts a message listing each
decision and comment; read approve as "bad", reject as "ok", skip as undecided, and a comment of
"suspend" or "delete" as that action. If the tool returns plain JSON instead of a page, the app
cannot display it: say so once and use chat. Chat: number, the cleaned card text, the issue
codes and the one-line reason, with replies such as
1 ok · 2 bad · 3 suspend · 4 bad: also cut the dose. A bare "go" accepts the batch as judged.
Write verdicts.json, append every note to ledger.jsonl, and append each verdict to the
judgements log. If the user says "you decide", record "user": {"verdict": "delegated"} so the
log never passes off Claude's verdicts as the user's.
Redesign in parallel. "suspend" and "delete" comments are actions, not redesigns: queue them
for step 7. Chunk the remaining bad notes with their triage reason and the user's comment, then
launch one subagent per chunk: "Load card-judgement and follow ${CLAUDE_SKILL_DIR}/ redesign_brief.md. Redesign WORK/rd{i}.json and write WORK/prop{i}.json." Merge, then check
every proposal yourself: field names match the model (from list_decks_and_notes), the in-place
piece's model equals the original's, no image was lost without a reason, and no cloze number is
dropped on an in-place edit. Re-run the pre-flight checklist on anything that looks borderline.
Approval, on the review page or in chat. For each note show the original, then every
proposed piece labelled 2a, 2b… with its cloze hidden-side view when it is a cloze.
Review page: open_card_review(note_ids, context) shows the original card; put the
proposed pieces in its context as plain text (2a [Cloze] …, 2b [Basic] Front … / Back …).
Approve = apply the whole proposal, reject = rework it (the comment says why), skip = leave for
later. A comment such as "exclude 2b" or "edit 2a: " applies to that piece. Chat:
replies such as 2 ok · 3 reject: hint gives it away · 4b exclude · 5a edit: <text>. Write
decisions.json and append each decision to the judgements log.
Apply, approved items only. Record each original's fields in applied.json first.
update_note_fields(note_id, fields), keeping the note's history.add_notes([…]), tagged with the original's tags plus redesigned::<date>; store
any approved, newly found images first with store_media_file.set_suspended(card_ids, true) and
update_note_tags(add=["redesigned::replaced"]).update_note_tags(add=["redesigned::<date>"]).set_suspended, or delete_notes(confirm=true) only for notes the user said
to delete in this session.set_card_flag(card_ids, "none").Scheduling transfer. New cards would otherwise start from scratch. Get their card IDs
with inspect_cards(note_ids=[new nids]), show a dry-run table (original → new cards, interval,
ease), and after the user agrees, call copy_scheduling(target_card_ids, source_note_id=original).
Skip notes whose issues include OUTDATED or TYPO: corrected facts are relearned from new. Redo
any "mismatch" rows; log results in applied.json.
Rework rejections. Archive each rejected proposal in decisions.json under
rejected_v<cycle>, then send the rejected notes to one subagent with redesign_brief.md in
rework mode (the rejected proposal, the user's comment and earlier rejections). Repeat steps 6–9
until nothing is rejected.
Distil. Always the final step. Read this session's lines in the judgements log, and look for repeated rejection reasons, overrides of "bad" flags, edits and excluded pieces. Propose changes to the user's personal judgement skill (or, if there is none, offer to start one), as a diff for approval. Never change rules silently.
set_card_flag and copy_scheduling re-read cards and report each
as set, copied, unchanged or mismatch; read those reports rather than assuming success.update_note_fields and the original in applied.json.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
anki, spaced-repetition, card-redesign, triage, flashcard-maintenance
npx claudepluginhub samefarrar/mcp-ankiconnect --plugin ankiconnect3 skills in this plugin
/card-judgementThe quality bar for Anki cards: hard rules, a pre-flight checklist and triage calibration, distilled from a large corpus of real approve/reject verdicts on redesigned cards. Load it whenever you draft, redesign, rework, triage or critique Anki cards: making cards from notes or questions, fixing due or leech cards, deciding whether a card is good or bad, or turning a rejected card into a better one. card-writing covers the mechanics; where the two conflict, these rules win. A user's personal judgement skill, if loaded, wins over both./card-writingWrite, add, search and review Anki flashcards with the ankiconnect MCP tools. Use it whenever the user asks to make flashcards or Anki cards, add cards to Anki, turn notes or a session into cards ('make cards from this', 'add these to Anki'), search existing cards, check what is due, or do an Anki review. It covers note-type choice, cloze engineering, the approval workflow and the review cycle. Load card-judgement alongside it before showing any drafted card.Other plugins' skills for the same job