@nguyenphp/antigravity-marketing 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/README.md +130 -78
  2. package/package.json +4 -3
  3. package/templates/.agent/skills/marketing-report-expert/SKILL.md +70 -0
  4. package/templates/.agent/skills/minimax-docx/LICENSE +21 -0
  5. package/templates/.agent/skills/minimax-docx/SKILL.md +274 -0
  6. package/templates/.agent/skills/minimax-docx/assets/styles/academic_styles.xml +250 -0
  7. package/templates/.agent/skills/minimax-docx/assets/styles/corporate_styles.xml +284 -0
  8. package/templates/.agent/skills/minimax-docx/assets/styles/default_styles.xml +449 -0
  9. package/templates/.agent/skills/minimax-docx/assets/xsd/aesthetic-rules.xsd +470 -0
  10. package/templates/.agent/skills/minimax-docx/assets/xsd/business-rules.xsd +130 -0
  11. package/templates/.agent/skills/minimax-docx/assets/xsd/common-types.xsd +159 -0
  12. package/templates/.agent/skills/minimax-docx/assets/xsd/wml-subset.xsd +589 -0
  13. package/templates/.agent/skills/minimax-docx/references/cjk_typography.md +357 -0
  14. package/templates/.agent/skills/minimax-docx/references/cjk_university_template_guide.md +184 -0
  15. package/templates/.agent/skills/minimax-docx/references/comments_guide.md +191 -0
  16. package/templates/.agent/skills/minimax-docx/references/design_good_bad_examples.md +829 -0
  17. package/templates/.agent/skills/minimax-docx/references/design_principles.md +819 -0
  18. package/templates/.agent/skills/minimax-docx/references/openxml_element_order.md +308 -0
  19. package/templates/.agent/skills/minimax-docx/references/openxml_encyclopedia_part1.md +4061 -0
  20. package/templates/.agent/skills/minimax-docx/references/openxml_encyclopedia_part2.md +2820 -0
  21. package/templates/.agent/skills/minimax-docx/references/openxml_encyclopedia_part3.md +3381 -0
  22. package/templates/.agent/skills/minimax-docx/references/openxml_namespaces.md +82 -0
  23. package/templates/.agent/skills/minimax-docx/references/openxml_units.md +72 -0
  24. package/templates/.agent/skills/minimax-docx/references/scenario_a_create.md +284 -0
  25. package/templates/.agent/skills/minimax-docx/references/scenario_b_edit_content.md +295 -0
  26. package/templates/.agent/skills/minimax-docx/references/scenario_c_apply_template.md +456 -0
  27. package/templates/.agent/skills/minimax-docx/references/track_changes_guide.md +200 -0
  28. package/templates/.agent/skills/minimax-docx/references/troubleshooting.md +506 -0
  29. package/templates/.agent/skills/minimax-docx/references/typography_guide.md +294 -0
  30. package/templates/.agent/skills/minimax-docx/references/xsd_validation_guide.md +158 -0
  31. package/templates/.agent/skills/minimax-docx/scripts/doc_to_docx.sh +40 -0
  32. package/templates/.agent/skills/minimax-docx/scripts/docx_preview.sh +37 -0
  33. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Cli/MiniMaxAIDocx.Cli.csproj +19 -0
  34. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Cli/Program.cs +18 -0
  35. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/AnalyzeCommand.cs +147 -0
  36. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/ApplyTemplateCommand.cs +322 -0
  37. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/CreateCommand.cs +324 -0
  38. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/DiffCommand.cs +155 -0
  39. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/EditContentCommand.cs +487 -0
  40. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/FixOrderCommand.cs +108 -0
  41. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/MergeRunsCommand.cs +122 -0
  42. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/ValidateCommand.cs +107 -0
  43. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/MiniMaxAIDocx.Core.csproj +15 -0
  44. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/CommentSynchronizer.cs +169 -0
  45. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/ElementOrder.cs +80 -0
  46. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/NamespaceConstants.cs +42 -0
  47. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/RunMerger.cs +81 -0
  48. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/StyleAnalyzer.cs +81 -0
  49. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/TrackChangesHelper.cs +99 -0
  50. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/UnitConverter.cs +23 -0
  51. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples.cs +1832 -0
  52. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch1.cs +910 -0
  53. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch2.cs +999 -0
  54. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch3.cs +1048 -0
  55. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch4.cs +1038 -0
  56. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/CharacterFormattingSamples.cs +1020 -0
  57. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/DocumentCreationSamples.cs +1121 -0
  58. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/FieldAndTocSamples.cs +624 -0
  59. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/FootnoteAndCommentSamples.cs +675 -0
  60. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/HeaderFooterSamples.cs +838 -0
  61. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ImageSamples.cs +917 -0
  62. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ListAndNumberingSamples.cs +826 -0
  63. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ParagraphFormattingSamples.cs +1199 -0
  64. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/StyleSystemSamples.cs +1487 -0
  65. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/TableSamples.cs +1163 -0
  66. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/TrackChangesSamples.cs +595 -0
  67. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/CjkHelper.cs +39 -0
  68. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/FontDefaults.cs +24 -0
  69. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/PageSizes.cs +20 -0
  70. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/BusinessRuleValidator.cs +224 -0
  71. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/GateCheckValidator.cs +148 -0
  72. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/ValidationResult.cs +23 -0
  73. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/XsdValidator.cs +69 -0
  74. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.slnx +4 -0
  75. package/templates/.agent/skills/minimax-docx/scripts/env_check.sh +196 -0
  76. package/templates/.agent/skills/minimax-docx/scripts/setup.ps1 +274 -0
  77. package/templates/.agent/skills/minimax-docx/scripts/setup.sh +504 -0
  78. package/templates/.agent/skills/minimax-multimodal-toolkit/SKILL.md +359 -0
  79. package/templates/.agent/skills/minimax-pdf/README.md +222 -0
  80. package/templates/.agent/skills/minimax-pdf/SKILL.md +201 -0
  81. package/templates/.agent/skills/minimax-pdf/design/design.md +381 -0
  82. package/templates/.agent/skills/minimax-pdf/scripts/cover.py +1579 -0
  83. package/templates/.agent/skills/minimax-pdf/scripts/fill_inspect.py +200 -0
  84. package/templates/.agent/skills/minimax-pdf/scripts/fill_write.py +242 -0
  85. package/templates/.agent/skills/minimax-pdf/scripts/make.sh +491 -0
  86. package/templates/.agent/skills/minimax-pdf/scripts/merge.py +112 -0
  87. package/templates/.agent/skills/minimax-pdf/scripts/palette.py +559 -0
  88. package/templates/.agent/skills/minimax-pdf/scripts/reformat_parse.py +374 -0
  89. package/templates/.agent/skills/minimax-pdf/scripts/render_body.py +1055 -0
  90. package/templates/.agent/skills/minimax-pdf/scripts/render_cover.cjs +111 -0
  91. package/templates/.agent/skills/minimax-xlsx/SKILL.md +138 -0
  92. package/templates/.agent/skills/minimax-xlsx/references/create.md +691 -0
  93. package/templates/.agent/skills/minimax-xlsx/references/edit.md +684 -0
  94. package/templates/.agent/skills/minimax-xlsx/references/fix.md +37 -0
  95. package/templates/.agent/skills/minimax-xlsx/references/format.md +768 -0
  96. package/templates/.agent/skills/minimax-xlsx/references/ooxml-cheatsheet.md +231 -0
  97. package/templates/.agent/skills/minimax-xlsx/references/read-analyze.md +97 -0
  98. package/templates/.agent/skills/minimax-xlsx/references/validate.md +772 -0
  99. package/templates/.agent/skills/minimax-xlsx/scripts/formula_check.py +422 -0
  100. package/templates/.agent/skills/minimax-xlsx/scripts/libreoffice_recalc.py +248 -0
  101. package/templates/.agent/skills/minimax-xlsx/scripts/shared_strings_builder.py +163 -0
  102. package/templates/.agent/skills/minimax-xlsx/scripts/style_audit.py +575 -0
  103. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_add_column.py +395 -0
  104. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_insert_row.py +274 -0
  105. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_pack.py +87 -0
  106. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_reader.py +362 -0
  107. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_shift_rows.py +396 -0
  108. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_unpack.py +130 -0
  109. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/[Content_Types].xml +9 -0
  110. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/_rels/.rels +6 -0
  111. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/_rels/workbook.xml.rels +19 -0
  112. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/sharedStrings.xml +33 -0
  113. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/styles.xml +160 -0
  114. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/workbook.xml +30 -0
  115. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/worksheets/sheet1.xml +70 -0
  116. package/templates/.agent/skills/pptx-generator/SKILL.md +249 -0
  117. package/templates/.agent/skills/pptx-generator/references/design-system.md +392 -0
  118. package/templates/.agent/skills/pptx-generator/references/editing.md +162 -0
  119. package/templates/.agent/skills/pptx-generator/references/pitfalls.md +112 -0
  120. package/templates/.agent/skills/pptx-generator/references/pptxgenjs.md +420 -0
  121. package/templates/.agent/skills/pptx-generator/references/slide-types.md +413 -0
  122. package/templates/.agent/skills/tutorial-video-expert/SKILL.md +88 -0
  123. package/templates/.agent/skills/ui-ux-pro-max/SKILL.md +170 -585
  124. package/templates/.agent/skills/vision-analysis/SKILL.md +174 -0
  125. package/templates/.agent/workflows/analyze.md +3 -0
  126. package/templates/.agent/workflows/brand-report.md +44 -0
  127. package/templates/.agent/workflows/report.md +49 -0
  128. package/templates/.agent/agents/backend-specialist.md +0 -263
  129. package/templates/.agent/agents/database-architect.md +0 -226
  130. package/templates/.agent/agents/debugger.md +0 -225
  131. package/templates/.agent/agents/devops-engineer.md +0 -242
  132. package/templates/.agent/agents/frontend-specialist.md +0 -527
  133. package/templates/.agent/agents/game-developer.md +0 -162
  134. package/templates/.agent/agents/mobile-developer.md +0 -377
  135. package/templates/.agent/agents/penetration-tester.md +0 -188
  136. package/templates/.agent/agents/security-auditor.md +0 -170
  137. package/templates/.agent/agents/test-engineer.md +0 -158
  138. package/templates/.agent/skills/api-patterns/SKILL.md +0 -81
  139. package/templates/.agent/skills/api-patterns/api-style.md +0 -42
  140. package/templates/.agent/skills/api-patterns/auth.md +0 -24
  141. package/templates/.agent/skills/api-patterns/documentation.md +0 -26
  142. package/templates/.agent/skills/api-patterns/graphql.md +0 -41
  143. package/templates/.agent/skills/api-patterns/rate-limiting.md +0 -31
  144. package/templates/.agent/skills/api-patterns/response.md +0 -37
  145. package/templates/.agent/skills/api-patterns/rest.md +0 -40
  146. package/templates/.agent/skills/api-patterns/scripts/api_validator.py +0 -211
  147. package/templates/.agent/skills/api-patterns/security-testing.md +0 -122
  148. package/templates/.agent/skills/api-patterns/trpc.md +0 -41
  149. package/templates/.agent/skills/api-patterns/versioning.md +0 -22
  150. package/templates/.agent/skills/app-builder/SKILL.md +0 -75
  151. package/templates/.agent/skills/app-builder/agent-coordination.md +0 -71
  152. package/templates/.agent/skills/app-builder/feature-building.md +0 -53
  153. package/templates/.agent/skills/app-builder/project-detection.md +0 -34
  154. package/templates/.agent/skills/app-builder/scaffolding.md +0 -118
  155. package/templates/.agent/skills/app-builder/tech-stack.md +0 -40
  156. package/templates/.agent/skills/app-builder/templates/SKILL.md +0 -39
  157. package/templates/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
  158. package/templates/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
  159. package/templates/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
  160. package/templates/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
  161. package/templates/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
  162. package/templates/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
  163. package/templates/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
  164. package/templates/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -82
  165. package/templates/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -100
  166. package/templates/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -106
  167. package/templates/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -101
  168. package/templates/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
  169. package/templates/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -93
  170. package/templates/.agent/skills/architecture/SKILL.md +0 -55
  171. package/templates/.agent/skills/architecture/context-discovery.md +0 -43
  172. package/templates/.agent/skills/architecture/examples.md +0 -94
  173. package/templates/.agent/skills/architecture/pattern-selection.md +0 -68
  174. package/templates/.agent/skills/architecture/patterns-reference.md +0 -50
  175. package/templates/.agent/skills/architecture/trade-off-analysis.md +0 -77
  176. package/templates/.agent/skills/bash-linux/SKILL.md +0 -199
  177. package/templates/.agent/skills/behavioral-modes/SKILL.md +0 -242
  178. package/templates/.agent/skills/clean-code/SKILL.md +0 -201
  179. package/templates/.agent/skills/code-review-checklist/SKILL.md +0 -109
  180. package/templates/.agent/skills/database-design/SKILL.md +0 -52
  181. package/templates/.agent/skills/database-design/database-selection.md +0 -43
  182. package/templates/.agent/skills/database-design/indexing.md +0 -39
  183. package/templates/.agent/skills/database-design/migrations.md +0 -48
  184. package/templates/.agent/skills/database-design/optimization.md +0 -36
  185. package/templates/.agent/skills/database-design/orm-selection.md +0 -30
  186. package/templates/.agent/skills/database-design/schema-design.md +0 -56
  187. package/templates/.agent/skills/database-design/scripts/schema_validator.py +0 -172
  188. package/templates/.agent/skills/deployment-procedures/SKILL.md +0 -241
  189. package/templates/.agent/skills/docker-expert/SKILL.md +0 -409
  190. package/templates/.agent/skills/game-development/2d-games/SKILL.md +0 -119
  191. package/templates/.agent/skills/game-development/3d-games/SKILL.md +0 -135
  192. package/templates/.agent/skills/game-development/SKILL.md +0 -167
  193. package/templates/.agent/skills/game-development/game-art/SKILL.md +0 -185
  194. package/templates/.agent/skills/game-development/game-audio/SKILL.md +0 -190
  195. package/templates/.agent/skills/game-development/game-design/SKILL.md +0 -129
  196. package/templates/.agent/skills/game-development/mobile-games/SKILL.md +0 -108
  197. package/templates/.agent/skills/game-development/multiplayer/SKILL.md +0 -132
  198. package/templates/.agent/skills/game-development/pc-games/SKILL.md +0 -144
  199. package/templates/.agent/skills/game-development/vr-ar/SKILL.md +0 -123
  200. package/templates/.agent/skills/game-development/web-games/SKILL.md +0 -150
  201. package/templates/.agent/skills/lint-and-validate/SKILL.md +0 -45
  202. package/templates/.agent/skills/lint-and-validate/scripts/lint_runner.py +0 -172
  203. package/templates/.agent/skills/lint-and-validate/scripts/type_coverage.py +0 -173
  204. package/templates/.agent/skills/mcp-builder/SKILL.md +0 -176
  205. package/templates/.agent/skills/nestjs-expert/SKILL.md +0 -552
  206. package/templates/.agent/skills/nextjs-best-practices/SKILL.md +0 -203
  207. package/templates/.agent/skills/nodejs-best-practices/SKILL.md +0 -333
  208. package/templates/.agent/skills/parallel-agents/SKILL.md +0 -175
  209. package/templates/.agent/skills/performance-profiling/SKILL.md +0 -143
  210. package/templates/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +0 -76
  211. package/templates/.agent/skills/powershell-windows/SKILL.md +0 -167
  212. package/templates/.agent/skills/prisma-expert/SKILL.md +0 -355
  213. package/templates/.agent/skills/python-patterns/SKILL.md +0 -441
  214. package/templates/.agent/skills/react-patterns/SKILL.md +0 -198
  215. package/templates/.agent/skills/red-team-tactics/SKILL.md +0 -199
  216. package/templates/.agent/skills/server-management/SKILL.md +0 -161
  217. package/templates/.agent/skills/systematic-debugging/SKILL.md +0 -109
  218. package/templates/.agent/skills/tdd-workflow/SKILL.md +0 -149
  219. package/templates/.agent/skills/testing-patterns/SKILL.md +0 -178
  220. package/templates/.agent/skills/testing-patterns/scripts/test_runner.py +0 -219
  221. package/templates/.agent/skills/typescript-expert/SKILL.md +0 -429
  222. package/templates/.agent/skills/vue-expert/SKILL.md +0 -374
  223. package/templates/.agent/skills/vulnerability-scanner/SKILL.md +0 -276
  224. package/templates/.agent/skills/vulnerability-scanner/checklists.md +0 -121
  225. package/templates/.agent/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
  226. package/templates/.agent/skills/webapp-testing/SKILL.md +0 -187
  227. package/templates/.agent/skills/webapp-testing/scripts/playwright_runner.py +0 -173
  228. package/templates/.agent/workflows/debug.md +0 -103
  229. package/templates/.agent/workflows/deploy.md +0 -176
  230. package/templates/.agent/workflows/enhance.md +0 -63
  231. package/templates/.agent/workflows/test.md +0 -144
@@ -0,0 +1,308 @@
1
+ # OpenXML Child Element Ordering Rules
2
+
3
+ Element ordering in OpenXML is defined by the XSD schema. Incorrect ordering produces invalid documents that Word may refuse to open or silently repair (potentially losing data).
4
+
5
+ > **Key rule**: Properties elements (`*Pr`) must always be the **first child** of their parent.
6
+
7
+ ---
8
+
9
+ ## w:document
10
+
11
+ ```
12
+ Children in order:
13
+ 1. w:background [0..1] — page background color/fill
14
+ 2. w:body [0..1] — document content container
15
+ ```
16
+
17
+ ---
18
+
19
+ ## w:body
20
+
21
+ ```
22
+ Children in order (repeating group):
23
+ 1. w:p [0..*] — paragraph
24
+ 2. w:tbl [0..*] — table
25
+ 3. w:sdt [0..*] — structured document tag (content control)
26
+ 4. w:sectPr [0..1] — LAST child: final section properties
27
+ ```
28
+
29
+ Note: `w:p`, `w:tbl`, and `w:sdt` are interleaved in document order. The only strict rule is that `w:sectPr` must be the **last child** of `w:body`.
30
+
31
+ ---
32
+
33
+ ## w:p (Paragraph)
34
+
35
+ ```
36
+ Children in order:
37
+ 1. w:pPr [0..1] — paragraph properties (MUST be first)
38
+
39
+ Then any mix of (interleaved in document order):
40
+ - w:r [0..*] — run
41
+ - w:hyperlink [0..*] — hyperlink wrapper
42
+ - w:ins [0..*] — tracked insertion
43
+ - w:del [0..*] — tracked deletion
44
+ - w:bookmarkStart [0..*] — bookmark anchor start
45
+ - w:bookmarkEnd [0..*] — bookmark anchor end
46
+ - w:commentRangeStart [0..*] — comment range start
47
+ - w:commentRangeEnd [0..*] — comment range end
48
+ - w:proofErr [0..*] — proofing error marker
49
+ - w:fldSimple [0..*] — simple field
50
+ - w:sdt [0..*] — inline content control
51
+ - w:smartTag [0..*] — smart tag
52
+ ```
53
+
54
+ **Practical note**: After `w:pPr`, the remaining children appear in document reading order. Runs, hyperlinks, bookmarks, and comment ranges intermix freely based on their position in the text.
55
+
56
+ ---
57
+
58
+ ## w:pPr (Paragraph Properties)
59
+
60
+ ```
61
+ Children in order:
62
+ 1. w:pStyle [0..1] — paragraph style reference
63
+ 2. w:keepNext [0..1] — keep with next paragraph
64
+ 3. w:keepLines [0..1] — keep lines together
65
+ 4. w:pageBreakBefore [0..1] — page break before paragraph
66
+ 5. w:framePr [0..1] — text frame properties
67
+ 6. w:widowControl [0..1] — widow/orphan control
68
+ 7. w:numPr [0..1] — numbering properties
69
+ 8. w:suppressLineNumbers [0..1]
70
+ 9. w:pBdr [0..1] — paragraph borders
71
+ 10. w:shd [0..1] — shading
72
+ 11. w:tabs [0..1] — tab stops
73
+ 12. w:suppressAutoHyphens [0..1]
74
+ 13. w:kinsoku [0..1] — CJK kinsoku settings
75
+ 14. w:wordWrap [0..1]
76
+ 15. w:overflowPunct [0..1]
77
+ 16. w:topLinePunct [0..1]
78
+ 17. w:autoSpaceDE [0..1]
79
+ 18. w:autoSpaceDN [0..1]
80
+ 19. w:bidi [0..1] — right-to-left paragraph
81
+ 20. w:adjustRightInd [0..1]
82
+ 21. w:snapToGrid [0..1]
83
+ 22. w:spacing [0..1] — line and paragraph spacing
84
+ 23. w:ind [0..1] — indentation
85
+ 24. w:contextualSpacing [0..1]
86
+ 25. w:mirrorIndents [0..1]
87
+ 26. w:suppressOverlap [0..1]
88
+ 27. w:jc [0..1] — justification (left/center/right/both)
89
+ 28. w:textDirection [0..1]
90
+ 29. w:textAlignment [0..1]
91
+ 30. w:outlineLvl [0..1] — outline level
92
+ 31. w:divId [0..1]
93
+ 32. w:rPr [0..1] — run properties for paragraph mark
94
+ 33. w:sectPr [0..1] — section break (section ends at this paragraph)
95
+ 34. w:pPrChange [0..1] — tracked paragraph property change
96
+ ```
97
+
98
+ ---
99
+
100
+ ## w:r (Run)
101
+
102
+ ```
103
+ Children in order:
104
+ 1. w:rPr [0..1] — run properties (MUST be first)
105
+
106
+ Then any of (one per run, typically):
107
+ - w:t [0..*] — text content
108
+ - w:br [0..*] — break (line, page, column)
109
+ - w:tab [0..*] — tab character
110
+ - w:cr [0..*] — carriage return
111
+ - w:sym [0..*] — symbol character
112
+ - w:drawing [0..*] — DrawingML object (images)
113
+ - w:pict [0..*] — VML picture (legacy)
114
+ - w:fldChar [0..*] — complex field character
115
+ - w:instrText [0..*] — field instruction text
116
+ - w:delText [0..*] — deleted text (inside w:del)
117
+ - w:footnoteReference [0..*]
118
+ - w:endnoteReference [0..*]
119
+ - w:commentReference [0..*]
120
+ - w:lastRenderedPageBreak [0..*]
121
+ ```
122
+
123
+ ---
124
+
125
+ ## w:rPr (Run Properties)
126
+
127
+ ```
128
+ Children in order:
129
+ 1. w:rStyle [0..1] — character style reference
130
+ 2. w:rFonts [0..1] — font specification
131
+ 3. w:b [0..1] — bold
132
+ 4. w:bCs [0..1] — complex script bold
133
+ 5. w:i [0..1] — italic
134
+ 6. w:iCs [0..1] — complex script italic
135
+ 7. w:caps [0..1] — all capitals
136
+ 8. w:smallCaps [0..1] — small capitals
137
+ 9. w:strike [0..1] — strikethrough
138
+ 10. w:dstrike [0..1] — double strikethrough
139
+ 11. w:outline [0..1]
140
+ 12. w:shadow [0..1]
141
+ 13. w:emboss [0..1]
142
+ 14. w:imprint [0..1]
143
+ 15. w:noProof [0..1] — suppress proofing
144
+ 16. w:snapToGrid [0..1]
145
+ 17. w:vanish [0..1] — hidden text
146
+ 18. w:color [0..1] — text color
147
+ 19. w:spacing [0..1] — character spacing
148
+ 20. w:w [0..1] — character width scaling
149
+ 21. w:kern [0..1] — font kerning
150
+ 22. w:position [0..1] — vertical position (raise/lower)
151
+ 23. w:sz [0..1] — font size (half-points)
152
+ 24. w:szCs [0..1] — complex script font size
153
+ 25. w:highlight [0..1] — text highlight color
154
+ 26. w:u [0..1] — underline
155
+ 27. w:effect [0..1] — text effect (animated)
156
+ 28. w:bdr [0..1] — run border
157
+ 29. w:shd [0..1] — run shading
158
+ 30. w:vertAlign [0..1] — superscript/subscript
159
+ 31. w:rtl [0..1] — right-to-left
160
+ 32. w:cs [0..1] — complex script
161
+ 33. w:lang [0..1] — language
162
+ 34. w:rPrChange [0..1] — tracked run property change
163
+ ```
164
+
165
+ ---
166
+
167
+ ## w:tbl (Table)
168
+
169
+ ```
170
+ Children in order:
171
+ 1. w:tblPr [1..1] — table properties (REQUIRED, must be first)
172
+ 2. w:tblGrid [1..1] — column width definitions (REQUIRED)
173
+ 3. w:tr [1..*] — table row(s)
174
+ ```
175
+
176
+ ---
177
+
178
+ ## w:tblPr (Table Properties)
179
+
180
+ ```
181
+ Children in order:
182
+ 1. w:tblStyle [0..1] — table style reference
183
+ 2. w:tblpPr [0..1] — table positioning
184
+ 3. w:tblOverlap [0..1]
185
+ 4. w:bidiVisual [0..1] — right-to-left table
186
+ 5. w:tblStyleRowBandSize [0..1]
187
+ 6. w:tblStyleColBandSize [0..1]
188
+ 7. w:tblW [0..1] — preferred table width
189
+ 8. w:jc [0..1] — table alignment
190
+ 9. w:tblCellSpacing [0..1]
191
+ 10. w:tblInd [0..1] — table indent from margin
192
+ 11. w:tblBorders [0..1] — table borders
193
+ 12. w:shd [0..1] — table shading
194
+ 13. w:tblLayout [0..1] — fixed or autofit
195
+ 14. w:tblCellMar [0..1] — default cell margins
196
+ 15. w:tblLook [0..1] — conditional formatting flags
197
+ 16. w:tblCaption [0..1] — accessibility caption
198
+ 17. w:tblDescription [0..1] — accessibility description
199
+ 18. w:tblPrChange [0..1] — tracked table property change
200
+ ```
201
+
202
+ ---
203
+
204
+ ## w:tr (Table Row)
205
+
206
+ ```
207
+ Children in order:
208
+ 1. w:trPr [0..1] — row properties (must be first)
209
+ 2. w:tc [1..*] — table cell(s)
210
+ ```
211
+
212
+ ---
213
+
214
+ ## w:trPr (Table Row Properties)
215
+
216
+ ```
217
+ Children in order:
218
+ 1. w:cnfStyle [0..1] — conditional formatting
219
+ 2. w:divId [0..1]
220
+ 3. w:gridBefore [0..1] — grid columns before first cell
221
+ 4. w:gridAfter [0..1] — grid columns after last cell
222
+ 5. w:wBefore [0..1]
223
+ 6. w:wAfter [0..1]
224
+ 7. w:cantSplit [0..1] — don't split row across pages
225
+ 8. w:trHeight [0..1] — row height
226
+ 9. w:tblHeader [0..1] — repeat as header row
227
+ 10. w:tblCellSpacing [0..1]
228
+ 11. w:jc [0..1] — row alignment
229
+ 12. w:hidden [0..1]
230
+ 13. w:ins [0..1] — tracked row insertion
231
+ 14. w:del [0..1] — tracked row deletion
232
+ 15. w:trPrChange [0..1] — tracked row property change
233
+ ```
234
+
235
+ ---
236
+
237
+ ## w:tc (Table Cell)
238
+
239
+ ```
240
+ Children in order:
241
+ 1. w:tcPr [0..1] — cell properties (must be first)
242
+ 2. w:p [1..*] — paragraph(s) — at least one required
243
+ 3. w:tbl [0..*] — nested table(s)
244
+ ```
245
+
246
+ ---
247
+
248
+ ## w:tcPr (Table Cell Properties)
249
+
250
+ ```
251
+ Children in order:
252
+ 1. w:cnfStyle [0..1]
253
+ 2. w:tcW [0..1] — cell width
254
+ 3. w:gridSpan [0..1] — horizontal merge (column span)
255
+ 4. w:hMerge [0..1] — legacy horizontal merge
256
+ 5. w:vMerge [0..1] — vertical merge
257
+ 6. w:tcBorders [0..1] — cell borders
258
+ 7. w:shd [0..1] — cell shading
259
+ 8. w:noWrap [0..1]
260
+ 9. w:tcMar [0..1] — cell margins
261
+ 10. w:textDirection [0..1]
262
+ 11. w:tcFitText [0..1]
263
+ 12. w:vAlign [0..1] — vertical alignment
264
+ 13. w:hideMark [0..1]
265
+ 14. w:tcPrChange [0..1] — tracked cell property change
266
+ ```
267
+
268
+ ---
269
+
270
+ ## w:sectPr (Section Properties)
271
+
272
+ ```
273
+ Children in order:
274
+ 1. w:headerReference [0..*] — header references (type: default/first/even)
275
+ 2. w:footerReference [0..*] — footer references
276
+ 3. w:endnotePr [0..1]
277
+ 4. w:footnotePr [0..1]
278
+ 5. w:type [0..1] — section break type (nextPage/continuous/evenPage/oddPage)
279
+ 6. w:pgSz [0..1] — page size
280
+ 7. w:pgMar [0..1] — page margins
281
+ 8. w:paperSrc [0..1]
282
+ 9. w:pgBorders [0..1] — page borders
283
+ 10. w:lnNumType [0..1] — line numbering
284
+ 11. w:pgNumType [0..1] — page numbering
285
+ 12. w:cols [0..1] — column definitions
286
+ 13. w:formProt [0..1]
287
+ 14. w:vAlign [0..1] — vertical alignment of page
288
+ 15. w:noEndnote [0..1]
289
+ 16. w:titlePg [0..1] — different first page header/footer
290
+ 17. w:textDirection [0..1]
291
+ 18. w:bidi [0..1]
292
+ 19. w:rtlGutter [0..1]
293
+ 20. w:docGrid [0..1] — document grid
294
+ 21. w:sectPrChange [0..1] — tracked section property change
295
+ ```
296
+
297
+ ---
298
+
299
+ ## w:hdr (Header) / w:ftr (Footer)
300
+
301
+ ```
302
+ Children (same structure as w:body content):
303
+ 1. w:p [0..*] — paragraph(s)
304
+ 2. w:tbl [0..*] — table(s)
305
+ 3. w:sdt [0..*] — content controls
306
+ ```
307
+
308
+ Headers and footers are essentially mini-documents. They follow the same content model as `w:body` but without a final `w:sectPr`.