Turn a PGN or Lichess Study into Spaced Repetition Drills

Turn a PGN or Lichess Study into Spaced Repetition Drills

A lot of players already have their repertoire written down. Maybe it's a Lichess study with a chapter per line, a ChessBase file, or a PGN a coach sent. Writing it down was the easy part. Remembering it at move 11 in a real game is the hard part.

This guide covers how to prepare that file so it drills well, and which tools can drill it.

Step 1: Get the PGN out

  • Lichess study: open the study, then use the share/export options to download the PGN of the whole study. Some tools (AnkiChess included) can also read a study directly from its link, as long as the study is public or unlisted.
  • ChessBase or another database program: export the repertoire game (or games) as PGN, keeping variations and comments.
  • A book or course: you'll have to enter the moves yourself, usually into a Lichess study. Keep it to lines you actually intend to play.

Step 2: Tidy the file before you drill it

Most "this trainer doesn't work for me" problems are really file problems.

One colour per file. A White repertoire and a Black repertoire drill differently: as White you answer on odd plies, as Black on even plies. Keep them in separate studies or files.

One answer per position for your side, where you can. A repertoire with two different moves for you in the same position means two things to remember and no clear "right" answer. Pick one. Keep a second only if you really play both.

Put your main line first. In PGN, the first move at a branch is the main line and the rest are variations. Some trainers use that order to decide what to teach first, and it makes the file easier to read later.

Prune the opponent's rare replies. Your file should answer the moves people play against you, not every move an engine has an opinion on. A line that comes up once a year is cost without benefit. The Lichess opening explorer, filtered to your rating band, tells you which replies matter.

Decide where each line ends. Stop when the position has a clear plan you understand, not when the moves run out. Five more engine moves past that point mostly add review time.

Keep short comments, drop engine dumps. "Bd3 to stop ...Bf5" helps you remember. A pasted evaluation and 20-move engine line won't.

Step 3: Pick a tool

All of these can work. They differ in how much setup they need and how they schedule reviews.

Listudy is free and open source. Upload a PGN and it quizzes you on the moves, bringing back lines you missed. Simple and quick to start.

Chessable is mainly a store for published courses, but you can also build your own private course from your moves. Its MoveTrainer schedules reviews with spaced repetition. Some features need a Pro membership.

Anki is free (the iOS app is a paid one-time purchase) and very flexible, but it doesn't read PGN on its own. You need an add-on, a script, or a custom card template to turn positions into cards, and it can't check that a move is legal. We go through the trade-offs in Anki for chess openings.

Lichess studies themselves have an interactive lesson mode where you guess the next move. It's good for a first pass through a line, but there's no review schedule, so it won't tell you what to look at again next week.

AnkiChess is our tool. Here's what happens when you import a PGN:

  • Paste the PGN, upload a .pgn file, or paste a public Lichess study link.
  • The whole file becomes one repertoire, chapters merged into one tree. Comments are kept and shown during review.
  • Every root-to-leaf line becomes something you drill on a board. The opponent's moves play automatically, you play yours.
  • Each of your moves is its own card, scheduled with FSRS and keyed by position. If two chapters reach the same position by a different move order, they share the card instead of making you learn it twice.
  • If the file matches openings we already teach, you can add those annotated versions instead of (or as well as) your own file.

There are limits: a file can be up to 512 KB, and an imported repertoire is capped at 400 lines of up to 80 plies each. That covers most personal repertoires. A huge engine-generated tree won't fit, and wouldn't be pleasant to drill anyway.

Step 4: Review a little, every day

The tool matters less than the habit. A few habits help with any of them:

  • Add lines gradually. Importing 300 lines at once is fine. Trying to learn all 300 in the first week isn't. Start with the lines you meet most.
  • Review before you play. Ten minutes of reviews before an online session is when recall counts.
  • Check your games against the file. When you go wrong in a game, fix the line in your file, then re-drill that spot. AnkiChess can do this step for you: connect Lichess or Chess.com and it compares your games with your repertoire, putting any position where you played something other than your prepared move back in your review queue.

Try it with your own file

If you've got a study or PGN sitting unused, create an AnkiChess account and import it from the Repertoire page.

Every new account gets 14 days of Pro free, with no card required. On the free plan afterwards, an imported repertoire counts as one of your 3 openings, however many lines it has. Pro is $5/month or $50/year and removes the limit. If you don't subscribe, openings beyond the first 3 are paused with their progress kept, not deleted.

Building the repertoire in the first place? See how to build an opening repertoire.

Ready to Master Your Openings?

AnkiChess uses the proven SM-2 spaced repetition algorithm to help you memorize chess openings efficiently. Study smarter, not harder.