frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://github.com/brumar/chess-postmortem-skills
49•brumar•2h 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.

Comments

IMTDb•2h ago
I am very interested in this, but it looks like the video link gives 404
brumar•2h ago
Weird, the video is supposed to be embedded. On my chrome desktop it displays properly. EDIT: fixed
Madmallard•2h 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

brumar•1h ago
The jury is out for the effectiveness, it's hard to debate this subject. From my cognitive background I know very well how important the generative effect is for learning. Maybe I'll add features that leverage generative/testing effect one day. Anyway, clicking on stockfish branches can be quite a passive activity too if done badly. I don't know how to do that well to be honest. My goal is often to just to understand what I missed, full stop.

For the sycophancy, I can say I did not feel that at all. When stockfish says your move suck, claude would have a hard time saying the opposite (no "you are absolutely right" when I am not).

Madmallard•1h ago
Generative AI is really good at making you feel like you understand a lot without actually making you understand anything in-depth

Because lengthy difficult cognitively intensive labor is required for the brain to actually change its structure and connections

brumar•1h ago
Very true. I like to think AI somehow optimizes for "efficient vagueness", which is bad news for our brain.

Nonetheless, as many do, I often ask AI to explain me stuff. I know it's not perfect, but it's convenient, it's a trade-off to make.

WoodenChair•2h 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.
brumar•1h ago
This what I think too. I also think there are much more refined approaches than the one I tried here. From a cursory look, I saw there are both scientific litterature on the subject of mixing llms and tools like stockfish and some dedicated closed platforms that put that into action.

Let's make clear that I did not spend much time on this project. Ideally I would have tried to put other models into the mix, like maybe Maia to better see the game from a "real player" eyes and pinpoint where expected move and stockfish moves differ.

Anyway, to me, it's good enough to be usable and shared.

kuboble•1h ago
I'm an ok chess player (roughly OP level) and slightly more experienced claude code user.

I tried to use claude to analyze my games using stockfish - this is not a problem claude is good at.

I spent few hours (however admittedly around opus 4.8) with claude on this and it was unable to use stockfish in any useful way.

I think if the skill created by OP works then it's a real contribution. I'll give it a try.

brumar•39m ago
Thanks for trying it out! I'd be happy to see how it goes for you and compare our implementation notes if the analysis you got is not too bad.
qwend•2h 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.
qwend•2h ago
Was a bit to overzealous... Just read the readme. Looks pretty cool. Maybe I'll give it a try and see how it compares to the chess.com analysis (although I have to say that I never really use it).
porridgeraisin•2h ago
The elo of opus 5 models is 1300 or so. I wouldn't take chess lessons from a 1300.
brumar•2h ago
That was exactly my estimation when I played "raw" against Opus. But Opus with stockfish as a tool and much time available can, from what I experienced, generate good comments.
porridgeraisin•1h ago
Well yeah, of course. But also, analysing with stockfish is _also_ useless, unless you're a super GM.
kokoe•1h 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
Simpliplant•1h ago
Looks really cool, would love to try it but I'm on Mac so would appreciate Mac version.
brumar•1h ago
Thanks for sharing! So you gave stockfish to Claude too? Did you try other techniques?
pelican0•1h ago
Very cool work!

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

brumar•1h ago
Not by hand, no, the code was generated with claude code. The readme too, but with some extra efforts to avoid the awful ai generated readme.

It took multiple sessions to get to this result. At first I only generated annotated pgns and standalone html page inspired by lichess. The video generation was the cherry on top, it took few iterations too to fix issues and add markers and arrows. I only use consume the generated video these days, for the moment.

pelican0•56m ago
Makes sense, good use of the tools at hand. And the SKILL.md files, also generated similarly?
NietTim•1h 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.
yesitcan•42m ago
I find it funny that a video game (Balatro) is lumped with poker and blackjack.
TZubiri•59m 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

dverlaeckt80•54m 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.
michaelastreiko•46m 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.
brausepulver•45m 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.

skyfantom•19m ago
You say chess and I’m here to shamelessly promote my “coin chess” version:)

https://chesspoly.com/

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

https://github.com/brumar/chess-postmortem-skills
49•brumar•2h ago•31 comments

Show HN: Jev Plays Pokémon Red

https://jev-pokemon.vercel.app/
241•pancomplex•1d ago•97 comments

Show HN: Reladraw – A diagram language where you decide where to place things

https://github.com/reladraw/reladraw
3•jpwalsh234•1h ago•0 comments

Show HN: Spivak's Calculus formalized in Lean 4 – every theorem, every problem

https://github.com/stormj-UH/spivak-lean
2•jsLavaGoat•1h ago•0 comments

Show HN: Jev predicting your life choices

https://quiz.seek.ws/
2•sdrth•2h ago•1 comments

Show HN: Hacker Atlas - A map of what Hacker News talks about

https://hackeratlas.com/
76•andrearitossa•1d ago•24 comments

Show HN: I checked 1M free proxies – 1 in 5 working ones injected scripts

https://github.com/maximilianfeix/proxy-scraper
4•taventix•4h ago•1 comments

Show HN: Make math automatic with Mathy

https://gmays.com/making-math-automatic-with-mathy/
101•gmays•5d ago•35 comments

Show HN: Ekselio – Loveable for finance workflows (local first)

https://www.gptbeyond.com/try?home=1
18•kdautaj•21h ago•4 comments

Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design

https://github.com/devdotfast/whiteboard
407•sidharthkmenon•2d ago•138 comments

Show HN: Jevgpt – reinventing the wheel with another wheel

23•kunggaochicken•2d ago•2 comments

Show HN: Air-gapped file encryption as self-decrypting HTML page

https://cms-sfx-demo.apeleg.com/
84•emurlin•2d ago•30 comments

Show HN: Koi.rest – watch some fish and regain your balance

https://koi.rest
220•hxii•1d ago•60 comments

Show HN: Print Graph Paper

https://printgraphpaper.app/
4•artiomartiom•10h ago•0 comments

Show HN: AgentRun: DSL to turn agents into workflows

https://github.com/Parcha-ai/agentrun
47•miguelrios•2d ago•12 comments

Show HN: Treepeat – Code similarity detection using Tree-sitter

https://github.com/dsummersl/treepeat
69•91awebsi•4d ago•8 comments

Show HN: Agentic CUDA Kernel Optimizer

https://github.com/bertaye/agentic-cuda-optimizer
36•bertaye•1d ago•11 comments

Show HN: I discovered roads in the US across > 1000 themes

https://road-about-a-theme.pinedesk.biz/
12•91awebsi•1d ago•8 comments

Show HN: Recurse – Develop and deploy specialist agents faster

https://recurse.run
5•ozankabak•20h ago•4 comments

Show HN: Make cursed fonts like Times New Bastard

https://bastardica.mitpit.com
850•MitPitt•2d ago•123 comments

Show HN: Hamilton – a no-internet Android health dashboard, named after my dog

https://play.google.com/store/apps/details?id=com.gads.hamilton&hl=en_US
11•hamilton_app•1d ago•12 comments

Show HN: Gutcheck, grep for meaning with a local CPU model

https://github.com/sfmqrb/gutcheck
3•sfmqrb•13h ago•0 comments

Show HN: Jevlang. delegate every if/while condition to Jev

https://github.com/RoyWiggins/jevlang
4•roywiggins•15h ago•0 comments

Show HN: Avoid smooth spinners, use low-FPS spinners

https://nh2.me/low-fps-spinners/low-fps-spinners.html
23•nh2•1d ago•27 comments

Show HN: Most Hated Tools

https://www.mosthatedtools.app/
31•leonagano•2d ago•20 comments

Show HN: Drop – A rootless Linux sandbox with gVisor support

https://droprun.sh/
189•mixedbit•4d ago•63 comments

Show HN: Paper-docx – agent-native Python-docx fork with 78% fewer DOCX failures

https://github.com/paper-instruments/paper-docx
6•i_rush_carriers•23h ago•0 comments

Show HN: JevBench, a reproducible benchmark for typed decision models

https://benchmarkheaven.com/jev-models
148•florianstandhar•4d ago•38 comments

Show HN: Doom or Bloom, map your AI worldview

https://www.doom-or-bloom.com
56•transitivebs•1d ago•48 comments

Show HN: Tenjin – A Jev based x402 tool router for Claude Code

https://github.com/BackTrackCo/tenjin-agent
3•AliAbdoli•18h ago•0 comments