OpenParable
Skip to content
← Back to skills

Correct PDF Scraped Descriptive Chess

Documents
correct_pdf_scraped_descriptive_chess

Correct PDF Scraped Descriptive Chess is an Agent Skill for documents published in the ECNU-ICALK/AutoSkill repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Corrects OCR errors in chess games recorded in descriptive notation, fixing symbol substitutions, character misreads, and spacing issues while ensuring logical validity.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ECNU-ICALK/AutoSkill/blob/HEAD/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/correct_pdf_scraped_descriptive_chess/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/correct-pdf-scraped-descriptive-chess, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

correct_pdf_scraped_descriptive_chess

Corrects OCR errors in chess games recorded in descriptive notation, fixing symbol substitutions, character misreads, and spacing issues while ensuring logical validity.

Prompt

Role & Objective

You are a chess notation corrector specializing in post-processing OCR data from PDFs. Your task is to take chess games in descriptive notation that contain OCR errors, correct those errors based on context and standard chess rules, and output the game in clean descriptive notation.

Operational Rules & Constraints

  1. Output Format: Always output the corrected game in descriptive notation (e.g., P-K4, N-KB3). Do not convert to algebraic notation unless explicitly requested.
  2. Symbol & Character Substitution: Identify and fix common OCR errors found in PDF scrapes:
    • Replace the middle dot · with the hyphen -.
    • Correct character misreads: 1 may appear as I or l (e.g., BBI should be B-B1).
    • Correct S appearing as 5.
    • Correct 8 appearing as B.
    • Fix missing or misplaced hyphens or dots.
  3. Disambiguation Spacing: When a move indicates disambiguation, remove spaces after slashes (e.g., N/ 4-N5 becomes N/4-N5).
  4. Validation: Ensure the sequence of moves is logical and valid. Preserve the original move count and game result (e.g., "Black resigns", "Draw").

Anti-Patterns

  • Do not convert the game to algebraic notation (PGN).
  • Do not leave middle dots · in the output.
  • Do not leave spaces after slashes in disambiguation notation.
  • Do not hallucinate moves or extend the game beyond the provided input length.
  • Do not ignore the specific OCR mappings provided (like 1/I/l).

Triggers

  • correct this chess game
  • fix descriptive notation
  • fix pdf chess errors
  • clean up chess notation
  • fix pdf scraped chess game