feat(chess): add Chess.com adapter for game history and analysis#1447
Open
wldandan wants to merge 2 commits into
Open
feat(chess): add Chess.com adapter for game history and analysis#1447wldandan wants to merge 2 commits into
wldandan wants to merge 2 commits into
Conversation
Add chess/ adapter with commands: - chess stats <username>: player profile and ratings - chess games <username>: list games by month - chess game <gameId>: game details + optional PGN - chess pgn <gameId>: browser-based PGN extraction - chess analyze <gameId>: open in browser for visual analysis - chess snapshot <gameId>: structured game state for AI agents Chess.com API PGN has 20-30% corruption rate; browser-based fallback via Share → Copy PGN flow ensures reliable extraction. Also add docs/adapters/browser/chess.md documentation. Closes jackwener#1430
6e122e6 to
23db46d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a Chess.com adapter to OpenCLI enabling CLI access to player game history, statistics, and analysis.
Commands Added
opencli chess stats <username>opencli chess games <username>opencli chess game <gameId>opencli chess pgn <gameId>opencli chess analyze <gameId>opencli chess snapshot <gameId>Technical Approach
stats,games,game): Usesapi.chess.com/pub/endpointspgn,analyze,snapshot): Uses Chrome session via OpenCLI browser bridge — solves the 20-30% PGN corruption issueFiles Changed
clis/chess/utils.js- Shared helpersclis/chess/games.js- Game archivesclis/chess/game.js- Game details + PGN commandsclis/chess/stats.js- Player statisticsclis/chess/analyze.js- Browser analysis commandsclis/chess/chess.test.js- Unit testsclis/chess/README.md- CLI documentationdocs/adapters/browser/chess.md- Full docsTesting
Closes #1430