chess-best-move

Analyze chess board images to detect pieces and calculate the optimal move.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/Zurybr/lefarma-skills --skill chess-best-move-zurybr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chess-best-move
Source: https://github.com/Zurybr/lefarma-skills/tree/main/letta/benchmarks/trajectory-only/chess-best-move
Command: npx skills add https://github.com/Zurybr/lefarma-skills --skill chess-best-move-zurybr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires opencv-python, numpy, python-chess, stockfish, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of analyzing a chess position from an image and determining the optimal move, saving players the effort of manual analysis or relying on external tools for visual input.

Core Features & Use Cases

  • Image-based Chess Analysis: Analyzes images of chess boards to detect pieces and their positions.
  • Optimal Move Determination: Utilizes chess engines to calculate the best possible move from the detected position.
  • Use Case: A user uploads a photo of a chess game in progress and asks, "What's the best move here?" This Skill processes the image, validates the board state, and provides the optimal move.

Quick Start

Use the chess-best-move skill to analyze the provided image and suggest the best next move.

Frequently Asked Questions about chess-best-move

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the best chess move from an image?

To find the best chess move from an image, you need computer vision for piece detection and a chess engine like Stockfish to calculate the optimal move from the validated board state.

Can I use OpenCV and Stockfish to analyze a chess position from a photo?

Yes, you can use OpenCV to detect pieces and positions in a photo, validate the state against chess rules using python-chess, and integrate Stockfish to determine the optimal move.

Does computer vision chess analysis require manual board setup?

No, computer vision chess analysis automates board state input by processing images with OpenCV and NumPy, eliminating manual position entry and directly validating pieces against chess rules.

What is the best way to calculate chess moves from a visual board state?

The best way to calculate chess moves from a visual board state is combining image analysis for piece detection with a chess engine like Stockfish to receive valid positions and output move recommendations.

Why does image-based chess analysis need position validation?

Image-based chess analysis needs position validation to ensure detected pieces form a legal board state, allowing the chess engine to successfully process the position and calculate an accurate optimal move.

What are the limitations of using image analysis for chess move detection?

Limitations of image analysis for chess move detection include the accuracy of piece recognition during image processing, which must perfectly validate board states before the chess engine can determine the optimal move.