Chess Best Move
Suggests the optimal chess move given a board state, leveraging advanced game theory and analysis.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add chess-best-move npx -- -y @trustedskills/chess-best-move
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"chess-best-move": {
"command": "npx",
"args": [
"-y",
"@trustedskills/chess-best-move"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill analyzes chess board images to determine the best possible move(s) based on game theory and position analysis. It avoids simply matching images to known puzzles by systematically detecting pieces, validating their positions, constructing a standard FEN notation representation of the board, and then using a chess engine or library (like Stockfish or python-chess) to calculate legal moves. The skill can identify multiple winning moves if required by the task.
When to use it
- When you need to determine the optimal move in a given chess position from an image.
- For tasks requiring identification of "mate-in-N" solutions (checkmates within a specific number of moves).
- When needing to find all valid winning moves, not just one.
- To ensure accurate move suggestions by avoiding pattern matching and focusing on board analysis.
Key capabilities
- Image Analysis: Detects the chess board grid, piece positions, and board orientation from an image.
- Piece Identification: Identifies each piece type (King, Queen, Rook, Bishop, Knight, Pawn) and color (white/black).
- FEN Notation Generation: Constructs a standard FEN (Forsyth–Edwards Notation) representation of the chess position.
- Position Validation: Validates the detected board state against chess rules using libraries like python-chess.
- Move Calculation: Uses chess engines or libraries to enumerate legal moves and evaluate their quality.
Example prompts
- "Analyze this chess image and suggest the best move."
- "What are all the possible winning moves in this chess position?" (accompanied by an image)
- “Find a mate-in-3 solution from this chess board.” (accompanied by an image)
Tips & gotchas
- The skill relies on accurate image analysis; ensure the input image is clear and well-defined.
- Pay close attention to task requirements regarding output format (move notation, multiple solutions).
- If the skill reports errors, it may indicate issues with piece detection – review the initial image analysis steps.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.