Subchapter 91.1
references/setup.mdMarkdown2 KBView on GitHub
Follow these steps exactly, in order, before running scripts/convert_word_to_md.py
for the first time in a given environment. Don’t skip steps or improvise
alternatives — they’re written to be deterministic and safe to re-run.
python --versionwinget install --id Python.Python.3.12 -ebrew install python@3.12sudo apt-get update && sudo apt-get install -y python3 python3-pip python-is-python3python -m pip --versionpython -m ensurepip --upgradeUse the scripts/requirements.txt file bundled with this skill to install a pinned,
known-good version of the dependency:
python -m pip install -r scripts/requirements.txtThis pulls in markitdown[docx] (MarkItDown’s Word conversion dependency, which
includes mammoth for .docx file parsing). No extra package is needed — this
skill’s script uses MarkItDown’s built-in Word converter.
python -c "from markitdown import MarkItDown; print('markitdown OK')"Expect to see markitdown OK printed with no errors. If you see
ModuleNotFoundError: No module named 'markitdown', repeat step 3 — pip may
be installing into a different Python environment than the one being
invoked (check python -m pip --version shows the same path as python --version‘s interpreter).
convert_word_to_md.py itself also checks for markitdown at startup and
prints a pointer back to this file if it’s missing, so re-running setup is
safe and idempotent..docx is supported by this skill. Legacy binary .doc files are
out of scope — ask the user to re-save the file as .docx (e.g., via
Word’s “Save As”) if one is encountered.