# Thesis Template Apply — Template Edition (v2)

> Merge your thesis into a Word template you supply: rebuilt TOC and table/figure lists, chapter-based numbering, APA 7 reference layout, verified output. Cover auto-fill needs nine tokens in the template (one-time, ~5 min). Windows + Word.

Thesis Template Apply — Template Edition (v2) is a paid AI agent skill on Agensi by Frica Chai, in Writing & Content. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [Frica Chai](https://www.agensi.io/creators/frica-chai)
- Category: [Writing & Content](https://www.agensi.io/skills/writing-content)
- Version: 1.4
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/thesis-template-apply-template-edition-v2
- Tags: writing, education, thesis, word, docx, template, table-of-contents, list-of-figures

## About this skill

**Before you buy: the template needs nine placeholder tokens. The included demo template already has them; any other template needs a one-time setup of about five minutes. Without tokens the cover is not filled.**

**Your template stays the master — the skill does not imitate it.**

This skill merges a thesis into a Word template that already carries nine placeholder tokens. The included demo template does. The cover, header, footer, watermark, margins and styles come from that file, so they stay exactly as that file defines them. The skill does not redraw or copy a cover design.

One requirement: the template needs nine placeholder tokens (`{{TITLE}}`, `{{TITLE_EN}}`, `{{NAME}}`, `{{NAME_EN}}`, `{{ADVISOR}}`, `{{ADVISOR_EN}}`, `{{DATE}}`, `{{DATE_EN}}`, `{{BODY}}`) so the skill knows where to write. The demo template already has them. For another template you replace nine sample strings once — about five minutes — and the skill walks you through it. Full end-to-end testing has only been done on the demo template; other templates need a trial run.

Without tokens: the body is appended at the end, the TOC and table/figure lists are inserted under the existing headings, and headings, captions and tables are formatted — but the cover is not filled, and the template's own 致謝／摘要／ABSTRACT are left untouched.

### What it does

- **Template merge** — keeps the template's cover, watermark, headers, footers and VML text boxes; merges only the thesis body.
- **Bilingual cover** — fills the Chinese and English cover from tokens. Tokenized templates only.
- **Front matter** — keeps your 致謝, 摘要 and ABSTRACT, removes the thesis's own cover and old TOC, and keeps Roman page numbers before the body restarts at 1.
- **Three catalogs** — rebuilds the table of contents, list of tables and list of figures as real Word fields, including 致謝／摘要／ABSTRACT. Level 1 bold, level 2/3 regular, lists flush left.
- **Chapter-based numbering** — turns plain captions into real SEQ fields: `圖 3-1`, `表 4-2`. Each chapter restarts with its own number.
- **Typography** — KaiTi + Times New Roman, 12 pt, 1.5 line spacing, 2-character first-line indent. Figures stay flush left.
- **APA 7 references** — 0.5-inch hanging indent, 1.5 spacing, journal and volume in italics (English and Chinese), English entries sorted. Entries are not rewritten: author initials, DOIs and sentence case stay as written.
- **Single-line tables** — removes cell spacing and forces single-line borders after Word's last save, with repeating header rows.
- **Verification** — a read-only check that reports `RESULT=PASS` or the exact failures.

### How it works

1. Give the local path to the thesis `.docx`.
2. Give the local path to the template `.docx` — the demo template, or another template after the one-time token step.
3. The skill reads the existing cover first, so it only asks for the fields that are actually missing.
4. It runs the pipeline, polishes the catalogs and tables after Word's final save, and reports a PASS/FAIL line.

### Why not just prompt it yourself?

Word's TOC, TOF and SEQ fields are not plain text. A generic prompt produces a document that looks right until Word updates the fields — then the page numbers and figure numbers collapse. This skill writes the real fields, sets `updateFields`, and verifies the counts afterwards.

### Requirements

- Windows 10/11 with desktop Microsoft Word.
- Python 3.10+ with `python-docx`, `lxml`, `pywin32`.
- If Word automation is unavailable, the skill still writes the document and saves a `-fields-pending` copy, then reports `PARTIAL` instead of pretending it passed.

### Scope

The skill formats what is already in the thesis. It does not write missing chapters, rewrite the abstract, or judge whether the content is correct.

### Demo files

Synthetic — no real student data, no real university template:
https://github.com/fricachai/thesis-template-apply-demo-pack/releases/tag/v1.0.0

Download `demo-template.docx` and put it in the same project folder as the thesis.

### Privacy

Everything runs on your machine. The template and thesis are opened read-only; the skill writes a new file. No uploads, no telemetry.

## Requires

- Python
- Microsoft Word (desktop)

Windows desktop Word is needed for the automatic field update and PDF export. Without Word, the document is still produced but the TOC and figure numbers stay pending until you open it and press Ctrl+A, F9.

## Known limitations

Requires Windows with desktop Word for field updates. Does not support macOS/Linux automation. Cannot migrate charts, SmartArt, or embedded equations from source.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Thesis Template Apply — Template Edition (v2) skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill differ from simply asking an AI to format my document?

This skill automates the migration of raw text into complex university Word templates, specifically rebuilding technical academic components like chapter-prefixed captions (e.g., Figure 1-1) and automated Tables of Contents that manual prompting often breaks.

### What are the system requirements for running this thesis formatting skill?

This skill requires a Windows environment with Microsoft Word installed, as it uses COM automation (pywin32) to reliably update Word's internal fields and catalogs. It is currently not compatible with macOS or Linux.

### Will my charts and SmartArt be preserved during the template migration?

The skill can process standard text, images, and basic tables; however, it cannot migrate complex OLE objects, SmartArt, or live Excel charts from your source document due to the way Word's XML structure handles these elements.

### Can this skill handle bilingual thesis covers and specific school metadata?

Yes. The skill fills the Chinese and English covers from template tokens: thesis title, student name, advisor name and date. It reads the existing cover first, so it only asks for the fields that are actually missing. A plain template without tokens keeps its own cover, and the body and catalogs are still rebuilt.

### What exactly is included in the purchase of this skill?

You receive the complete Python-based formatting pipeline, integration scripts for your AI agent, and documentation on how to map your specific school's template fields for the best results.

### Will it work with my school's template?

Only after a one-time token step. The skill needs nine placeholder tokens in the template ({{TITLE}}, {{NAME}}, {{ADVISOR}}, {{DATE}}, {{BODY}} and the rest). The included demo template already has them. For another template you replace nine sample strings once, about five minutes. Without tokens the body and catalogs are still rebuilt, but the cover is not filled. Full end-to-end testing has only been done on the demo template, so run a copy first.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
