Your game’s turning points and worst moves, explained at your level, or annotated for a video.
edgecaseai/ chessdrive-plugin On a phone or the Free plan? Add just the Connector
https:/ / api.chessdrive.io/ mcp Paste this one line into Claude Code, Codex or Cursor. It sets everything up, gives you one link to sign in with, and starts your first review.
Set up ChessDrive for me: fetch and follow https://chessdrive.io/setup.md, which installs its CLI with `npm install -g chessdrive`.
# Set up ChessDrive
> Official instructions from ChessDrive for setting it up in a coding agent: the `chessdrive` CLI, the ChessDrive Skills and the ChessDrive Connector. They are published at https://chessdrive.io/setup.md, so you can check where they come from before you follow them.
Your person asked you to set ChessDrive up. ChessDrive gives you Skills for chess: game reviews, the mistakes they keep making, opponent prep and more, every move checked by an engine. Do every step yourself by running its commands, except the ones marked **Your person's step**: a browser sign-in or a restart happens outside your session, so ask them and wait. Never run a command that waits at a prompt. Every command here is safe to run again on a machine that is already set up.
**In Claude's or ChatGPT's chat app, not a coding agent?** No terminal is needed: follow https://chessdrive.io/cookbook/add-to-your-ai.md instead.
## 1. Install the CLI
```
npm install -g chessdrive
```
Without npm, run `curl -fsSL https://chessdrive.io/install.sh | sh` instead, or follow https://chessdrive.io/docs/cli on Windows. Either one also updates a CLI that is already there.
Check: `chessdrive version` prints a version.
## 2. Sign the CLI in
If `chessdrive balance` already prints a Plan and a Balance, the CLI is signed in: go on to step 3. Otherwise run `chessdrive login --no-wait`. It prints a link and a code, and returns.
> **Your person's step.** Give them the link and the code, and ask them to open the link, check the code, pick their Account and choose Allow. Wait for them to say they have.
Then run `chessdrive login`, which finishes at once. That's their only sign-in: the Connector uses the key the CLI saved. Never print that key, or write it anywhere a step doesn't say.
Check: `chessdrive balance` prints their Plan and Balance. If the Balance isn't what they expect, they allowed another Account: run `chessdrive logout`, then this step again, and ask them to pick the right Account.
## 3. Add the Skills and the Connector
Use your agent's section.
### Claude Code
Install the Plugin, which brings the Skills and the Connector. The Connector uses the key the CLI saved, so there is no second sign-in.
```
claude plugin marketplace add edgecaseai/chessdrive-plugin
claude plugin install chessdrive@chessdrive
```
Check: `claude plugin list | grep -A2 'chessdrive@chessdrive'` shows it enabled. If it's listed but disabled, run `claude plugin enable chessdrive@chessdrive`.
> **Your person's step.** Ask them to run `/reload-plugins` in Claude Code, or restart it, to load the Plugin. Wait for them to say they have.
### Codex
Download https://chessdrive.io/plugin/chessdrive.zip, unzip it and copy every folder in its `skills` folder, with all its files, to the folder where Codex reads your person's own Skills, so they work in every project. Copying again replaces them with the latest.
Then the Connector: in `~/.codex/config.toml`, a `[mcp_servers.chessdrive]` table with `url = "https://api.chessdrive.io/mcp"` and `http_headers_helper = "<the full path of chessdrive> key --headers"`. If the table is already there, leave it.
Check: `codex mcp list` lists chessdrive.
> **Your person's step.** Ask them to restart Codex. In Codex Desktop, quit it fully and open it again.
### Cursor
Download https://chessdrive.io/plugin/chessdrive.zip, unzip it and copy every folder in its `skills` folder, with all its files, to the folder where Cursor reads your person's own Skills, so they work in every project. Copying again replaces them with the latest.
Then the Connector: in `~/.cursor/mcp.json`, a server named chessdrive with `"url": "https://api.chessdrive.io/mcp"` and `"headers": { "Authorization": "Bearer ${env:CHESSDRIVE_CONNECTOR_KEY}" }`. Merge it into the file, and keep the other servers. Then add `export CHESSDRIVE_CONNECTOR_KEY="$(chessdrive key 2>/dev/null)"` to their shell's startup file, once. On Windows, leave out the headers and the export: Cursor signs in through their browser.
Check: `~/.cursor/mcp.json` has the chessdrive server.
> **Your person's step.** Ask them to restart Cursor.
### Any other agent
Download https://chessdrive.io/plugin/chessdrive.zip, unzip it and copy every folder in its `skills` folder, with all its files, to the folder where you read your person's own Skills, so they work in every project. Copying again replaces them with the latest.
Then add a remote MCP server named chessdrive at https://api.chessdrive.io/mcp, sending `Authorization: Bearer` and the key `chessdrive key` prints. Merge it into your MCP settings, and keep the other servers. Restart if your agent needs it.
## 4. Report the result
Report only what you checked. Don't mark a line done that you couldn't confirm.
```
┌─ ChessDrive set-up ────────────────────────────┐
│ ✓ CLI signed in: Free plan, $10.00 │
│ ✓ Skills Game review, Patterns, Prep, … │
│ ⚠ Connector restart your agent to load it │
└────────────────────────────────────────────────┘
```
Use ✓ for checked, ⚠ for waiting on your person, and ✗ for failed. After the banner, give the next action for every line that isn't ✓.
## 5. Get them started
Ask for their Lichess or chess.com username. If you can use the ChessDrive Skills now, offer to review their last game, and on their yes do it with the Game review Skill. Otherwise, once they've restarted you, they can send one of these:
- "Review my last game. I’m <username> on Lichess."
- "Find the mistakes I keep making. I’m <username> on chess.com."
- "Prep me for my game against <opponent> on Lichess."
## No person present
In CI or an agent SDK run, nobody can do the person's steps. Read the key from `CHESSDRIVE_API_KEY`: if it isn't set, stop and say so. Save it for the CLI with `printenv CHESSDRIVE_API_KEY | chessdrive login`, and never ask for it, print it or write it to a file. Then do step 3 and skip the restarts: your agent loads the Skills and the Connector the next time it starts.
## If something fails
- **No npm, or npm can't install globally:** use the installer in step 1. It needs neither npm nor sudo.
- **Your agent's safety check refuses an install:** don't work around it. Ask your person to run that command themselves; in Claude Code, `!` before a command runs it in the session.
- **`No ChessDrive API at …`:** the CLI is pointed at the wrong address. Check `--base-url` and `CHESSDRIVE_BASE_URL`.
- **The link or the code has expired:** run step 2 again for a new one.
- **Don't open https://api.chessdrive.io/mcp in a browser:** it's for agents, not a web page. Every sign-in starts from the CLI.
- **The Skills or the Connector's tools are missing:** your person restarts the agent. Then ask them to try "Which ChessDrive Skills do you have?".The Connector’s address is the same in every agent. The MCP docs
Check it worked: ask What’s my ChessDrive balance?
Runs cost about $0.14 from your Balance · Free’s $10 covers about 70 runs(estimate)
---
name: chessdrive-game-review
description: Review a finished chess game with ChessDrive, or annotate it for a video or article. Use when someone says "review my last game", "what did I do wrong in this game" or "annotate this game for my video", or shares a PGN, a Lichess or chess.com game link, or a username and asks where the game went wrong. The engine checks every move, then the chess models explain every move it marked, at the player's level. Gives the turning points, the worst three moves and one lesson, or an annotated PGN for a Lichess study with talking points, then builds a Study, a page to step through the game. Calls ChessDrive's engine and chess model with the ChessDrive Connector in a chat app, Claude's or ChatGPT, and through the `chessdrive` CLI in a coding agent.
---
# Game review
You take a finished chess game through the engine, then have the chess models explain every move it marked. The engine judges every move and the models say why, never your own reading of the board. Read `<this Skill's folder>/../chessdrive-vectors/references/calls.md` before your first call: it has who judges what, how to make calls at once and what to do when one is refused. You make the calls `engine` and `generate` with the ChessDrive Connector's tools in a chat app, Claude's or ChatGPT, even where it runs code, and anywhere you can't run code, and with the `chessdrive` CLI in a coding agent. `<this Skill's folder>` is the folder this file is in, which your app gave you, so don't search for it. If what you need isn't there, read `<this Skill's folder>/../chessdrive-vectors/references/set-up.md` and walk the person through it one step at a time. Give no chess reading of your own in the meantime, and go on when it's there.
Pick the mode from what they ask:
- **For me**, the default: "review my last game", "what did I do wrong". You give the turning points, the worst three moves and one lesson.
- **For a video or article**: "annotate this game", or they mention a video, a stream or an article. You give an annotated PGN and 3 to 5 talking points.
Two limits hold in everything you write:
- **Judge positions and moves in words.** Never write centipawns, an evaluation in pawns such as "a third of a pawn", a score such as `+1.3`, a win percentage or a move's `win_chance_lost`, even for a level game or a move that cost almost nothing. Saying a side has mate in 3 is fine. This holds for your answer, the PGN and the Study's own text, such as its On the board card. The Board's evaluation bar and the "Ask about this position" card show the engine's number themselves: leave those as they are.
- **Name only moves the tools gave you:** a move of the game, a `best_line`, or a `generate` answer's `lines`. Never work out a line yourself.
## If they ask what this does, or give too little
Say this, and wait: "Paste a game's PGN or its Lichess or chess.com link, or tell me your username and site for your last game, and tell me roughly your rating. I'll check every move with the engine and show you the turning points and your three worst moves. For a video, say so and I'll annotate it."
## Step 1: Get the game
- **A pasted PGN:** use it as given; moves with no headers are fine. Engine reads only the first game of a PGN, so if the paste holds several, ask which one and send only that.
- **A Lichess or chess.com link,** where you run code on the person's machine: `python3 <this Skill's folder>/../chessdrive-vectors/scripts/fetch_games.py --url "<the link>" --out review/game.pgn`, with the link as they gave it. It reads every form of both sites' links and prints the game's players, date and result. Its `color`, when it has one, is the person's colour; otherwise match the name they gave against `white` and `black`. A chess.com link needs their chess.com username, which finds the game: ask for it, then add `--username <username>`.
- **A link in Claude's chat app or ChatGPT,** whose sandboxes can't reach either site, with no code at all, or wherever you make your calls with the Connector: call the Connector's `get_game` with `{"url": "<the link>"}`, and `"username"`: a chess.com link needs it, and on a Lichess link theirs, if they gave it, makes `color` their colour. Use its `pgn`; where you run code, write it to `review/game.pgn` for Step 5's script. Its `color` is as above.
- **A username:** ask which site if they didn't say, then fetch only their last game with `python3 <this Skill's folder>/../chessdrive-vectors/scripts/fetch_games.py lichess <username> --max 1 --out review/game.pgn`, or `chesscom`, and go on without offering first. For "my last rapid game" or a game from a date, add `--speed` or `--since` as `<this Skill's folder>/../chessdrive-vectors/references/get-games.md` says. Say which game you found, with the opponent and the date, so they can stop you if it's the wrong one. Never call `search`, and don't bring it up: it can't find a player's games. If the script can't reach the site, or you can't run code, ask which game instead, as below.
**When you can't get it:** if the script or `get_game` refuses, pass on its message and ask for the PGN: on Lichess it's under Share & export below the board, and on chess.com press Share, open the PGN tab and press Download. Stop there: no fetch of your own, search, browser or Claude in Chrome, as the sites stop those. If the script can't reach the site and `get_game` isn't among your tools, ask them to paste the PGN. Never rebuild the moves from what a page shows or from memory.
**Ask only for what's missing, once, in one message:**
- *Which game*, if they gave no PGN, link or username. Ask for one of those, and if they can't fetch it from here, give the steps for their site, asking which site if they didn't say:
- **Lichess:** open your profile, open the game in your list, and paste me the page's address.
- **chess.com:** open https://www.chess.com/games/archive/USERNAME with your username, open the game, and paste me the page's address.
- **ChessBase:** make a PGN file of that game, by the ChessBase steps in `<this Skill's folder>/../chessdrive-vectors/references/get-games.md`, with only that game selected, and paste me its text or attach it.
- *Their colour*, for me mode only: take it from the link, from `color`, or from their name in the PGN's `White` and `Black` headers. If none of those says, ask, and never guess it from their rating.
- *Roughly their rating*, for me mode only: what they told you, or else the PGN's `WhiteElo` or `BlackElo`. A coach asking about a student gives the student's colour and rating.
## Step 2: Ask the engine
Call `engine` once, on the whole game, with no `ply`, `lines` or `depth`. With the CLI, save the game to `review/game.pgn` and run:
```bash
chessdrive engine --pgn review/game.pgn --json > review/engine.json
```
With the Connector, it's `{"engine": "stockfish", "position": {"pgn": "<the PGN>"}}`, and where you run code its answer goes in `review/engine.json` for Step 5's script, as `calls.md` says under The Connector's answers for a script. Each entry in `moves` has `move_number`, `color`, `move.san`, and:
- `ply` and `fen`: the position the move was played from
- `verdict`: `best`, `good`, `inaccuracy`, `mistake` or `blunder`, and `win_chance_lost`, how much the move cost
- `eval_before` and `eval_after`, from White's side
- `best_line`, the engine's Line from before the move
- `board_url`, from the Connector only, on inaccuracies, mistakes and blunders: that position, with the engine's move drawn on it
Read `review/engine.json` with code, never by eye: a game's answer is long. This example prints the moves that went wrong, each with the words for the position before and after it, which you copy into your answer; change it to print what you need:
```python
import json
def words(e):
if e.get("mate") is not None: return "mating"
cp = e["cp"]; side = "White" if cp > 0 else "Black"; a = abs(cp)
return "about equal" if a < 50 else f"{side} a little better" if a < 150 else f"{side} clearly better" if a < 300 else f"{side} winning"
for m in json.load(open("review/engine.json", encoding="utf-8"))["moves"]:
if m["verdict"] in ("inaccuracy", "mistake", "blunder"):
print(m["ply"], f"{m['move_number']}{'.' if m['color'] == 'white' else '...'}{m['move']['san']}", m["verdict"], m["win_chance_lost"],
f"before: {words(m['eval_before'])}; after: {words(m['eval_after'])}", " ".join(x["san"] for x in m["best_line"][:6]))
```
With the Connector, a long game's answer can be too big for your app to show you at once. If it saves the answer to a file, read `moves` from there with your own tools; don't call `engine` again. If it didn't, work from the answer in the chat, and for the page copy it once to `review/engine.json` where you run code, or as the `chessdrive-study` Skill's Step 3 says where you can't.
If `engine` says the PGN doesn't parse, tell them a move in its main line is illegal or the text isn't a game, and ask them to copy it again. Don't try to repair it. On `limit_too_high` the game is too long for one call: call again with `depth: 10`, `--depth 10` with the CLI, and say so in one line.
Turn evaluations into words, and use them everywhere: under 50 `cp` either way is about equal, under 150 a little better, under 300 clearly better, 300 or more is winning, and a `mate` is mating. Every "about equal", "a little better", "clearly better" or "winning" you write is the band of one number, as `words` above prints it: the position before a move is its `eval_before`, the one after it its `eval_after`. Take the words from the number each time, and never from a reply's words or from how the game went on. A move that "threw away a win" had a winning `eval_before`; one that "let the win go to a draw" has an `eval_after` that's about equal.
## Step 3: Pick the moves
- **Every marked move gets a note,** whoever played it: Queen explains each mistake and blunder, up to 12, the highest `win_chance_lost` first, and Knight gives each inaccuracy, and any mistake past the 12, one line. Nothing is left to fill in later.
- **For me:** the person's three worst moves are their mistakes and blunders with the highest `win_chance_lost`. The turning points are the mistakes or blunders, by either side, after which a different side stood better or a level game stopped being level, by the words of `eval_before` and `eval_after`: three at most, and when more qualify, the three with the highest `win_chance_lost`. Your answer heads those two groups, at most 5: over that, a turning point goes before any of the worst three. An inaccuracy never heads it while the person has a mistake or a blunder, however early or costly it was.
- **For a video or article:** the same two groups, with both sides' mistakes and blunders counted for the worst three.
- **The Study lists the moves your answer heads,** both groups, under Turning points, whoever builds it.
**No mistakes:** if the person made no mistake or blunder, say so plainly: "The engine found no mistakes or blunders by you in this game." Then head their worst inaccuracy if they have one, or else their move with the highest `win_chance_lost` that wasn't `best`, as "the costliest move", with no mark, and any mistake of their opponent's that decided the game. With fewer than three, give the ones there are. Never pad the list.
## Step 4: Explain them
Make every note in one go, as soon as `engine` has answered, up to 6 at once as `calls.md` says: one `generate` per marked move, with `position: {"pgn": "<the PGN>", "ply": <the move's ply>}`, `model: "queen"` for a mistake or blunder and `model: "knight"` for an inaccuracy, and this `system`, filling in the rating and the verdict with its article: `a mistake`, `a blunder` or `an inaccuracy`. With the CLI, write `review/questions.jsonl` with code, a line per move with its `id` the move as in `14...Qd7`, and run `ask.py` on it and Step 5's script after it, in one command: never answer before the Study is built. With the Connector, make the calls yourself, and where you run code write each note, as the next section leaves it, to `review/answers.jsonl` with that `id`, as `calls.md` says, then run Step 5's script. For a video or article, start the `system` with "You explain a chess game to an audience of club players." instead of its first sentence. For Knight, "In one plain sentence of at most 20 words" replaces "In at most three sentences, in plain words".
```text
You review a chess game for a player rated about {rating}, who had {Black}. The move they ask about was {a blunder}.
In at most three sentences, in plain words, say what the move allowed and why the engine's best move is better.
Use the engine's Line you are given, and name only moves from that Line or from the game.
Judge positions in words, such as "Black is losing", never in numbers.
```
The `message`:
```text
{Black} played {14...Qd7}, {a blunder}. Instead of it, the engine's best Line was {14...Nf6 15.Qe2 O-O}. Before the move {Black was a little better}; after it {White is winning}. What went wrong?
```
The Line is the `best_line`'s first 6 moves at most. The two positions are the words of `eval_before` and `eval_after` from Step 2, as a sentence: "the game was about equal", "Black was a little better", "White is winning", and for a `mate`, "White mates in 3".
Each `text` is that move's note, word for word: the page, the PGN and the board take it from `review/answers.jsonl` with code, never reworded or added to. A `null` is one no model gave, which you label as `calls.md` says. A move in a note's `lines` is one the tools gave, played or not.
**A note loses a sentence for two reasons, and no other. The first: the sentence links a move to a Line the reply doesn't have.** A reply's `content` writes each move it checked as a link, as in `[14...Nf6](line:L1)`, and its `lines` holds the Lines that passed as legal, so `(line:L3)` with no `L3` in `lines` is a move that wasn't legal. `ask.py` has already dropped those sentences, written every other link as its text, and asked once more for a note that ended empty. With the Connector, do the same by hand: the note is `content` without those sentences, each link as its text alone. A move written as plain text is no reason to drop a sentence: the move asked about, a move of the game and a move of the Line you sent are often written so. A note with a sentence left is never labelled as missing. A note with none left is asked for once more, the same call; if that one ends empty too, it's one no model gave, with its label, and counts as missing.
**The second: the sentence says the opposite of the engine, which is right.** That is a sentence that calls the marked move good or the best one, gives a move other than the `best_line`'s first as the one to play, or says that after the move played a side stands better where the words of `eval_after` name the other side. A sentence about the position after the engine's move is not about `eval_after`. Leave it out of your answer, and with the Connector out of the note you copy to the page, the PGN and the board, keeping the rest of the note. Another word for the same thing is no disagreement, and stays: "a mistake" for a blunder or for an inaccuracy, as the move's mark and tag come from its `verdict`, or "losing" where the words are "clearly better" for the other side.
Build your answer from the notes and the Lines, and add no tactics of your own: the lesson and every "what it allowed" must be something they show. In your own words, a note's claim about material, such as a piece won or the bishop pair, or its name for a pattern, such as a Greek gift, stands only when the Line's moves show it, as a capture there. If every call fails, say once that the explanations aren't available right now.
## Step 5: Build a Study
Before you write your answer, build the person a Study, a page of this game to step through. Do this in every run, for a video or article too. Don't offer it or ask first, and make no new `engine` or `generate` call for it. The page's Study key, which a coding agent makes as that Skill's `live.md` says, is free, and the one thing you make for it. Where you run code, `python3 <this Skill's folder>/scripts/study.py review --colour <white or black>` builds it, straight after `ask.py`, or with the Connector once `review/engine.json` and `review/answers.jsonl` hold its answers. `--colour` is the person's own colour: leave it out for a video or article, or if you don't know it. Add `--no-key` only in a chat app, Claude's or ChatGPT, where the page is an artifact or a canvas and gets no Study key, so the script calls nothing. From `review/engine.json`, `review/answers.jsonl` and `review/game.pgn` it writes the page in the `chessdrive-study` Skill's frame, in the person's folder, and checks it with that Skill's `check.py`: the Board with every verdict, the top card, On the board, with the verdict and note of the move on view, word for word, or its label where no model gave one, the turning points, picked as Step 3 says, and a graph of White's chance to win. It prints `study`, the page's full path, `check`, which is `ok`, `turning_points`, and `missing`, the moves no model explained.
**Build on the page.** It's a starting point, not a finished thing to leave alone: add to it or change it wherever that makes it more useful to this person, asked or not, such as a section on an opening move they asked about. Its moves, verdicts and notes are in `DATA`, `frame.md`, `board.md` and `review.md` in `<this Skill's folder>/../chessdrive-study/references/` say how the page works, and what a new part says about the chess comes from the tools, as `calls.md` says. Two rules hold for any change. A note stays word for word: it can move or be hidden, never be reworded. And after a change, run `python3 <this Skill's folder>/../chessdrive-study/scripts/check.py <the page>` and fix each line it prints until it prints `ok`.
A coding agent always builds the Study, as the page is a file it opens: `show_board` isn't a way round it. Where you can't run code, build the page by hand with the `chessdrive-study` Skill, as its `review.md` says: skip its calls, list the moves your answer heads as its turning points, and copy each note whole. If your app can't show a page, as in a chat with no artifacts, or that Skill isn't there, call `show_board` instead, once, before your answer, with `pgn`, `ply: 0`, `orientation`, the person's colour or White if you don't know it, `moves: true`, `mode: "play-both"`, so the person can try their own moves, and `annotations`. Each key is a move's `ply + 1`, each glyph is the mark above, and each comment is the move's note. Where no board shows, or you have no `show_board`, make the move in its heading a link to its position on the Board, its `board_url` or the link Board links in `calls.md` builds, as in `### [14...Qd7??](link) The queen left f7`.
## Step 6: Answer
This answer is the Study's hand-over, so write no other. In a coding agent, open the page first, as that Skill's Step 6 says. Under your first line put one line on how to use the Study or the board, with the page's full path as a link, the path its text, saying that the verdict and note of the move on view are in its top card, On the board. For a page with a Study key, add under it that Skill's one line on keeping the page and on its key. If a note is missing, say how many. Any link goes on words, as in `[Step through the game](link)`, never bare, as a game's link is very long. Copy a link whole, from a tool or the Study's path: never shorten one or make one up. A board `show_board` showed is already in the chat above your answer, so say so with no link.
### For me
```markdown
**You lost with Black in 34 moves, after one bad move in a level game.** One more sentence on who stood better and when, from the evaluations.
How to use the Study or the board, in one line. For a page with a Study key, one more on keeping it and its key.
### 12.Nxe5 White took the centre
What changed, and who stood better after it.
### 14...Qd7?? The queen left f7
What it allowed, and the move to play instead.
### 22...Rf8? The rook gave up the open file
What it allowed, and the move to play instead.
**The lesson:** one sentence to take into the next game.
Want a drill of your three worst moves?
```
List the moves from Step 3 once each, in game order, so a move that is both a turning point and one of the worst three gets one heading. A heading is the move with its mark, `?!` for an inaccuracy, `?` for a mistake and `??` for a blunder, as its `verdict` says, and a few words on what it did. Under it, write one or two sentences at the player's level: a beginner gets plain ideas such as "the knight was undefended", a strong player gets the idea behind the Line. End with one short line offering a drill PGN of these mistakes for a Lichess study, or, for a coach, homework for the student.
### For a video or article
Give the annotated PGN in a code block, built from the game:
- Keep the headers, and write every move of `moves` in order as its `move.san`, leaving out clocks and evals.
- Mark every inaccuracy, mistake and blunder in `moves`, not only those you explained, straight after the move: `?!` for an inaccuracy, `?` for a mistake, `??` for a blunder, as in `14...Qd7??`.
- After a marked move add a `{ comment }`, with code: its verdict's word and its note as it stands, as in `{ Blunder. The queen left f7 … }`, or its label where no model gave one. A comment holds no braces.
- After the comment add the `best_line` as a variation, its first 6 moves at most, as in `(14...Nf6 15.Qe2 O-O)`.
- End with the game's result.
Check it before you hand it over: call `engine` with `"position": {"pgn": "<your PGN>", "ply": <the last move's ply>}` and `depth: 1`, with the CLI `chessdrive engine --pgn annotated.pgn --ply <ply> --depth 1 --no-stream --json`, read with code. Its `fen` must equal that move's `fen`; if the call is refused or the two differ, fix the PGN and check again. Tell them to import it in a Lichess study: New chapter → PGN.
Then give 3 to 5 talking points, in game order:
```markdown
1. **The pin on d7 is the whole game.**
Black's knight on d7 can't move, as the bishop on b5 pins it to the king. White takes on d7 and brings the other rook to d1, so the pin is still there. Point at the bishop, the knight and the king on one diagonal.
Show: 13.Rxd7 Rxd7 14.Rd1.
```
The bold title is the one sentence to say on camera. Under it go 2 or 3 plain sentences: what's going on, why it matters, and what to point at on the board. Then "Show:" and the Line. A point holds nothing else: no timings, caveats or asides.
Write the sentences from the notes and the engine's Lines only. Before you write, find each point's note from Step 4. A point with none, such as the finish or a strong move by the winner, gets its own Queen call now, all of them at once, made as in Step 4 with two changes: in the `system`, "say what the move does and what a viewer should look at on the board" replaces "say what the move allowed and why the engine's best move is better", and the `user` message ends "What does this move do?" instead of "What went wrong?". Make at most five of these in a run. Leave out a point that still has nothing to draw on, and a sentence where the reply and the engine disagree.
Each point's Line comes from the game or a `best_line`, and they find it in the Study at that move. With no Study, make the Line a link to the position on the Board, as in `[13.Rxd7 Rxd7 14.Rd1](link)`: with the CLI, the link Board links in `calls.md` builds from its `fen`, with no call. With the Connector, the positions with no `board_url` get theirs from one `engine` call, never one call each: `positions` holding each one as `{"fen": "<its fen>"}`, with `depth: 10`. A checkmate or stalemate has no move to find, so show the position before it.
## Follow-ups
- **A question about a position** they saw: as `calls.md` says. A move's entry in `moves` is the engine's answer for the position it was played from, so a question about that position needs no `engine` call.
These reuse what you already have, with no new calls:
- **"Turn my mistakes into a drill PGN":** one game per mistake, in one PGN block, each with `[SetUp "1"]`, `[FEN "<the move's fen>"]` and `[Result "*"]`. Its moves are the `best_line`, after a first comment such as `{ You played 14...Qd7 here. Find better. }`. Lichess makes each game a chapter of a study.
- **"Show me those moves on their own boards":** one `show_board` per move, at its `ply`, with `alongside: true` on every board after the first, so they all stay live.
- **"Turn it into homework for my student":** build a Worksheet with the `chessdrive-study` Skill, from these positions and your explanations, so the student has a page of boards. If that Skill isn't there, write one line per position, "White to move: find a better move than [14.Nf3](board_url)", with the `board_url` cut at `&marks=`, so the link doesn't draw the answer, and put the answers at the end, with why each is better.
## Rules
- Name moves in algebraic notation (`Nf3`, `O-O`), never UCI, with their number (`14...Qd7`).
- Copy a Line's moves in order with none left out, numbered on from its first move, so `best_line` `dxe5 Bxe5 Bh6 h5 Qf5 Qe2` for 13...Ng4 is `13...dxe5 14.Bxe5 Bh6 15.h5 Qf5 16.Qe2`. Give the first few moves rather than skip one, as a Line with a move left out is illegal.
- Marks come only from `verdict`: `?!`, `?` or `??`, and none on a `best` or `good` move.
- Every call is billed to the person's ChessDrive Account. Make one whole-game `engine` call and one note per marked move, Queen's at most 12, plus at most 5 Queen calls for talking points, and reuse them for follow-ups.
- Before you send, read your answer once for a Study you haven't built and opened, a marked move you made no `generate` call for, a number judging a position or a move, a mark that isn't the move's `verdict`, a word for a position that isn't the band of its evaluation, an inaccuracy heading your answer beside a mistake or blunder of the person's, a move with two headings, a price they didn't ask for, which the Study key's dollar a day isn't, as it's that key's limit, and anything the tools didn't say. Fix what you find.
Fair play: ChessDrive is for review and prep after the game, not for help during rated play.