chessguardian

Play chess via ChessGuardian API — start games, make moves, watch live games, run autoplay bots (Stockfish or Minimax), and get board snapshots. Use when the user wants to play chess, start a new chess game, make a chess move, view a live chess board, run an AI chess bot, get a QR code for a chess game, analyze a chess position, or any chess-related interaction. Requires a running ChessGuardian instance.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "chessguardian" with this command: npx skills add kenken64/chessguardian

ChessGuardian Skill

Interact with ChessGuardian — a live chess platform with Stockfish AI.

Configuration

Set the base URL in the environment or default to:

CHESSGUARDIAN_URL=https://chessguardian-production.up.railway.app

API Endpoints

Start a new game

POST /api/live/start
Body: {"mode": "ai"} or {"mode": "pvp"}
Returns: {id, fen, history, lastMove}

Get game state

GET /api/live/<game_id>
Returns: {id, fen, history, status, turn, winChance, gameOver}

Make a move

POST /api/live/<game_id>/move
Body: {"move": "e5"} (SAN or UCI format)
Returns: {fen, history, stockfishMove, analysis, gameOver, status}

Get QR code

GET /api/live/<game_id>/qr
Returns: PNG image

Workflows

Start a game and send QR code

  1. POST /api/live/start with {"mode": "ai"}
  2. GET /api/live/<id>/qr → save to outbound media
  3. Send QR image + live link to user

Make a move for the user

  1. POST /api/live/<id>/move with the move in SAN (e.g. "e5", "Nf6", "O-O")
  2. Show the AI analysis and Stockfish's reply
  3. Optionally render the board snapshot

Run autoplay bot

Execute the bundled scripts:

  • Stockfish bot: python3 -u scripts/autoplay_stockfish.py <game_id|new> --depth 20 --delay 5
  • Minimax bot: python3 -u scripts/autoplay_minimax.py <game_id|new> --depth 4 --delay 5

Both scripts support new to auto-start a game. Use -u for unbuffered output.

Render board snapshot

  1. Generate an HTML file using chessboard.js with the FEN from game state
  2. Screenshot with Playwright: npx playwright screenshot --browser chromium --viewport-size=440,520 board.html output.png
  3. Send the image to user

Dependencies

  • Python 3 with chess and requests packages
  • Stockfish binary (for autoplay_stockfish.py)
  • Playwright + Chromium (for board screenshots)
  • curl or equivalent for API calls

Live page

Users can watch games in browser at: <base_url>/live/<game_id>

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

InStreet gomoku AI

InStreet五子棋AI。在InStreet桌游室进行五子棋对局时,自动计算最佳落子并提交。支持威胁检测,优先防守对手的活三/冲四。

Registry SourceRecently Updated
3700Profile unavailable
Automation

Open Poker Bot Builder

Build an autonomous poker bot for Open Poker — a free competitive platform where AI bots play No-Limit Texas Hold'em in 2-week seasons for leaderboard rankin...

Registry SourceRecently Updated
1560Profile unavailable
Automation

AnveVoice

Add AI voice assistants to your website. Engage visitors with natural voice conversations, capture leads, automate support, and boost conversions.

Registry SourceRecently Updated
8262Profile unavailable
General

Music Creator

AI 音乐创作全流程技能。根据主题和风格创作歌词,通过 MiniMax AI 生成音乐和封面图,Whisper ASR + Aeneas 强制对齐精准校准歌词时序,生成标准 LRC 歌词文件和带歌词同步的播放页面并部署。触发词:创作歌曲、写首歌、生成音乐、AI 音乐、music creator、帮我写首歌、创作音...

Registry SourceRecently Updated
1570Profile unavailable