vitogit/pgn-tactics-generator ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple Python tool that takes a PGN file of chess games and turns it into a new PGN full of tactics puzzles.
I want to be able to point it at my own games, or download games from Lichess by username or tournament id, then run one command and get a tactics.pgn file I can open in a chess app or study. It should use Stockfish to find tactical moments, and let me control how deep it analyzes so I can trade off speed and accuracy. Make the defaults fast and easy, but include a few options like quiet mode, choosing the input PGN, and whether to be strict about only keeping clear tactics.
Keep it practical and lightweight, with a clear command line flow and helpful errors if Stockfish or the PGN file is missing. If needed, look up current docs online for Lichess or Stockfish behavior.
Are you gonna build this?
make sure you review the code using coderabbit