
I ,
.

Imagine a coach who's awake at 3 a.m.
You show it a position from your last tournament game and ask, "Why is this position bad for me?"
Stockfish would say -1.8 and leave you to figure out the rest. But imagine the coach says:
"Your light-squared bishop is boxed in by your own pawns, and Black has a comfortable outpost on e4. Consider exchanging that knight before it becomes a permanent nuisance."
You ask, "Why not exchange bishops instead?" It explains the difference and shows you a continuation. You can disagree, ask it to simplify, or ask for another example.
It's not a human grandmaster sitting next to you. But it's an exciting possibility, and you can build a prototype yourself. No new chess engine, no new AI model, and no career as a professional programmer required.
Why not just use Stockfish?
Stockfish is incredible, and it's free. But finding the best move and understanding the position are two different things.
Say the engine tells you 1. Nd2! is best, with an evaluation of -1.4. Why does the knight retreat beat something active-looking? The line shows you moves, not the idea. Maybe your knight was misplaced, maybe your opponent was about to grab a key square, maybe a harmless-looking pawn weakness was about to become permanent. A strong player sees it instantly, but an improving player may not.
Compare these two answers:
- Engine: "Nd2. Evaluation improves from -1.4 to -0.8."
- Coach: "Your knight looks active on f3 but isn't doing much. Black is preparing to occupy e4 and you can't challenge it. Retreating to d2 looks passive, but it lets you reorganise and fight for the center."
The second one teaches an idea you can use in future games. That's the gap I want to close.
It's especially true in positional chess. Tactics are easy for an engine to demonstrate: you hung a rook, you missed a fork. But try asking an engine:
- Why is one bishop better than the other?
- Why is this square a great outpost?
- When should I trade my good bishop for a knight?
- Why is an isolated pawn sometimes a weakness and sometimes a strength?
- Why does an equal-material position feel so much easier for one side?
Those questions need knowledge, experience, pattern recognition, and the ability to explain.
The three ingredients
- A chess engine (Stockfish). The objective analyst. It calculates, spots tactics and suggests strong moves.
- A chess knowledge library. Annotated games, strategic concepts and teaching examples. Think of it as a filing cabinet of chess wisdom.
- An AI assistant (Gemini or another LLM). The communicator. It takes the engine's analysis, pulls relevant examples from the library, and explains everything in plain language.
The engine calculates, the library provides knowledge, and the AI explains. No single piece has to do it all.
We're also not training a chess AI from scratch. That would be enormous and unnecessary. The principle of vibe coding applies here: don't build what you can borrow, connect what you can reuse, and put your effort into the part that makes your project different. Our contribution is how the pieces work together to teach.
What the finished app looks like
A chessboard and a conversation panel. You set up a position, paste a FEN, or eventually upload a PGN, then hit Analyse. You'd get something like:
- Your position: White to move, material equal.
- What the coach notices: Black controls e5 better than you do, and your knight on f3 is vulnerable to a pin while Black's knight has a good outpost.
- The strategic problem: No tactical disaster, but Black's pieces coordinate more easily. Do nothing and Black slowly improves.
- A suggested plan: Challenge the central knight, activate your worst piece, avoid pawn advances that create new weaknesses.
- A question for you: Which of your pieces is doing the least useful work?
That last bit matters. The coach doesn't just hand over a move. It makes you think.
The first version stays small. Four features: display a board, accept a position, analyse it with Stockfish, explain it with AI. No multiplayer, no accounts, no mobile app, no custom model. Trying to build everything at once is the quickest way to abandon a project. If it can't explain one position well, more features won't make it a better coach.
Where the coaching knowledge comes from
This is where you, the chess enthusiast, become the most valuable part of the project.
- Annotated grandmaster games. They explain why a plan was chosen, why a natural move was a mistake, why an exchange changed the character of the position.
- Chess lessons and videos. We can study how good teachers introduce a concept, explain a mistake and compare candidate moves. We should respect copyright and platform rules: use material we own, have permission for, or that's properly licensed, and write our own notes. We're after teaching methods, not copying anyone's lessons.
- Your own chess knowledge. This may be the most important ingredient. You write down what you see, compare it with the annotations, and let the AI help organise it. You stay the editor and critic.
One warning: a pile of chess articles doesn't make a coach. If we feed it a lesson about isolated queen's pawns, it shouldn't just recite the textbook. It should look at the actual position. Can the pawn be attacked? Can it be blockaded? Does it open lines for the pieces? Is there a kingside attack? Connecting general knowledge to the specific position is the central challenge.
To judge success, I'll test on 20 positions the app has never seen. Did it spot the important features? Did it explain why they matter? Were the plans sensible? Did it avoid inventing weaknesses or threats? Would an improving player learn something? I care about teaching quality, not just whether the evaluation is +0.5.
The toolbox (don't panic)
| Tool | Job |
|---|---|
| Stockfish | Analyses positions |
| Gemini API | Writes the coaching explanations |
| Python | Connects the engine and the AI |
| React | Builds the board and interface |
| PostgreSQL | Stores the knowledge library |
| AI coding assistant | Helps write and fix the software |
| Google Colab | Optional online sandbox for experiments |
You don't need to learn all seven up front. We'll introduce each one only when we need it. And no, you don't need an expensive computer. An ordinary modern machine and an internet connection are enough.
So what's vibe coding? You describe what you want in plain language, for example "a chessboard on the left, a coaching panel on the right, and when I click Analyse, send the position to Stockfish." The AI writes the code. You run it, see what's broken, and tell the AI to fix it.
Describe → Build → Test → Critique → Improve.
The catch is that AI coding assistants make mistakes. They can build something that looks impressive but doesn't work, then confidently tell you it's finished. This is where your chess knowledge becomes an advantage. You'll know when the coach gives an explanation that makes no chess sense, however slick the app looks.
Which brings me to the most important tool in the box: you. A coach that gives confident but wrong explanations is worse than an engine that just shows a number. Challenge it. Ask why it thinks a position is better, whether its plan is realistic, what evidence it has. Check it against Stockfish, annotated games and your own judgment. The AI isn't right just because it sounds convincing.
Where this is going
A chess enthusiast can go from an idea to a working AI chess coach through experimentation, without first becoming a professional programmer.
Our first mission is to make a computer explain a chess position in a way a human player can actually learn from. I can't wait to start building it.
Time to Build My Own AI Chess Coach ?
I have blogged about AI as a chess coach many times over the years. Honestly, most of those posts were lofty daydreaming - "wouldn't it be nice someday" ideas that felt years away from being realistic.
Then AI moved so fast that the dream is no longer a dream. It is close enough to be practical !!
And you don't need to be an AI researcher or a software engineer to build one. You need to understand chess, be curious about AI and be willing to experiment. Of course, I am the guy who calls himself a third-rate blogger, so if I can try this, so can you.
I am starting work on a hands-on guide called AI Chess Coach for Dummies. Here is the idea behind the first three chapters.
A coach who is awake at 3 a.m.
Imagine showing a position from your last tournament game and asking, "Why is this position bad for me?"
Stockfish says -1.8 and leaves you to work out the rest. But imagine the coach says:
"Your light-squared bishop is boxed in by your own pawns, and Black has a comfortable outpost on e4. Consider exchanging that knight before it becomes a permanent nuisance."
You ask, "Why not exchange bishops instead?" It explains the difference and shows you a continuation. You can disagree, ask it to simplify, or ask for another example.
It is not a grandmaster sitting next to you. But it is an exciting possibility, and you can build a prototype yourself. No new chess engine, no new AI model, no need to become a professional programmer.
Why not just use Stockfish ?
Stockfish is incredible, and it is free. But finding the best move and understanding the position are two different things.
Say the engine shows 1. Nd2! at -1.4. Why does a knight retreat beat something active-looking? The line gives you moves, not the idea. Maybe your knight was misplaced, maybe your opponent was about to grab a key square, maybe a harmless pawn weakness was about to become permanent. A strong player sees it at once. An improving player may not.
Compare these two:
- Engine: "Nd2. Evaluation improves from -1.4 to -0.8."
- Coach: "Your knight looks active on f3 but isn't doing much. Black is preparing to occupy e4 and you can't challenge it. Retreating to d2 looks passive, but it lets you reorganise and fight for the centre."
The second one teaches something you can use in future games. That is the gap I want to close.
It matters most in positional chess. Tactics are easy for an engine to show: you hung a rook, you missed a fork. Now ask an engine these:
- Why is one bishop better than the other ?
- Why is this square a great outpost ?
- When should I trade my good bishop for a knight ?
- Why is an isolated pawn sometimes a weakness and sometimes a strength ?
- Why does an equal-material position feel so much easier for one side ?
Those need knowledge, experience, pattern recognition and the ability to explain.
The 3 ingredients
- A chess engine (Stockfish): the objective analyst. It calculates, spots tactics and suggests strong moves.
- A chess knowledge library: annotated games, strategic concepts and teaching examples. Think of a filing cabinet of chess wisdom.
- An AI assistant (Gemini or another LLM): the communicator. It takes the engine analysis, pulls relevant examples from the library and explains it all in plain language.
The engine calculates, the library provides knowledge, the AI explains. No single piece has to do everything.
I am also not training a chess AI from scratch. That is a huge job and not necessary. The rule I follow in vibe coding is simple - don't build what you can borrow, connect what you can reuse, and spend your effort on the part that makes your project different.
What the finished app looks like
A chessboard and a conversation panel. You set up a position, paste a FEN, or eventually upload a PGN, then press Analyse. You get something like this:
- Your position: White to move, material equal.
- What the coach notices: Black controls e5 better, your knight on f3 is vulnerable to a pin and Black's knight has a good outpost.
- The strategic problem: No tactical disaster, but Black's pieces coordinate more easily. Do nothing and Black slowly improves.
- A suggested plan: Challenge the central knight, activate your worst piece, avoid pawn advances that create new weaknesses.
- A question for you: Which of your pieces is doing the least useful work ?
That last one is the important bit. The coach doesn't just hand you a move, it makes you think.
Version 1 stays small. Just 4 features: show a board, accept a position, analyse with Stockfish, explain with AI. No multiplayer, no accounts, no mobile app, no custom model. Trying to build everything at once is the quickest way to abandon a project (I have abandoned a few, no excuses). If it can't explain one position well, more features won't make it a better coach.
Where the coaching knowledge comes from
This is where you, the chess enthusiast, become the most valuable part.
- Annotated grandmaster games: they explain why a plan was chosen, why a natural move was a mistake, why an exchange changed the character of the position.
- Chess lessons and videos: we can study how good teachers introduce a concept, explain a mistake and compare candidate moves. Of course we must respect copyright and platform rules - use material we own, have permission for, or is properly licensed, and write our own notes. We want the teaching methods, not a copy of anyone's lessons.
- Your own chess knowledge: possibly the most important of all. You write down what you see, compare it with the annotations, and let the AI help organise it. You remain the editor and critic.
One warning. A pile of chess articles does not make a coach. Feed it a lesson on isolated queen's pawns and it shouldn't just recite the textbook. It should look at the actual position. Can the pawn be attacked ? Can it be blockaded ? Does it open lines for the pieces ? Is there a kingside attack ? Linking general knowledge to the specific position is the hard part.
To judge success, I will test on 20 positions the app has never seen. Did it spot the important features ? Did it explain why they matter ? Were the plans sensible ? Did it avoid inventing weaknesses or threats ? Would an improving player learn something ? I care about teaching quality, not whether the evaluation says +0.5.
The toolbox (don't panic)
- Stockfish: analyses the positions
- Gemini API: writes the coaching explanations (tokens are not free, AI needs to be paid too :) )
- Python: connects the engine and the AI
- React: builds the board and interface
- PostgreSQL: stores the knowledge library
- AI coding assistant: helps write and fix the software
- Google Colab: optional online sandbox for experiments
You don't need to learn all 7 up front. We bring each one in only when needed. And no, you don't need an expensive computer. An ordinary modern machine and an internet connection are enough.
So what is vibe coding ? You describe what you want in plain words, for example "a chessboard on the left, a coaching panel on the right, and when I click Analyse, send the position to Stockfish." The AI writes the code. You run it, see what is broken, and tell the AI to fix it.
Describe, Build, Test, Critique, Improve.
The catch is that AI coding assistants make mistakes. They can build something that looks impressive but doesn't work, then confidently tell you it is finished. I know, because it has happened to me. This is where your chess knowledge helps. You will know when the coach says something that makes no chess sense, however slick the app looks.
Which brings me to the most important tool in the box - you. A coach that gives confident but wrong explanations is worse than an engine that just shows a number. Challenge it. Ask why it thinks the position is better, whether the plan is realistic, what evidence it has. Check it against Stockfish, annotated games and your own judgment. The AI is not right just because it sounds convincing.
The road ahead
Every chapter should produce something you can see or use:
- Ch. 4 - Your First AI Coding Session: create the project with a coding assistant
- Ch. 5 - Putting a Chessboard on the Screen: the first interactive board
- Ch. 6 - Introducing Stockfish: real chess analysis
- Ch. 7 - Giving the AI a Chess Brain: connect the LLM to the analysis
- Ch. 8 - From Engine Numbers to Human Explanations: the first coaching prompt
- Ch. 9 - Teaching the AI Positional Chess: pawn structures, weak squares, piece activity
- Ch. 10 - Building a Grandmaster Knowledge Library: add annotated games
- Ch. 11 - Learning from Chess Videos: turn permitted transcripts into teaching material
- Ch. 12 - Giving the Coach a Memory: retrieve relevant examples
- Ch. 13 - Can We Trust Our AI Coach ?: test against real positions
- Ch. 14 - Making It a Personal Chess Coach: playing strength, goals, progress
- Ch. 15 - Beyond the Prototype: hosting, costs, future possibilities
To summarise, the promise of the whole book is simple:
- A chess enthusiast can go from an idea to a working AI chess coach
- Through experimentation, not a computer science degree
- Without first becoming a professional programmer
Our first mission is to make a computer explain a chess position in a way a human player can actually learn from. Will it work ? I hope so, of course. Worst case, I end up with a very expensive way to be told my bishop is bad :)
I am curious - what would you want your AI coach to explain first ?
Leave a Comment