framework_eng/skills/tool-usage/content-generation/docx-convert/SKILL.md
For converting DOCX to Markdown with images
npx skillsauth add steelmorgan/1c-agent-based-dev-framework docx-convertInstall 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.
A thin wrapper around pandoc for converting .docx to GitHub-Flavored Markdown while extracting embedded images. It also post-processes the result: fixes image paths and converts HTML tables (which pandoc leaves unchanged for complex cases) into Markdown pipe tables.
| Situation | Action |
|----------|----------|
| The customer sent a spec in .docx, and it needs to be put into the repository as md | docx2md.sh input.docx |
| Vendor documentation is in Word, and it needs to be fed to the agent | docx2md.sh input.docx output_dir |
| A document with complex tables and styles - pandoc skips them | mammoth (see below) |
| Only the text portion is needed, without images | pandoc input.docx --to=gfm -o out.md directly |
pandoc --to=html, the script is not required.pandoc --to=pdf (LaTeX is required), the script is not required.pandoc ≥ 3.x - the main converterpython3 - post-processing (html_tables_to_md.py)mammoth (python) - an optional alternative for complex tables# Результат рядом с файлом, в каталоге с тем же именем без расширения
bash framework/skills/tool-usage/content-generation/docx-convert/docx2md.sh "/path/to/file.docx"
# С указанием выходного каталога
bash framework/skills/tool-usage/content-generation/docx-convert/docx2md.sh "/path/to/file.docx" "/path/to/output"
Result:
output/document.md - text in GFM with pipe tablesoutput/images/ - all images from the document (png/jpeg/emf/wmf)When used from a project where the framework is installed via symlinks, the script path is:
.claude/skills/docx-convert/docx2md.sh.
pandoc input.docx --from=docx --to=gfm --wrap=none -o output.md
pandoc input.docx --from=docx --to=gfm --wrap=none \
--extract-media=./images \
-o output.md
python3 -c "
import mammoth, pathlib
result = mammoth.convert_to_markdown(open('input.docx', 'rb'))
pathlib.Path('output.md').write_text(result.value)
"
.doc (old format) - pandoc accepts only .docx. Resave it first through LibreOffice/Word.html_tables_to_md.py) handles only HTML tables and <img> tags left by pandoc; the rest of the HTML is kept as-is.development
1C server maintenance webhooks: container restart and external component cache cleanup
development
Interactive DAP debugging of a single BSL procedure
tools
Rules for using RLM tools for project search and navigation in 1C/BSL
development
Creates web applications and routes on Winow (a web server on OneScript and Autumn). Use when working with a web server on OneScript, routing, or Winow controllers.