Logo di Chess Play

Chess Play

Community
brumar
chess-play

Play a chess game against the user over PGN files with the board rendered to images that Claude reads with vision. Use this whenever the user wants to play chess, sends a chess move in any notation (e4, Cf3, Nf3, "knight takes", O-O...), asks to continue an existing game in chess-games/, or says things like "your move", "lets play", "new game". Also use it mid-conversation when a lone chess move arrives — that IS the user playing. Claude plays on its own reasoning, with adversarial blunder-check subagents but NO chess engine.

Panoramica

Pubblicato dabrumar
Repositorychess-postmortem-skills
Nome della skillchess-play
Stelle
76
Fork
1
File inclusi
3
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 3

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da brumar su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Chess Play in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/brumar/chess-postmortem-skills/tree/main/skills/chess-play
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/brumar/chess-postmortem-skills.git /tmp/chess-postmortem-skills
mkdir -p .claude/skills
cp -r /tmp/chess-postmortem-skills/skills/chess-play .claude/skills/chess-play
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Chess Play in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Chess Play non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Chess Play non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Playing chess over PGN + rendered boards

You are playing a real game against the user. State lives in PGN files; you perceive the board by rendering it to PNG and reading the image with vision. You think with subagents, never with an engine.

Ground rules

  • No engine. Never run Stockfish or any engine to choose or check your moves during play, unless the user explicitly invites it. The game is Claude-vs-human on wits. (Post-game analysis is the chess-analysis skill's job.)
  • PGN is written in English SAN (Nf3, Bb4, O-O). The user may type moves in any language or style — French (C=Cavalier/knight, F=Fou/bishop, D=Dame/queen, T=Tour/rook, R=Roi/king), lowercase, "Cx" for an obvious capture, "takes on e5" — translate silently, and if a move is genuinely ambiguous (two knights can reach the square), ask.
  • Keep chat minimal by default: your move, the board image, nothing else. Put your analysis in the game's notes file, not the conversation. If this is a first game and the user seems to want commentary, mirror their energy — but the moment they ask for quiet, all thinking goes to the notes file only.

Setup (once per repo/machine)

Game data lives in chess-games/ at the repo root (create it if missing: games/, boards/, notes/ subdirs). Rendering needs python-chess + cairosvg in a venv:

sh
python3 -m venv .venv-chess && .venv-chess/bin/pip install python-chess cairosvg

(If the system pip can build wheels, a venv at the repo root named .venv-chess is the convention; gitignore it.) Copy scripts/render.py from this skill into chess-games/ if it is not already there.

The per-move loop

For every half-move, in order:

  1. Record the user's move: append to games/NNN-<white>-vs-<black>.pgn (create with proper headers on game 1 / new game). Run render.py games/<game>.pgn — it validates legality (an illegal SAN fails loudly; that once caught a hallucinated Qf8), prints the move list, FEN and side to move, and writes boards/<game>.png.
  2. Look at the board. Read the PNG. Confirm the position matches what you believe — squares, piece counts, the highlighted last move. If the image surprises you, the PGN or your mental model is wrong; fix before thinking.
  3. Think, then have your thinking attacked. Choose 1–2 candidate moves yourself, writing your reasoning to notes/NNN-claude-thoughts.md. Then spawn blunder-check subagents (below) on your top candidate. This step exists because game 001 was lost to self-confirmation: the played move was "audited" only along the lines the player was already looking at.
  4. Record your reply, re-render, look at the image again, update the notes file.
  5. Commit and push (when playing inside a git repo and this is a real game, not a test): one commit per full move, message like Game 001: 12. Bf4 Bb4.
  6. Send the board image to the user with a one-line caption ("After 12. Bf4 Bb4 — your move"). Your chat message: the move in the user's notation style, plus anything they asked for — no unrequested hints or analysis.

Blunder-check subagents (mandatory before every one of your moves)

Spawn two parallel subagents with the Agent tool, both engine-free. Give each: the current FEN, the full move list, your candidate move, and the instructions file references/referee.md (tell them to read it). Their jobs differ:

  • Referee A — refute the candidate. Adversarial: "Black up to now intends <move>. Find the refutation. Assume it loses; prove it."
  • Referee B — independent candidates. Gets the position but NOT your candidate: "propose the two best moves with lines". Divergence from your choice is information, not a veto.

If A finds a concrete refutation you can verify (replay the line yourself — subagents also hallucinate), pick a different move and re-check it. If B proposes something clearly stronger, adopt or note why not. For genuinely forced moves (only legal recapture, forced check response) and for well-known book moves in the first ~6 moves of mainstream openings, one referee or none is fine — don't ritualize; save the full protocol for positions where a blunder is actually possible.

If the Agent tool is unavailable in your context, run the referee protocol yourself, inline and explicitly: write the Referee A refutation attempt in the notes file as if you were a different person, checklist and all, before committing to the move. The posture matters more than the process isolation.

Multiple games & resuming

One PGN per game, numbered (001-..., 002-...). "Resume" = read the PGN, render, look, continue the loop. The notes file is your memory between sessions — keep a running plan section and a "standing lessons" section (e.g. game 001's: for every candidate move, list the lines the moving piece OPENS, not just the squares it attacks).

Endgame conditions

render.py prints game-over states. On checkmate/stalemate/draw, update the PGN Result header and the final *, announce the result, and offer a chess-analysis post-mortem.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Chess Play?

Play a chess game against the user over PGN files with the board rendered to images that Claude reads with vision. Use this whenever the user wants to play chess, sends a chess move in any notation (e4, Cf3, Nf3, "knight takes", O-O...), asks to continue an existing game in chess-games/, or says things like "your move", "lets play", "new game". Also use it mid-conversation when a lone chess move arrives — that IS the user playing. Claude plays on its own reasoning, with adversarial blunder-check subagents but NO chess engine.

Perché usare Chess Play su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Chess Play è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Chess Play in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/brumar/chess-postmortem-skills/tree/main/skills/chess-play. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Chess Play?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Chess Play?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Chess Play: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Chess Play è gratuita?

È pubblicata su GitHub da brumar. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇