Use this task family when the user wants page truth.
.docxDefault evidence: rendered truth + structure truth.
Rendered evidence judges the problem. Structure evidence helps explain the cause.
python3 <skill_dir>/scripts/docx_to_pdf.py --input <input.docx> --output /tmp/docx-render.pdf
Then inspect the generated PDF or derived page artifacts from inside docx. Rendered truth
must stay in this skill so DOCX page diagnosis and repair are all-in-one.
python3 <skill_dir>/scripts/render_docx_pages.py <input.docx> --output-dir /tmp/docx-pages
This route is valid only when full-fidelity rendering requirements are met. If the required render toolchain is missing, block and report the missing dependency. Do not degrade to a lower-fidelity preview path.
After page inspection, write down the observed rendered symptoms and produce the rendered report from
inside docx:
python3 <skill_dir>/scripts/read_docx_structure.py <input.docx> --json > /tmp/docx-structure.json
python3 <skill_dir>/scripts/rendered_report.py \
--pdf /tmp/docx-render.pdf \
--pages-dir /tmp/docx-pages \
--structure-json /tmp/docx-structure.json \
--issue-file /tmp/rendered-issues.json \
--format markdown > /tmp/rendered-report.md
The exact issue-file format and output contract are defined in rendered-delivery.md.
Return:
artifactSummary: PDF / PNG artifact inventorypageIssueSummary: each issue must name pages, severity, and visual symptomstructureCauseAlignment: for each issue, align the symptom to structure signalslikelyStructuralCauses: explain why the structure signals matterrecommendedChecks: tell the next operator what to verify or rerenderTypical issue classes that must use this format:
layout_overflow_or_clippingtemplate_fidelitytoc_layout_or_updateheader_footer_mismatchpage_number_wrongextra_blank_pageDelivering only the PDF or page PNG directory is incomplete. Artifact generation is evidence collection, not the rendered-truth answer.
light
Do not stay in pure XML once the task is about page appearance. XML is evidence, not the judge. Do not treat a generated PDF or PNG folder as the final deliverable. The final deliverable is the page issue summary plus structure alignment.