Show HN: A Claude Code skill to analyze your chess games

github.com

41 points by brumar 2 hours ago


Hello HN,

It started as an experiment: can Claude play chess properly if it uses vision instead of PGN notation? Somehow it can.

The next experiment was to see whether Claude + Stockfish could explain a game. Somehow it can too.

A few sessions later, I had a system that takes my live audio notes (or text, for that matter) and a vague instruction like "analyze my last lichess game", and gives me a commented video of the game. The result is not perfect and it takes time to deliver (an hour or so), but for me it is a much more pleasant and memorable experience than clicking around Stockfish branches. It burns tokens, so make sure you have enough quota. From the session logs, the last analyzed game would have cost around $15 at API prices.

The fact that it reflects on my own thinking during the game makes it interesting from a teaching point of view, so I thought it was worth sharing.

dverlaeckt80 - 24 minutes ago

As a chess player I feel this is fascinating although there are plenty of analysis options already on lichess on chess.com. Still, sometimes it is more about learning and curiosity. Well done.

brausepulver - 14 minutes ago

Does this give sensible analysis if you don't record your thinking out loud?

I've been using Elogram (https://elogram.gg/, made by a friend), which gives interpretability by showing how difficulty of a position changes with elo.

michaelastreiko - 16 minutes ago

Nice use of a skill for something concrete. I've been happier with AI helpers that spit out a short, checkable report than ones that try to be a whole coach.

WoodenChair - 2 hours ago

Just a note that this is not novel. Automatic analysis of chess games built on traditional engines has existed for a long time. Without using stockfish as a sidekick, this wouldn’t be interesting because of the poor play of LLMs, however having an LLM enhance the commentary is interesting and I suspect has already been done by chess.com for years.

kokoe - an hour ago

You could also download my free chess app that hooks up to Claude for real time game analysis or chat about the game. https://pwalessi.itch.io/chess-buddy

qwend - 2 hours ago

How does it work? Does it just use stockfish under the hood? I just remember the times when I tried to use an AI model to play chess and half of the time it either hung a piece or made an illegal move.

pelican0 - an hour ago

Very cool work!

Did you write the skills (text, and code) all by hand, or are those prompt outputs?

NietTim - an hour ago

Neat! I've been slopping together various games to have AI play them, balatro, poker, blackjack, it's just so fun. Was just thinking about chess, wondering if, if I gave them an unrestricted sandbox, they'd start using existing solvers or not. They're surprisingly good at doing cardcounting, by the way.

IMTDb - 2 hours ago

I am very interested in this, but it looks like the video link gives 404

TZubiri - 29 minutes ago

Writing skills files like this one don't seem to be the future of computing or AI, not by the quality, nor by the cost (15$ per usage?).

Also, you seem to have written the actual SKILL.md prompts themselves with AI? I don't know what to say that's insane, at least write the prompts? This idea of asking chatgpt to write the prompts for you is beyond lazy. Then presenting it as a project or tool of value to share to others is delusional.

Sorry for being harsh

techwizrd - 2 hours ago

[flagged]

physicalecon - an hour ago

[dead]

notloganhogg - 2 hours ago

[flagged]

Madmallard - 2 hours ago

"The result is not perfect" as LLMs are

"The fact that it reflects on my own thinking during the game makes it interesting from a teaching point of view, so I thought it was worth sharing." As AI the premium sycophantic scammer does

"but for me it is a much more pleasant and memorable experience than clicking around Stockfish branches"

And SO much less effective than doing the harder, more tedious feeling work

porridgeraisin - 2 hours ago

The elo of opus 5 models is 1300 or so. I wouldn't take chess lessons from a 1300.