How do you build an opening repertoire from your own games?
The short answer
Start from what you already play, not from a book. Keep the lines that keep coming up in your games, fix one answer for your side in each position, prepare your opponents' replies in order of how often players at your level choose them, then review with spaced repetition and check your games for where you leave it.
1. Start from your games
Your games already contain a repertoire: the lines you play again and again. Collect the ones that came up at least three times, and keep one move per position for your side. Alternatives can come later; a repertoire you do not remember is worse than a short one.
2. Prepare what your opponents really play
At your level, opponents rarely play the main line of the books. Look at what players at your rating play in each position, and prepare their replies in order of frequency. A reply chosen in 40% of games deserves a prepared answer long before a sideline seen once.
Measure coverage rather than depth: the share of your games that stay in your preparation up to around move seven matters more than knowing one line to move twenty.
3. Understand rather than memorise
A move you understand survives a different move order; a memorised one does not. Check that your moves are sound with an engine or the evaluations of a large database, and look at strong players' games from your positions to see the plans that follow.
4. Review with spaced repetition
Review each position where you are to move, not each line: the same position can come from several move orders. A right answer comes back later and later, a wrong one comes back the next day. A few minutes a day keep a large repertoire alive.
5. Check your games
After each batch of games, find the first move where the game left your repertoire. Either you deviated, and you need to review, or your opponent surprised you, and you need to prepare. Then check whether the exit cost you anything: a sideline you handle well can wait.
How Matlo does it for you
Matlo suggests the lines you played at least three times in your games, shows what players at your level play in every position (from twelve months of public Lichess games, by time control and rating band) and tells you your coverage up to move seven, with the most frequent gap to prepare next.
Every position where you are to move is reviewed with spaced repetition. Your last 100 games are read for repertoire exits, the costly ones first, and “Fix your opening” finds the opening mistakes you repeated. Master games from tournaments broadcast on Lichess show the plans that follow your positions.

Frequently asked
How deep should a repertoire go?
As deep as your games go before they leave it. Start with the first five to seven moves and extend where your exits show you need it.
One repertoire per colour?
One main repertoire with White and one with Black is the simplest start. With Black, begin with answers to the first moves you meet most often.
Can I import my existing repertoire?
Yes, into Matlo as a PGN with variations, the exchange format of every opening tool, or from a public Lichess study.