---
name: handoff-to-word
description: Hand a document drafted in the conversation to the office's Word template: clean Markdown with a stable heading plan, tables, citations and visible gaps, plus the two lines the person needs to paste it. Use only for a text that was not written with draft_deliverable, which the dossier page exports to Word itself. Trigger phrases: "mets-le en forme pour Word", "prepare pour le gabarit", "export pour Word", "paste into Word".
---

# Handoff to Word

Use this skill when a document was drafted in the conversation (a terrain chapter, a
note) and the office wants it in its own Word template. A document written with
`draft_deliverable` and `write_section` does not need it: the dossier page exports it to
Word under Livrables, headings and sources included; tell the user so.

Do not use it to write the document: it formats one that exists.

## What to produce

1. The document as Markdown with a stable plan: `#` for the title, `##` for chapters
   numbered as the office numbers them, `###` at most. No deeper level: Word templates
   rarely style a fourth.
2. Tables as Markdown tables with a header row; one table per subject, no merged cells.
3. Provenance marks kept exactly as the source skill wrote them: `(#xxxxxx)` for dossier
   entries, `[CODE section, p. N]` for clauses, `(fait: topic.key)` for site facts. They
   are what the reviewer checks; a Word document without them is prose.
4. Gaps kept as `[A etablir : ...]`, `[A confirmer : ...]` or `[A convenir : ...]`, on
   their own line when they replace a paragraph, so they show up in a search.
5. A final section **Sources** listing every clause cited with its edition and every
   attachment cited with its page.

## Then tell the user, in two lines

- How to paste: in Word, paste as text, then apply the template's heading styles to the
  `#` levels (or use the office's Markdown import when it has one).
- That the dossier page produces the verification note as a PDF, hashed and
  timestamped, and that the two documents should agree.

## Rules

- Change nothing in the content: no rewording, no reordering, no gap filled.
- Keep the closing sentence of the source document ("Document prepare par un agent...").
- The office may have its own `handoff-to-word` skill (`list_skills`), for instance
  with its heading numbering or its table style: it replaces this one.
