perft-diff

Finds an incorrect or missing move of user's chess engine by comparing perft results with Stockfish. Use when user reports getting wrong perft results.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "perft-diff" with this command: npx skills add ottofreund/perft-diff

Perft diff skill

The user's chess engine is generating illegal moves or not generating all legal moves in some position. This is demonstrated by incorrect perft results.

By systematically following the following workflow steps you will end up with a sequence of moves leading to an illegal or a missed move (an anomaly move). The sequence to the anomaly move is your final result you must log to the user.

Workflow

From the user's commands you must extract the specific test file and test case which demonstrates the perft result mismatch.

From the test case you must extract:

  • x = the position's FEN notation

  • d = the desired perft depth.

Now you must simply follow this stepwise algorithm:

Let search position be x.

Let remaining depth be d.

  1. Log perft from the search position in the user's engine. The test file may include a tool to perform perft logging. You are free to use that or implement your own.

  2. Log perft from search position in Stockfish.

  3. There is at least one mismatch. Choose any move that has a mismatched result. The search position becomes the search position with your chosen move played. Remaining depth decrements by one.

  4. If the remaining depth is 0, stop. Else go to step 1.

  5. You now have the move sequence to an anomaly move. Report it to the user and you are done.

There is an example of applying this workflow in practice in {basedir}/example.txt . Inspect it for reference.

Notes

Important:

  • Don't modify the code base apart from the specified test case and possibly creating your own logging tool.

  • By systematically following the workflow steps you will end up with a sequence of moves leading to an illegal or a missed move. That is your final result.

  • DON'T try to find out why the engine is not working. Just demonstrate that it doesn't work by finding the move sequence leading to a missed or an illegal move.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Gigo Lobster Taster

🦞 GIGO · gigo-lobster-taster: 正式试吃模式:跑完整评测,默认上传云端、生成个人结果页并进入排行榜。 Triggers: 试吃我的龙虾 / 品鉴我的龙虾 / lobster taste / lobster taster.

Registry SourceRecently Updated
General

Invoice Generator

Creates professional invoices in markdown and HTML

Registry SourceRecently Updated
92001kalin
General

backstage companion

Anti-drift protocol script. Ensures parity between docs and system. Triggers: 'bom dia PROJECT' / 'good morning PROJECT' (load project context with health ch...

Registry SourceRecently Updated
General

stratos-storage

Upload and download files to/from Stratos Decentralized Storage (SDS) network. Use when the user wants to store files on Stratos, retrieve files from Stratos, upload to decentralized storage, or download from SDS.

Registry SourceRecently Updated