Choose exactly one route. Dispatch first, then go straight to the matching task guide. Do not start with backend preference, evidence classes, or validation profiles.
CREATE_DOCXAPPLY_TEMPLATEFor these two routes, stop routing once the intent is clear. Go directly to the task guide. The task guide will decide recipe family, backend, and acceptance in that order.
READ_CONTENTREAD_STRUCTUREREAD_RENDEREDEDIT_FILL_DOCXREPAIR_LAYOUTCOMPARE_TWO_DOCXUser asks for a DOCX task
|
+-- Is the main goal to produce or restyle a formal Word deliverable?
| |
| +-- Yes
| | |
| | +-- No source DOCX must remain “the same document”
| | | -> CREATE_DOCX
| | |
| | +-- Source content survives but template / institutional visual system is the point
| | -> APPLY_TEMPLATE
| |
| +-- No
| |
| +-- User wants to read / summarize / quote / search / extract
| | -> READ_CONTENT
| |
| +-- User wants styles / sections / numbering / TOC / comments / revisions / template internals
| | -> READ_STRUCTURE
| |
| +-- User wants page truth / visual mismatch / blank pages / overflow / cover / TOC layout
| | -> READ_RENDERED or REPAIR_LAYOUT
| |
| +-- User wants to change the content but keep this DOCX as the same document
| | -> EDIT_FILL_DOCX
| |
| +-- User gives two DOCX files and wants differences explained
| -> COMPARE_TWO_DOCX
After selecting a route, run the matching gate level before proceeding.
| Route | Gate level |
|---|---|
| READ_CONTENT | read |
| READ_STRUCTURE | read |
| READ_RENDERED | render |
| COMPARE_TWO_DOCX | read |
| CREATE_DOCX | full |
| APPLY_TEMPLATE | full |
| EDIT_FILL_DOCX | full |
| REPAIR_LAYOUT | full |
# macOS / Linux / WSL
bash <skill_dir>/scripts/env_check.sh --level <gate_level>
# Windows
powershell -ExecutionPolicy Bypass -File <skill_dir>\scripts\env_check.ps1 -Level <Read|Render|Full>
Do not run the full gate before route selection. The loader already ran the read gate; only escalate to render or full when the selected route requires it.
Use when there is no source DOCX to preserve as a document object. Markdown / HTML / LaTeX / business brief source still belongs here after normalization.
Use when the user’s real ask is “make this content become that document system”. This includes school templates, 公文格式, house style, and multi-section institutional layouts.
Use when the source DOCX stays the same document and the user wants content mutation. If the real source is Markdown / LaTeX and the DOCX is just a stale render, do not edit in place; regenerate.
Use for meaning. Do not answer TOC, section, numbering, or page-layout questions here.
Use for Word/OpenXML truth. This is the default diagnosis route before template-sensitive mutation.
Use when the user asks what the pages actually look like. Rendered pages judge correctness; XML only explains causes.
Use when the complaint is visual and the goal is correction, not just inspection.
Use when the user asks for a before/after or source/template difference analysis.