Logo de Chess Play

Chess Play

Comunidade
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.

Visão geral

Publicado porbrumar
Repositóriochess-postmortem-skills
Nome da habilidadechess-play
Estrelas
76
Forks
1
Arquivos incluídos
3
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 3

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por brumar no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Chess Play no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/brumar/chess-postmortem-skills/tree/main/skills/chess-play
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Chess Play em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Chess Play automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Chess Play não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo 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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Chess Play faz?

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.

Por que usar Chess Play no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Chess Play é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Chess Play no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/brumar/chess-postmortem-skills/tree/main/skills/chess-play. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Chess Play?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Chess Play?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Chess Play com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Chess Play é gratuita?

A habilidade é publicada no GitHub por brumar. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇