Claude Code now turns Lichess games into commented videos A developer built a Claude Code workflow that combines Claude's visual processing with a local Stockfish engine to generate fully commented videos of Lichess games from board screenshots and audio notes, bypassing standard PGN injection. Analyzing a single 40-move game took roughly an hour and consumed about $15 in tokens at current API rates, and the developer notes vision recognition can occasionally misread piece orientation on cluttered screenshots. The workflow fetches the last game ID and PGN via the Lichess API, runs Stockfish evaluations, merges engine output with user audio transcripts, and renders video with ffmpeg overlay text. Claude Code now turns Lichess games into commented videos I used to think feeding PGN files into an LLM was the only way to get decent chess analysis. It’s dry, mechanical, and misses the context of why you played a move. I decided to test a different approach: forcing Claude Code https://promptcube3.com/en/tags/claude%20code/ to rely on vision and natural language instead of raw data streams. The experiment worked better than expected. By combining Claude https://promptcube3.com/en/tags/claude/ ’s visual processing with Stockfish’s engine evaluation, I built a workflow that takes my live audio notes or simple text prompts and generates a fully commented video of my recent Lichess games. It’s not instant, but it captures the actual decision-making process rather than just highlighting tactical blunders. How the workflow operates The core idea is to bypass standard PGN injection. Instead, I provide Claude with screenshots or visual representations of the board state alongside my voice notes describing my thought process. The prompt is intentionally vague, like “analyze my last lichess game.” Claude handles the heavy lifting by orchestrating a local Stockfish instance to evaluate positions while interpreting my commentary. Here is the basic logic flow I used in the skill.md file: Step 1: Fetch the last game ID and PGN via Lichess API curl -s "https://lichess.org/api/game/user/$USER" | jq -r '.games 0 .id' Step 2: Run Stockfish analysis on specific moves stockfish << EOF uci isready setoption name Hash value 64 position fen rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 eval EOF Step 3: Combine engine evals with user audio transcript Step 4: Generate video using ffmpeg with overlay text The system doesn’t just spit out evaluations. It reflects on my own thinking during the game. If I hesitated on a knight fork because I was tired, the analysis notes that fatigue pattern. That makes it a teaching tool rather than just a calculator. The cost and time trade-off This isn’t a lightweight script. Running a full game analysis burns through tokens quickly because the model processes multiple visual states and cross-references engine lines. In my last session, analyzing a single 40-move game took roughly an hour to complete. The token usage added up to about $15 at current API rates. That price tag is steep for casual play. However, the output is a memorable video file where every key moment is annotated with both engine stats and my original intent. It’s far more pleasant than clicking through endless Stockfish branches in a browser tab. Why this matters for learning Most players ignore the psychological aspect of their games. We look at the board, but we don’t capture the mental state. By integrating audio notes, this Claude Code skill preserves the “why” behind the moves. It’s imperfect—the vision recognition can occasionally misread a piece orientation if the screenshot is cluttered—and the latency is high. But for serious study, connecting engine precision with human narrative creates a richer learning loop. If you want to try it yourself, ensure your API quota can handle the load. The token burn is real, but the resulting annotated video is something you can revisit without needing the board state open. It turns a static replay into a documented case study of your own improvement. Next Claude Code skill turns chess audio into commented video → https://promptcube3.com/en/threads/9651/ All Replies (5) Want a live back-and-forth? Join the global AI chat room https://promptcube3.com/en/chat/ — login to talk. Chess.com does engine analysis, but using Claude Code's vision on the board instead of PGN data is a different beast. Skipping the mechanical PGN input for vision is a bold move, but integrating Stockfish keeps the chess analysis grounded. Forcing Claude Code to use vision instead of raw PGN is the interesting part; Stockfish-backed commentary feels much more useful.