Use this task family when source content should survive but the visual or institutional template system changes.
For template work, do not treat the job as a generic forensic waterfall. Use this order:
D or SIf the template mode is obvious, real template work should begin after step 3.
Need this content to become that template system
-> choose template mode
-> align recipe family
-> read only the structure required by that mode
-> default to D
-> escalate to S only if structural transfer clearly exceeds CLI surface
-> write
-> run strict post-write rendered acceptance
The generation core that must stay active here is:
<skill_dir>/references/scenario_c_apply_template.md<skill_dir>/references/typography_guide.md<skill_dir>/references/design_principles.md<skill_dir>/references/cjk_typography.md when CJK / 公文 / thesis formatting is involved<skill_dir>/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples*.csTemplate work is not “style by vibes”. Use these to anchor the visual system before backend work.
.docx or text-native source, depending on template mode.docxUse this table first. Only read deeper references after you have the nearest alignment family.
| If the template looks like... | Start here |
|---|---|
| school / thesis / dissertation template | AcademicThesis family + institutional structure preservation |
| 公文 / Chinese government / strong CJK official template | ChineseGovernment + cjk_typography.md |
| corporate / branded business template | ModernCorporate / ExecutiveBrief |
| reference sample with no structural authority | nearest family by visual intent, then treat as reference_style_only |
After template mode is chosen, align the template target to a recipe family instead of inventing raw values from scratch:
| Situation | Alignment rule |
|---|---|
| school / thesis / institutional template | preserve the template’s structural zones, then align heading / body / spacing expectations to the nearest academic or institutional recipe family |
| 公文 / government / strong CJK template | ChineseGovernment + cjk_typography.md is the baseline; template XML can override only where the template explicitly proves it |
| corporate / branded template | align to ModernCorporate / ExecutiveBrief / closest recipe, then preserve template-specific colors / sections / headers |
| reference-style-only template | treat the template as style intent, map it to the nearest recipe family, then generate through D or S |
Once alignment is chosen, preserve template-proven structure first and use recipe values for the parts the template does not specify clearly.
reference_style_onlySource is text-native, but the final formal DOCX still must be produced through D after
normalization into a document plan / structured config. Treat the template as style intent, not as a
pandoc route.
overlay_stylesSource is DOCX and the template mainly supplies style system, not structural zones.
base_replaceTemplate is the skeleton. Output starts from the template and replaces example content with source content.
institutional_multi_sectionTemplate controls cover / TOC / abstract / body / page numbers / titlePg / per-section headers/footers. This is the strictest mode.
If institutional_multi_section is chosen, recipe alignment still matters for typography and spacing,
but structure preservation outranks cosmetic simplification.
Template work without the needed structure read is blind. Template work without post-write rendered verification is unfinished.
Backend choice happens after template mode + recipe alignment, not before them.
If both D and S are plausible, prefer D first and escalate to S only when the structural
transfer clearly exceeds CLI surface.
If you are hesitating between D and S, that is not a reason to stop. Start from D unless a
specific structural transfer requirement rules it out.
Reuse the bundled template knowledge under:
<skill_dir>/references/scenario_c_apply_template.md<skill_dir>/references/typography_guide.md<skill_dir>/references/design_principles.md<skill_dir>/references/cjk_typography.md<skill_dir>/scripts/dotnet/MiniMaxAIDocx.Core/Samples/*.csRun strict acceptance from acceptance.md.