Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add jalpp/chessagine.skill
Or install specific skill: npx add-skill https://github.com/jalpp/chessagine.skill
# Description
Comprehensive chess analysis using the ChessAgine MCP. Use this skill when users request chess-related tasks including analyzing positions or games, studying openings, finding best moves, comparing with master/computer games, solving puzzles, building repertoires, reviewing user games from Lichess or Chessboard Magic, or any chess related request. Triggers on chess positions (FEN), PGN games, Lichess URLs, opening names, or general chess requests.
# SKILL.md
name: chessagine
description: Comprehensive chess analysis using the ChessAgine MCP. Use this skill when users request chess-related tasks including analyzing positions or games, studying openings, finding best moves, comparing with master/computer games, solving puzzles, building repertoires, reviewing user games from Lichess or Chessboard Magic, or any chess related request. Triggers on chess positions (FEN), PGN games, Lichess URLs, opening names, or general chess requests.
license: MIT
metadata:
author: jalpp
version: "0.0.2"
ChessAgine Skill
ChessAgine provides comprehensive chess analysis through 40+ specialized tools integrating Stockfish, Leela Chess Zero, Maia2, Lichess, Chessboard Magic, and multiple chess databases.
Core Workflow Principles
Always Visualize
Every position analysis must include visualization using generate-chess-board-view-artificat-html (2D default) or generate-dynamic-gameview-html (for games with move navigation).
Multi-Source Validation
For important positions, combine multiple data sources:
- Opening database (fast orientation)
- Engine analysis (best moves)
- Master games (practical validation)
- TCEC/Correspondence (computer/deep human perspective)
Right Engine for the Job
- Stockfish (depth 18-25): Best objective moves through brute-force calculation
- Elite Leela: Master-level human perspective (~2500 rating) for strategic insights
- Leela: Neural network for positional understanding
- Maia2 (rating 1100-1900): Human-like moves matching specific player strengths
Progressive Depth
Start with quick overview, deepen analysis only where critical:
- Quick check: depth 15-18
- Standard analysis: depth 20-22
- Critical positions: depth 25-30
Quick Start Workflows
Analyze Position
get-boardstate-for-fen(understand position)generate-chess-board-view-artificat-html(visualize)get-stockfish-multipv-analysis(3 lines, depth 22)fen-openingbook-lookup(if opening)get-lichess-master-games(master practice)- Apply chess principles from
get-chess-knowledgebase
Analyze Game
fetch-lichess-game(get PGN)parse-pgn-into-fens(extract positions)- Select 3-5 critical moments
get-stockfish-analysison critical positions (depth 20)generate-dynamic-gameview-html(navigable game view)
Study Opening
fen-openingbook-lookup(identify opening, common moves)get-lichess-master-games(master statistics)get-chessboardmagic-tcec-stats(computer evaluation)get-stockfish-multipv-analysis(5 lines, depth 25)- Fetch sample games from relevant database
Find Best Move
get-stockfish-best-move(tactical solution)get-stockfish-multipv-analysis(alternatives, 3 lines)- Cross-reference with
get-chessdb-analysis - Explain using
get-chess-knowledgebaseprinciples
Puzzle Training
get-puzzle-themes(show available themes)fetch-chess-puzzle(with theme/rating filters)generate-chess-board-view-artificat-html(present)- After attempt:
get-stockfish-best-move(verify) - Explain with chess principles
Tool Categories
Position Analysis
get-stockfish-analysis- Tactical evaluation (depth 18-25)get-stockfish-multipv-analysis- Show alternatives (3-5 lines)get-stockfish-best-move- Quick best move without full analysisget-leela-analysis- Strategic/positional evaluationget-elite-leela-analysis- Master-level positional understandingget-maia2-analysis- Human-like moves at specific rating (1100-1900)get-chessdb-analysis- Large database position lookup
Opening Research
fen-openingbook-lookup- Fast lookup in 12k position databaseget-lichess-master-games- Grandmaster game statisticsget-chessboardmagic-tcec-stats- Top computer engine statisticsget-chessboardmagic-corr-stats- Correspondence chess statistics
Game Analysis
fetch-lichess-game- Get game PGN from Lichessfetch-lichess-games- User's 20 most recent gamesget-chessboardmagic-games- User's Chessboard Magic gamesget-chessboardmagic-game-details- Detailed single gameparse-pgn-into-fens- Convert PGN to FEN listget-fen-map-lookup- Map moves to FENsget-stockfish-batch-analysis- Analyze multiple positions
Visualization
generate-chess-board-view-artificat-html- Single position (2D/3D)generate-dynamic-gameview-html- Full game with navigation
Move Validation
is-legal-move- Check move legality (SAN or UCI)get-boardstate-for-move- Get resulting positionget-boardstate-for-fen- Describe current position
Learning & Training
fetch-chess-puzzle- Random puzzle (filterable)get-puzzle-themes- Available puzzle themesget-chess-knowledgebase- Silman Imbalances, Fine's principles, endgame rulesget-chessagine-stater-prompts- Example analysis prompts
Repertoire
get-chessboardmagic-repertoires- User's repertoire listget-chessboardmagic-repertoire-details- Detailed repertoire linesfetch-lichess-studies- User's Lichess studiesfetch-lichess-study-pgn- Specific study in PGN
User Info
get-lichess-username- Current user's Lichess username
Common Request Patterns
| User Request | Workflow |
|---|---|
| "Analyze this position [FEN]" | Position Deep Dive (see references/workflow_patterns.md) |
| "Analyze my last game" | Get Lichess username β Fetch recent games β Analyze selected game |
| "What's the best move?" | Quick best move + alternatives + explanation |
| "Help me study the Sicilian" | Opening study workflow with multiple databases |
| "I'm stuck in this endgame" | Endgame analysis + knowledgebase principles |
| Lichess URL provided | Parse game ID β Fetch game β Full analysis |
| "Give me a tactics puzzle" | Puzzle training session with explanations |
Advanced Features
For detailed guidance on:
- Workflow patterns: See references/workflow_patterns.md
- Tool selection: See references/tool_selection.md
- API parameters: See references/api_reference.md
- Chess knowledge: See references/chess_knowledgebase.md
Best Practices
Performance Optimization
- Use batch analysis for 10+ positions
- Analyze fewer positions deeper vs many shallowly
- Start with opening book (fastest) before databases
User Experience
- Always visualize positions
- Explain evaluations in chess terms (not just numbers)
- Reference chess principles from knowledgebase
- Provide actionable advice
- Match analysis depth to user expertise
Error Handling
- Validate FEN format before tool calls
- Check move legality with
is-legal-movebefore analysis - Graceful fallbacks: book β ChessDB β Lichess β TCEC
- Handle missing user accounts gracefully
Key Reminders
- Always visualize: No position analysis without visualization
- FEN validation: Check format before API calls
- Progressive detail: Quick overview β selective deep dive
- Multi-source: Combine engines, databases, and principles
- User-focused: Match analysis to user's needs and skill level
# README.md
ChessAgine Skill
The ChessAgine skill enables Claude to be a chess buddy and analyst by leveraging 40+ specialized tools from the ChessAgine MCP server.
Installation
- Download
chessagine-v0.0.2.skillfrom this repository - Open Claude Desktop
- Go to Settings β Capabilities β Skills
- Click Add Skill and select the
chessagine.skillfile - Restart Claude Desktop
Usage
Simply ask Claude about chess:
- "Analyze this position: rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1"
- "Review my last Lichess game"
- "Help me study the Sicilian Defense"
- "Give me a tactics puzzle on pins"
- "What's the best move here?"
Requirements
- Claude Desktop (latest version)
- ChessAgine MCP Server installed and running
Features
- Multi-engine analysis with Stockfish, Leela, and Maia2
- Game review from Lichess and other sources
- Opening preparation with master game statistics
- Interactive puzzle training across 100+ themes
- Position visualization with 2D/3D boards
See in action
With ChessAgine position analysis skill + MCP server Claude can analyze chess positions

Authors
@jalpp
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.