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.
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- chessguardian
- description
- 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.
03 SKILL.md 正文
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
- POST
/api/live/startwith{"mode": "ai"} - GET
/api/live/<id>/qr→ save to outbound media - Send QR image + live link to user
Make a move for the user
- POST
/api/live/<id>/movewith the move in SAN (e.g. "e5", "Nf6", "O-O") - Show the AI analysis and Stockfish's reply
- 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
- Generate an HTML file using chessboard.js with the FEN from game state
- Screenshot with Playwright:
npx playwright screenshot --browser chromium --viewport-size=440,520 board.html output.png - Send the image to user
Dependencies
- Python 3 with
chessandrequestspackages - 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>
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.