Логотип Chess Play

Chess Play

Спільнота
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.

Огляд

Видавецьbrumar
Репозиторійchess-postmortem-skills
Назва навичкиchess-play
Зірки
76
Форки
1
Файли в пакеті
3
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 3

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: brumar. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Chess Play у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/brumar/chess-postmortem-skills/tree/main/skills/chess-play
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Chess Play в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Chess Play, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Chess Play не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Chess Play у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Chess Play — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Chess Play у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/brumar/chess-postmortem-skills/tree/main/skills/chess-play. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Chess Play?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Chess Play?

Зі скількома забажаєте. У TypingMind ви можете використовувати Chess Play із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Chess Play?

На GitHub цю навичку публікує brumar. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇