thesis-md2docx

thesis-md2docx is a skill for Codex from haodongcui/Thesis-md2docx. It costs 65 tokens per session (693 once invoked), scanned A, original, MIT.

A workflow for maintaining a thesis in Markdown and exporting it to DOCX or PDF. Markdown is plain-text document format; DOCX and PDF are generated copies for submission or sharing.

In plain words
What is it for?
Use it to check thesis Markdown, convert formulas, export DOCX or PDF, choose a PDF backend, and inspect the final layout. It works with the thesis-md2docx repository.
Why use it?
It keeps the editable Markdown source separate from generated documents, while checking formulas, document structure, export settings, and final page layout. It is tailored to Xinjiang University undergraduate theses.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/haodongcui/thesis-md2docx/skill
Any agent
npx skills add haodongcui/Thesis-md2docx --skill skill
Clone the repo
git clone --depth 1 https://github.com/haodongcui/Thesis-md2docx

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for thesis-md2docx

README.md
[![agentmods](https://agentmods.dev/badge/skills/haodongcui/thesis-md2docx/skill.svg)](https://agentmods.dev/skills/haodongcui/thesis-md2docx/skill)
Your own site
<a href="https://agentmods.dev/skills/haodongcui/thesis-md2docx/skill"><img src="https://agentmods.dev/badge/skills/haodongcui/thesis-md2docx/skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 693 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.00693
Opus 5 $0.00032 $0.00347
Sonnet 5 $0.00013 $0.00139
Haiku 4.5 $0.00006 $0.00069

Measured 6d ago against content hash f5ae953d13ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

thesis-md2docx scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/check_env.sh, scripts/export_docx.sh, scripts/export_pdf.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Thesis MD2DOCX Skill

Use this skill when the user wants an agent to work with a thesis maintained as Markdown and exported with the thesis-md2docx repository.

Prefer Markdown as the source of truth. Treat DOCX/PDF files as generated outputs.

Repository

Expected repository:

https://github.com/haodongcui/Thesis-md2docx

If the current working directory is not the repository root, set:

export THESIS_MD2DOCX_REPO=/path/to/Thesis-md2docx

If the repository is missing, clone it first:

git clone https://github.com/haodongcui/Thesis-md2docx.git

Workflow

  1. Locate the repository root. It must contain md2docx.py.

  2. Check the environment:

    bash scripts/check_env.sh
    
  3. If the Markdown contains formulas, make sure the formula helper is installed:

    npm install --prefix thesis_md2docx/math/latex2omml_node
    
  4. Check the source Markdown structure. Load references/markdown-usage.md when the document is missing front matter, numbered chapters, references, figures, tables, or appendices.

  5. Export DOCX:

    md2docx thesis.md --out output --profile xju-undergraduate-thesis
    
  6. Export PDF and page images when layout preview is needed:

    md2docx thesis.md --pdf --pages --out output --profile xju-undergraduate-thesis --backend auto
    
  7. For the repository example, ./export-example.sh / .ps1 / .cmd should produce example/output/thesis-demo.docx, example/output/thesis-demo.pdf, and example/output/pages/page-*.png.

  8. Use the Word backend as the final layout baseline when available. Use LibreOffice for quick preview only.

  9. Remind the user that final Word/WPS inspection is still required for TOC refresh, pagination, figures, tables, formulas, and references.

References

  • references/markdown-usage.md: Markdown writing conventions and minimal structure.
  • references/pdf-backends.md: Word, LibreOffice, and auto PDF backend guidance.
  • references/troubleshooting.md: common warnings, formula dependency issues, and layout checks.

Read the full file on GitHub · 77 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 77 lines · 65 tokens per session scan A f5ae953d13ed

Subscribe to this mod's changes

thesis-md2docx is a skill published in the GitHub repository haodongcui/Thesis-md2docx (11 stars, last pushed 3mo ago), licensed MIT. It adds 65 tokens to every session and 693 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.