codex/skills/pdf-to-markdown/SKILL.md
Convert local PDF files or folders of PDFs into Markdown files using the bundled converter in this skill. Use this when the task is PDF-to-Markdown conversion inside the current workspace. Do not use it for OCR-heavy scanned PDFs, image extraction, or unrelated PDF summarization.
npx skillsauth add tkersey/dotfiles pdf-to-markdownInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the user wants one or more local PDF files converted into Markdown files in the current workspace.
This skill is fully self-contained. The conversion pipeline lives inside scripts/convert_pdf_to_markdown.py, and the PDF parser dependency is vendored under scripts/vendor/python/pypdf. The skill does not install packages, call npm, or fetch code at runtime.
The implementation is intentionally modeled on the structure-detection pipeline from jzillmann/pdf-to-markdown, but packaged as a repo-local Codex skill rather than a browser app. See references/upstream-notes.md for the design lineage and the main behavioral differences.
python3 scripts/convert_pdf_to_markdown.py ...The script accepts either:
Flags:
--input <path> or -i <path>: required. Accepts a PDF file or directory.--output <path> or -o <path>: optional.--recursive or -r: recurse through nested folders when the input is a directory.--overwrite or -f: overwrite existing Markdown output files.--helpFor a single file input:
--output is omitted, write a sibling Markdown file next to the PDF using the same base name.--output points to a directory, write <basename>.md inside that directory.--output looks like a .md file path, write exactly there.For a directory input:
--output is omitted, write to a sibling directory named <input>_markdown.python3 scripts/convert_pdf_to_markdown.py --input <...> [--output <...>] [--recursive] [--overwrite]The bundled converter aims to recover document structure rather than only dumping plain text. It includes heuristics for:
Read references/upstream-notes.md for the implementation rationale and references/THIRD_PARTY_NOTICES.md for vendored dependency notices.
tools
Invokes Apple's macOS 27 fm command-line tool from a local Mac to use the on-device system model or Private Cloud Compute, including instructions, image prompts, schema-constrained JSON, and noninteractive automation. Use when the user asks to run Apple Foundation Models through fm, compare system versus pcc, generate structured output, or automate fm without Swift or an app.
development
Compile historical Codex sessions into governed counterfactual evidence, evaluate an existing owner-applied candidate through blinded paired HCTP trials, and fold observable evidence into RUN, OBSERVE, or STOP. Use for `$hylo`, CRF extraction, counterfactual replay, source-governed direct or historical trials, sealed evidence, paired baseline/candidate evaluation, causal frontiers, or evidence-governed improvement.
testing
Ensure a `ledger` command is available on PATH; materialize, validate, record, replay, and project requested Actuating artifacts without taking semantic or execution authority; coordinate the shared Learnings/Synesthesia/Negative Ledger lifecycle checkpoint and repo-local source-memory reconciliation; address Universalist plans and receipts; and perform pure artifact validation.
testing
Classify and quotient review findings, failing tests, incidents, bug reports, migration failures, and other witnessed falsifiers against accepted intent and the current Construction. Author counterexample-set/v1 without selecting repairs, counting review credit, or granting mutation.