thesis-export-docx

thesis-export-docx is a command for Claude Code from idoforgod/Dissertation-Simulator-AgenticWorkflow. It costs 0 tokens per session (391 once invoked), scanned A, original, MIT.

A tool that combines Korean thesis translation files into one Word document. It previews the chapter order before creating the final document.

In plain words
What is it for?
Use it to merge translated Korean chapters, confirm their order, and produce a DOCX file or Markdown fallback.
Why use it?
It removes the manual work of joining translated chapters and helps catch ordering problems before export. If the required translations are missing, it reports that they must be completed first.

Command for Claude Code

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 commands/idoforgod/dissertation-simulator-agenticworkflow/thesis-export-docx
Clone the repo
git clone --depth 1 https://github.com/idoforgod/Dissertation-Simulator-AgenticWorkflow

Made for: Claude Code.

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-export-docx

README.md
[![agentmods](https://agentmods.dev/badge/commands/idoforgod/dissertation-simulator-agenticworkflow/thesis-export-docx.svg)](https://agentmods.dev/commands/idoforgod/dissertation-simulator-agenticworkflow/thesis-export-docx)
Your own site
<a href="https://agentmods.dev/commands/idoforgod/dissertation-simulator-agenticworkflow/thesis-export-docx"><img src="https://agentmods.dev/badge/commands/idoforgod/dissertation-simulator-agenticworkflow/thesis-export-docx.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 391 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 $0.00000 $0.00391
Opus 5 $0.00000 $0.00196
Sonnet 5 $0.00000 $0.00078
Haiku 4.5 $0.00000 $0.00039

Measured yesterday against content hash a4b0bb8806c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

thesis-export-docx 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 yesterday.

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.

.claude/commands/thesis-export-docx.md · 54 lines

What it actually says

Thesis Export DOCX

Generate a consolidated Korean thesis Word document from translation files.

Protocol

Step 1: Identify Project

ls thesis-output/ 2>/dev/null

If multiple projects exist, ask the user which project to export.

Step 2: Verify Translations Exist

ls thesis-output/{project}/translations/step-*-*.ko.md 2>/dev/null | head -20

If no Korean translation files found, inform the user that translations must be completed first (Phase 6).

Step 3: Preview Chapter Order (Dry Run)

python3 "$CLAUDE_PROJECT_DIR"/.claude/hooks/scripts/merge_ko_to_docx.py \
  --project-dir "$CLAUDE_PROJECT_DIR/thesis-output/{project}" \
  --dry-run --json

Display the chapter ordering to the user for confirmation. If the order is wrong, the user can create deliverables/chapter-order.json with the correct file list.

Step 4: Execute Merge

python3 "$CLAUDE_PROJECT_DIR"/.claude/hooks/scripts/merge_ko_to_docx.py \
  --project-dir "$CLAUDE_PROJECT_DIR/thesis-output/{project}" \
  --json

Step 5: Report Results (Korean)

Display:

  • Number of chapter files merged
  • Chapter ordering used
  • Output file locations (DOCX and/or Markdown fallback)
  • If pandoc was not available, provide installation instructions

Notes

  • This command does NOT modify the SOT (session.json). It is safe to run on any project at any stage.
  • For automated workflow execution (Step 211), the thesis-orchestrator handles SOT advancement separately.
  • To customize chapter ordering, create deliverables/chapter-order.json as a JSON array of filenames.
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. yesterday First seen · 54 lines · 0 tokens per session scan A a4b0bb8806c6

Subscribe to this mod's changes

thesis-export-docx is a command published in the GitHub repository idoforgod/Dissertation-Simulator-AgenticWorkflow (107 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 391 tokens. 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-09-03.