docx-thesis
Skill5 starsChanged 4 months agoMITView on GitHub
Write a thesis in Word without losing the discipline of a source-controlled workflow: author chapters in Markdown or LaTeX, convert with pandoc and a reference .docx that carries the department's styles, manage citations through Zotero with Better BibTeX so the .bib stays the source of truth, and handle the Word-specific submission checks (styles, table of contents, captions, tracked changes). Use when the department requires .docx, the supervisor comments in Word, or a LaTeX draft must become a Word document.
- Installs packages
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Finish in Word: only what pandoc cannot do: the title page from the template, the declaration page, updating the table of contents …
- Very specific: line 38
Zotero as a view: import references.bib (File → Import), re-import after changes.
- Distinctive: line 62
No tracked changes or comments left: Review → Accept All, delete comments, then Inspect Document.
- Very specific: line 66
Run citation-verifier on the Markdown source, not the .docx, before every build.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Word is a delivery format, not an authoring format. Author in plain text under git, convert at the end of each cycle, and treat the .docx as a build artifact you regenerate rather than edit. This keeps citation-verifier, humanize, and the whole pipeline working while the department gets what it asked for.
Pipeline
chapters/*.md + references.bib + template/reference.docx + style.csl
│
└── pandoc ──▶ build/thesis.docx- Author each chapter in Pandoc Markdown (
[@key]citations,$math$,{#fig:x},Table: caption {#tbl:x}), or keep LaTeX and let pandoc read it (loses some packages; test early). - Reference document: open the department's template in Word, or create one with
pandoc -o template/reference.docx --print-default-data-file reference.docx, then set the styles (Heading 1..3, Body Text, First Paragraph, Caption, Table, Source Code, Bibliography) to the required fonts and spacing. Pandoc copies styles from this file; it ignores its content. - Citation style: download the CSL for the required style (IEEE, APA 7, Harvard) from the Zotero style repository (
https://www.zotero.org/styles/<name>) intostyle.csl. Build:
pandoc chapters/*.md \ --reference-doc=template/reference.docx \ --citeproc --bibliography=references.bib --csl=style.csl \ --filter pandoc-crossref \ --toc --number-sections \ -o build/thesis.docxpandoc-crossrefnumbers figures, tables, and equations and resolves@fig:x. Install withpip install pandoc-crossrefor the release binary.- Finish in Word only what pandoc cannot do: the title page from the template, the declaration page, updating the table of contents (right-click, Update field), page numbering sections. Keep a checklist so it is repeatable.
Zotero
The .bib remains the source of truth (bibtex-manager). Two ways to keep Zotero in step:
- Zotero as a view: import
references.bib(File → Import), re-import after changes. Simple, one-way. - Better BibTeX auto-export: install Better BibTeX, set its key format to
auth.lower + year + shorttitle(1,1).lowerso keys match the.bib, then right-click the thesis collection → Export → Better BibLaTeX with "Keep updated". Zotero becomes the editing UI and the file stays current. Use this when the supervisor shares a Zotero group.
If the supervisor insists on Zotero's Word plugin (live fields in the document), the .docx becomes the source for citations and the pipeline above stops applying to that document. Prefer the pandoc route; if the plugin is mandatory, export the bibliography from Zotero to references.bib weekly so citation-verifier still runs against the text.
Supervisor comments
Supervisors comment in Word. Extract them so the fixes go back into the Markdown source:
pandoc --track-changes=all reviewed.docx -t markdown -o reviewed.mdComments appear as [comment text]{.comment-start} spans; tracked changes as {.insertion} / {.deletion}. Apply each to the source, then rebuild. Reply to the comments in the next RESEARCH_LOG.md entry so nothing is lost.
From LaTeX
pandoc main.tex --bibliography=references.bib --citeproc --csl=style.csl -o build/thesis.docx handles standard LaTeX. Things that need attention: \input (use --resource-path), custom macros (define in a macros.tex pandoc can read, or -f latex+raw_tex), TikZ figures (export to PDF/PNG first), booktabs tables (pandoc flattens them; check widths), \cref (becomes plain references; pandoc-crossref does not read cleveref).
Submission checks
- Styles: every heading uses a Heading style (the ToC depends on it); body is one style throughout.
- Captions above tables and below figures per the template; numbered per chapter if required (
--number-sectionsand pandoc-crossref'schapters: truein the metadata). - Page count and word count per the regulations (
pandoc --lua-filter wordcount.luaor Word's count excluding references). - No tracked changes or comments left: Review → Accept All, delete comments, then Inspect Document.
- PDF/A export if required: File → Save As → PDF → Options → PDF/A.
- Fonts embedded (Word does this for PDF export by default).
Run citation-verifier on the Markdown source, not the .docx, before every build.
In this repository89 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- site/llms-full.txtllms.txt
- site/llms.txtllms.txt
- improveSkill
- academic-writingSkill
- benchmark-reportingSkill
- bibtex-managerSkill
- citation-graphSkill
- citation-verifierSkill
- design-science-methodologySkill
- experiment-reproducibilitySkill
- latex-toolkitSkill
- literature-searchSkill
- lit-review-synthesisSkill
- paper-readerSkill
- proofread-academicSkill
- research-figuresSkill
- research-methodologySkill
- research-questionSkill
- statistics-advisorSkill
- supervisor-updateSkill
- systematic-reviewSkill
- thesis-proposalSkill
- coolify-image-appSkill
- coolify-vps-baselineSkill
- deploy-verificationSkill
- express-prisma-coolify-imageSkill
- ghcr-coolify-pipelineSkill
- live-domain-cutoverSkill
- nextjs-coolify-imageSkill
- proxy-client-addressSkill
- vps-ops-toolkitSkill
- adr-writingSkill
- openapi-specSkill
- readme-writingSkill
- technical-writingSkill
- adversarial-reviewerSkill
- api-design-reviewSkill
- code-review-responseSkill
- create-agentSkill
- create-commandSkill
- create-hookSkill
- create-skillSkill
- db-migration-safetySkill
- dependency-upgradeSkill
- dockerfile-best-practicesSkill
- error-handling-patternsSkill
- executing-plansSkill
- explain-codebaseSkill
- fix-ciSkill
- github-actions-pipelineSkill
- grill-with-docsSkill
- incident-postmortemSkill
- logging-and-observabilitySkill
- parallel-agentsSkill
- performance-optimizationSkill
- refactoring-recipesSkill
- solid-principlesSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

