@nguyenphp/antigravity-marketing 1.0.16 → 1.0.19

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 (376) hide show
  1. package/README.md +187 -74
  2. package/bin/index.js +4 -4
  3. package/package.json +4 -3
  4. package/templates/.agent/agents/backend-specialist.md +263 -0
  5. package/templates/.agent/agents/database-architect.md +226 -0
  6. package/templates/.agent/agents/debugger.md +225 -0
  7. package/templates/.agent/agents/devops-engineer.md +242 -0
  8. package/templates/.agent/agents/documentation-writer.md +104 -0
  9. package/templates/.agent/agents/explorer-agent.md +73 -0
  10. package/templates/.agent/agents/frontend-specialist.md +527 -0
  11. package/templates/.agent/agents/game-developer.md +162 -0
  12. package/templates/.agent/agents/mobile-developer.md +377 -0
  13. package/templates/.agent/agents/orchestrator.md +400 -0
  14. package/templates/.agent/agents/penetration-tester.md +188 -0
  15. package/templates/.agent/agents/performance-optimizer.md +187 -0
  16. package/templates/.agent/agents/project-planner.md +403 -0
  17. package/templates/.agent/agents/security-auditor.md +170 -0
  18. package/templates/.agent/agents/seo-specialist.md +111 -0
  19. package/templates/.agent/agents/test-engineer.md +158 -0
  20. package/templates/.agent/rules/GEMINI.md +248 -0
  21. package/templates/.agent/skills/analytics-marketing/SKILL.md +172 -324
  22. package/templates/.agent/skills/api-patterns/SKILL.md +81 -0
  23. package/templates/.agent/skills/api-patterns/api-style.md +42 -0
  24. package/templates/.agent/skills/api-patterns/auth.md +24 -0
  25. package/templates/.agent/skills/api-patterns/documentation.md +26 -0
  26. package/templates/.agent/skills/api-patterns/graphql.md +41 -0
  27. package/templates/.agent/skills/api-patterns/rate-limiting.md +31 -0
  28. package/templates/.agent/skills/api-patterns/response.md +37 -0
  29. package/templates/.agent/skills/api-patterns/rest.md +40 -0
  30. package/templates/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  31. package/templates/.agent/skills/api-patterns/security-testing.md +122 -0
  32. package/templates/.agent/skills/api-patterns/trpc.md +41 -0
  33. package/templates/.agent/skills/api-patterns/versioning.md +22 -0
  34. package/templates/.agent/skills/app-builder/SKILL.md +75 -0
  35. package/templates/.agent/skills/app-builder/agent-coordination.md +71 -0
  36. package/templates/.agent/skills/app-builder/feature-building.md +53 -0
  37. package/templates/.agent/skills/app-builder/project-detection.md +34 -0
  38. package/templates/.agent/skills/app-builder/scaffolding.md +118 -0
  39. package/templates/.agent/skills/app-builder/tech-stack.md +40 -0
  40. package/templates/.agent/skills/app-builder/templates/SKILL.md +39 -0
  41. package/templates/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  42. package/templates/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  43. package/templates/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  44. package/templates/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  45. package/templates/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  46. package/templates/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  47. package/templates/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  48. package/templates/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
  49. package/templates/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
  50. package/templates/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
  51. package/templates/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
  52. package/templates/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  53. package/templates/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
  54. package/templates/.agent/skills/architecture/SKILL.md +55 -0
  55. package/templates/.agent/skills/architecture/context-discovery.md +43 -0
  56. package/templates/.agent/skills/architecture/examples.md +94 -0
  57. package/templates/.agent/skills/architecture/pattern-selection.md +68 -0
  58. package/templates/.agent/skills/architecture/patterns-reference.md +50 -0
  59. package/templates/.agent/skills/architecture/trade-off-analysis.md +77 -0
  60. package/templates/.agent/skills/banner-design/SKILL.md +192 -0
  61. package/templates/.agent/skills/banner-design/references/banner-sizes-and-styles.md +118 -0
  62. package/templates/.agent/skills/bash-linux/SKILL.md +199 -0
  63. package/templates/.agent/skills/behavioral-modes/SKILL.md +242 -0
  64. package/templates/.agent/skills/brainstorming/SKILL.md +163 -0
  65. package/templates/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
  66. package/templates/.agent/skills/brand/SKILL.md +97 -0
  67. package/templates/.agent/skills/brand/references/approval-checklist.md +169 -0
  68. package/templates/.agent/skills/brand/references/asset-organization.md +157 -0
  69. package/templates/.agent/skills/brand/references/brand-guideline-template.md +140 -0
  70. package/templates/.agent/skills/brand/references/color-palette-management.md +186 -0
  71. package/templates/.agent/skills/brand/references/consistency-checklist.md +94 -0
  72. package/templates/.agent/skills/brand/references/logo-usage-rules.md +185 -0
  73. package/templates/.agent/skills/brand/references/messaging-framework.md +85 -0
  74. package/templates/.agent/skills/brand/references/typography-specifications.md +214 -0
  75. package/templates/.agent/skills/brand/references/update.md +118 -0
  76. package/templates/.agent/skills/brand/references/visual-identity.md +96 -0
  77. package/templates/.agent/skills/brand/references/voice-framework.md +88 -0
  78. package/templates/.agent/skills/brand/scripts/extract-colors.cjs +341 -0
  79. package/templates/.agent/skills/brand/scripts/inject-brand-context.cjs +349 -0
  80. package/templates/.agent/skills/brand/scripts/sync-brand-to-tokens.cjs +266 -0
  81. package/templates/.agent/skills/brand/scripts/validate-asset.cjs +387 -0
  82. package/templates/.agent/skills/brand/templates/brand-guidelines-starter.md +275 -0
  83. package/templates/.agent/skills/clean-code/SKILL.md +201 -0
  84. package/templates/.agent/skills/code-review-checklist/SKILL.md +109 -0
  85. package/templates/.agent/skills/copywriting/SKILL.md +250 -0
  86. package/templates/.agent/skills/database-design/SKILL.md +52 -0
  87. package/templates/.agent/skills/database-design/database-selection.md +43 -0
  88. package/templates/.agent/skills/database-design/indexing.md +39 -0
  89. package/templates/.agent/skills/database-design/migrations.md +48 -0
  90. package/templates/.agent/skills/database-design/optimization.md +36 -0
  91. package/templates/.agent/skills/database-design/orm-selection.md +30 -0
  92. package/templates/.agent/skills/database-design/schema-design.md +56 -0
  93. package/templates/.agent/skills/database-design/scripts/schema_validator.py +172 -0
  94. package/templates/.agent/skills/deployment-procedures/SKILL.md +241 -0
  95. package/templates/.agent/skills/docker-expert/SKILL.md +409 -0
  96. package/templates/.agent/skills/frontend-design/animation-guide.md +331 -0
  97. package/templates/.agent/skills/frontend-design/color-system.md +311 -0
  98. package/templates/.agent/skills/frontend-design/decision-trees.md +418 -0
  99. package/templates/.agent/skills/frontend-design/motion-graphics.md +306 -0
  100. package/templates/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  101. package/templates/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  102. package/templates/.agent/skills/frontend-design/typography-system.md +345 -0
  103. package/templates/.agent/skills/frontend-design/ux-psychology.md +541 -0
  104. package/templates/.agent/skills/frontend-design/visual-effects.md +383 -0
  105. package/templates/.agent/skills/frontend-slides/SKILL.md +92 -0
  106. package/templates/.agent/skills/frontend-slides/STYLE_PRESETS.md +347 -0
  107. package/templates/.agent/skills/frontend-slides/animation-patterns.md +110 -0
  108. package/templates/.agent/skills/frontend-slides/examples/n8n-jupviec-automation.html +789 -0
  109. package/templates/.agent/skills/frontend-slides/examples/n8n-jupviec-automation.pptx +0 -0
  110. package/templates/.agent/skills/frontend-slides/html-template.md +347 -0
  111. package/templates/.agent/skills/frontend-slides/scripts/export-pptx.py +58 -0
  112. package/templates/.agent/skills/frontend-slides/scripts/extract-pptx.py +96 -0
  113. package/templates/.agent/skills/frontend-slides/viewport-base.css +153 -0
  114. package/templates/.agent/skills/game-development/2d-games/SKILL.md +119 -0
  115. package/templates/.agent/skills/game-development/3d-games/SKILL.md +135 -0
  116. package/templates/.agent/skills/game-development/SKILL.md +167 -0
  117. package/templates/.agent/skills/game-development/game-art/SKILL.md +185 -0
  118. package/templates/.agent/skills/game-development/game-audio/SKILL.md +190 -0
  119. package/templates/.agent/skills/game-development/game-design/SKILL.md +129 -0
  120. package/templates/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
  121. package/templates/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
  122. package/templates/.agent/skills/game-development/pc-games/SKILL.md +144 -0
  123. package/templates/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
  124. package/templates/.agent/skills/game-development/web-games/SKILL.md +150 -0
  125. package/templates/.agent/skills/geo-fundamentals/SKILL.md +156 -0
  126. package/templates/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
  127. package/templates/.agent/skills/growth-engine/SKILL.md +244 -0
  128. package/templates/.agent/skills/i18n-localization/SKILL.md +154 -0
  129. package/templates/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  130. package/templates/.agent/skills/lint-and-validate/SKILL.md +45 -0
  131. package/templates/.agent/skills/lint-and-validate/scripts/lint_runner.py +172 -0
  132. package/templates/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
  133. package/templates/.agent/skills/marketing-report-expert/SKILL.md +70 -0
  134. package/templates/.agent/skills/mcp-builder/SKILL.md +176 -0
  135. package/templates/.agent/skills/minimax-docx/LICENSE +21 -0
  136. package/templates/.agent/skills/minimax-docx/SKILL.md +274 -0
  137. package/templates/.agent/skills/minimax-docx/assets/styles/academic_styles.xml +250 -0
  138. package/templates/.agent/skills/minimax-docx/assets/styles/corporate_styles.xml +284 -0
  139. package/templates/.agent/skills/minimax-docx/assets/styles/default_styles.xml +449 -0
  140. package/templates/.agent/skills/minimax-docx/assets/xsd/aesthetic-rules.xsd +470 -0
  141. package/templates/.agent/skills/minimax-docx/assets/xsd/business-rules.xsd +130 -0
  142. package/templates/.agent/skills/minimax-docx/assets/xsd/common-types.xsd +159 -0
  143. package/templates/.agent/skills/minimax-docx/assets/xsd/wml-subset.xsd +589 -0
  144. package/templates/.agent/skills/minimax-docx/references/cjk_typography.md +357 -0
  145. package/templates/.agent/skills/minimax-docx/references/cjk_university_template_guide.md +184 -0
  146. package/templates/.agent/skills/minimax-docx/references/comments_guide.md +191 -0
  147. package/templates/.agent/skills/minimax-docx/references/design_good_bad_examples.md +829 -0
  148. package/templates/.agent/skills/minimax-docx/references/design_principles.md +819 -0
  149. package/templates/.agent/skills/minimax-docx/references/openxml_element_order.md +308 -0
  150. package/templates/.agent/skills/minimax-docx/references/openxml_encyclopedia_part1.md +4061 -0
  151. package/templates/.agent/skills/minimax-docx/references/openxml_encyclopedia_part2.md +2820 -0
  152. package/templates/.agent/skills/minimax-docx/references/openxml_encyclopedia_part3.md +3381 -0
  153. package/templates/.agent/skills/minimax-docx/references/openxml_namespaces.md +82 -0
  154. package/templates/.agent/skills/minimax-docx/references/openxml_units.md +72 -0
  155. package/templates/.agent/skills/minimax-docx/references/scenario_a_create.md +284 -0
  156. package/templates/.agent/skills/minimax-docx/references/scenario_b_edit_content.md +295 -0
  157. package/templates/.agent/skills/minimax-docx/references/scenario_c_apply_template.md +456 -0
  158. package/templates/.agent/skills/minimax-docx/references/track_changes_guide.md +200 -0
  159. package/templates/.agent/skills/minimax-docx/references/troubleshooting.md +506 -0
  160. package/templates/.agent/skills/minimax-docx/references/typography_guide.md +294 -0
  161. package/templates/.agent/skills/minimax-docx/references/xsd_validation_guide.md +158 -0
  162. package/templates/.agent/skills/minimax-docx/scripts/doc_to_docx.sh +40 -0
  163. package/templates/.agent/skills/minimax-docx/scripts/docx_preview.sh +37 -0
  164. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Cli/MiniMaxAIDocx.Cli.csproj +19 -0
  165. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Cli/Program.cs +18 -0
  166. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/AnalyzeCommand.cs +147 -0
  167. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/ApplyTemplateCommand.cs +322 -0
  168. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/CreateCommand.cs +324 -0
  169. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/DiffCommand.cs +155 -0
  170. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/EditContentCommand.cs +487 -0
  171. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/FixOrderCommand.cs +108 -0
  172. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/MergeRunsCommand.cs +122 -0
  173. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/ValidateCommand.cs +107 -0
  174. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/MiniMaxAIDocx.Core.csproj +15 -0
  175. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/CommentSynchronizer.cs +169 -0
  176. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/ElementOrder.cs +80 -0
  177. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/NamespaceConstants.cs +42 -0
  178. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/RunMerger.cs +81 -0
  179. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/StyleAnalyzer.cs +81 -0
  180. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/TrackChangesHelper.cs +99 -0
  181. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/UnitConverter.cs +23 -0
  182. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples.cs +1832 -0
  183. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch1.cs +910 -0
  184. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch2.cs +999 -0
  185. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch3.cs +1048 -0
  186. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch4.cs +1038 -0
  187. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/CharacterFormattingSamples.cs +1020 -0
  188. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/DocumentCreationSamples.cs +1121 -0
  189. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/FieldAndTocSamples.cs +624 -0
  190. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/FootnoteAndCommentSamples.cs +675 -0
  191. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/HeaderFooterSamples.cs +838 -0
  192. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ImageSamples.cs +917 -0
  193. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ListAndNumberingSamples.cs +826 -0
  194. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ParagraphFormattingSamples.cs +1199 -0
  195. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/StyleSystemSamples.cs +1487 -0
  196. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/TableSamples.cs +1163 -0
  197. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/TrackChangesSamples.cs +595 -0
  198. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/CjkHelper.cs +39 -0
  199. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/FontDefaults.cs +24 -0
  200. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/PageSizes.cs +20 -0
  201. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/BusinessRuleValidator.cs +224 -0
  202. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/GateCheckValidator.cs +148 -0
  203. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/ValidationResult.cs +23 -0
  204. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/XsdValidator.cs +69 -0
  205. package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.slnx +4 -0
  206. package/templates/.agent/skills/minimax-docx/scripts/env_check.sh +196 -0
  207. package/templates/.agent/skills/minimax-docx/scripts/setup.ps1 +274 -0
  208. package/templates/.agent/skills/minimax-docx/scripts/setup.sh +504 -0
  209. package/templates/.agent/skills/minimax-multimodal-toolkit/SKILL.md +359 -0
  210. package/templates/.agent/skills/minimax-pdf/README.md +222 -0
  211. package/templates/.agent/skills/minimax-pdf/SKILL.md +201 -0
  212. package/templates/.agent/skills/minimax-pdf/design/design.md +381 -0
  213. package/templates/.agent/skills/minimax-pdf/scripts/cover.py +1579 -0
  214. package/templates/.agent/skills/minimax-pdf/scripts/fill_inspect.py +200 -0
  215. package/templates/.agent/skills/minimax-pdf/scripts/fill_write.py +242 -0
  216. package/templates/.agent/skills/minimax-pdf/scripts/make.sh +491 -0
  217. package/templates/.agent/skills/minimax-pdf/scripts/merge.py +112 -0
  218. package/templates/.agent/skills/minimax-pdf/scripts/palette.py +559 -0
  219. package/templates/.agent/skills/minimax-pdf/scripts/reformat_parse.py +374 -0
  220. package/templates/.agent/skills/minimax-pdf/scripts/render_body.py +1055 -0
  221. package/templates/.agent/skills/minimax-pdf/scripts/render_cover.cjs +111 -0
  222. package/templates/.agent/skills/minimax-xlsx/SKILL.md +138 -0
  223. package/templates/.agent/skills/minimax-xlsx/references/create.md +691 -0
  224. package/templates/.agent/skills/minimax-xlsx/references/edit.md +684 -0
  225. package/templates/.agent/skills/minimax-xlsx/references/fix.md +37 -0
  226. package/templates/.agent/skills/minimax-xlsx/references/format.md +768 -0
  227. package/templates/.agent/skills/minimax-xlsx/references/ooxml-cheatsheet.md +231 -0
  228. package/templates/.agent/skills/minimax-xlsx/references/read-analyze.md +97 -0
  229. package/templates/.agent/skills/minimax-xlsx/references/validate.md +772 -0
  230. package/templates/.agent/skills/minimax-xlsx/scripts/formula_check.py +422 -0
  231. package/templates/.agent/skills/minimax-xlsx/scripts/libreoffice_recalc.py +248 -0
  232. package/templates/.agent/skills/minimax-xlsx/scripts/shared_strings_builder.py +163 -0
  233. package/templates/.agent/skills/minimax-xlsx/scripts/style_audit.py +575 -0
  234. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_add_column.py +395 -0
  235. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_insert_row.py +274 -0
  236. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_pack.py +87 -0
  237. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_reader.py +362 -0
  238. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_shift_rows.py +396 -0
  239. package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_unpack.py +130 -0
  240. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/[Content_Types].xml +9 -0
  241. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/_rels/.rels +6 -0
  242. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/_rels/workbook.xml.rels +19 -0
  243. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/sharedStrings.xml +33 -0
  244. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/styles.xml +160 -0
  245. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/workbook.xml +30 -0
  246. package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/worksheets/sheet1.xml +70 -0
  247. package/templates/.agent/skills/mobile-design/SKILL.md +394 -0
  248. package/templates/.agent/skills/mobile-design/decision-trees.md +516 -0
  249. package/templates/.agent/skills/mobile-design/mobile-backend.md +491 -0
  250. package/templates/.agent/skills/mobile-design/mobile-color-system.md +420 -0
  251. package/templates/.agent/skills/mobile-design/mobile-debugging.md +122 -0
  252. package/templates/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
  253. package/templates/.agent/skills/mobile-design/mobile-navigation.md +458 -0
  254. package/templates/.agent/skills/mobile-design/mobile-performance.md +767 -0
  255. package/templates/.agent/skills/mobile-design/mobile-testing.md +356 -0
  256. package/templates/.agent/skills/mobile-design/mobile-typography.md +433 -0
  257. package/templates/.agent/skills/mobile-design/platform-android.md +666 -0
  258. package/templates/.agent/skills/mobile-design/platform-ios.md +561 -0
  259. package/templates/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
  260. package/templates/.agent/skills/mobile-design/touch-psychology.md +537 -0
  261. package/templates/.agent/skills/nestjs-expert/SKILL.md +552 -0
  262. package/templates/.agent/skills/nextjs-best-practices/SKILL.md +203 -0
  263. package/templates/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
  264. package/templates/.agent/skills/parallel-agents/SKILL.md +175 -0
  265. package/templates/.agent/skills/performance-profiling/SKILL.md +143 -0
  266. package/templates/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
  267. package/templates/.agent/skills/plan-writing/SKILL.md +152 -0
  268. package/templates/.agent/skills/powershell-windows/SKILL.md +167 -0
  269. package/templates/.agent/skills/ppc-advertising/SKILL.md +183 -475
  270. package/templates/.agent/skills/pptx-generator/SKILL.md +249 -0
  271. package/templates/.agent/skills/pptx-generator/references/design-system.md +392 -0
  272. package/templates/.agent/skills/pptx-generator/references/editing.md +162 -0
  273. package/templates/.agent/skills/pptx-generator/references/pitfalls.md +112 -0
  274. package/templates/.agent/skills/pptx-generator/references/pptxgenjs.md +420 -0
  275. package/templates/.agent/skills/pptx-generator/references/slide-types.md +413 -0
  276. package/templates/.agent/skills/prisma-expert/SKILL.md +355 -0
  277. package/templates/.agent/skills/python-patterns/SKILL.md +441 -0
  278. package/templates/.agent/skills/react-patterns/SKILL.md +198 -0
  279. package/templates/.agent/skills/red-team-tactics/SKILL.md +199 -0
  280. package/templates/.agent/skills/remotion-best-practices/SKILL.md +45 -111
  281. package/templates/.agent/skills/remotion-best-practices/rules/3d.md +4 -4
  282. package/templates/.agent/skills/remotion-best-practices/rules/animations.md +5 -7
  283. package/templates/.agent/skills/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
  284. package/templates/.agent/skills/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
  285. package/templates/.agent/skills/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +103 -0
  286. package/templates/.agent/skills/remotion-best-practices/rules/assets.md +78 -0
  287. package/templates/.agent/skills/remotion-best-practices/rules/audio-visualization.md +198 -0
  288. package/templates/.agent/skills/remotion-best-practices/rules/audio.md +1 -4
  289. package/templates/.agent/skills/remotion-best-practices/rules/calculate-metadata.md +47 -17
  290. package/templates/.agent/skills/remotion-best-practices/rules/can-decode.md +75 -0
  291. package/templates/.agent/skills/remotion-best-practices/rules/charts.md +80 -48
  292. package/templates/.agent/skills/remotion-best-practices/rules/compositions.md +22 -14
  293. package/templates/.agent/skills/remotion-best-practices/rules/display-captions.md +79 -21
  294. package/templates/.agent/skills/remotion-best-practices/rules/extract-frames.md +229 -0
  295. package/templates/.agent/skills/remotion-best-practices/rules/ffmpeg.md +38 -0
  296. package/templates/.agent/skills/remotion-best-practices/rules/fonts.md +96 -54
  297. package/templates/.agent/skills/remotion-best-practices/rules/get-audio-duration.md +58 -0
  298. package/templates/.agent/skills/remotion-best-practices/rules/get-video-dimensions.md +68 -0
  299. package/templates/.agent/skills/remotion-best-practices/rules/get-video-duration.md +60 -0
  300. package/templates/.agent/skills/remotion-best-practices/rules/gifs.md +21 -18
  301. package/templates/.agent/skills/remotion-best-practices/rules/images.md +6 -2
  302. package/templates/.agent/skills/remotion-best-practices/rules/import-srt-captions.md +69 -0
  303. package/templates/.agent/skills/remotion-best-practices/rules/light-leaks.md +73 -0
  304. package/templates/.agent/skills/remotion-best-practices/rules/lottie.md +10 -7
  305. package/templates/.agent/skills/remotion-best-practices/rules/maps.md +412 -0
  306. package/templates/.agent/skills/remotion-best-practices/rules/measuring-dom-nodes.md +34 -0
  307. package/templates/.agent/skills/remotion-best-practices/rules/measuring-text.md +140 -0
  308. package/templates/.agent/skills/remotion-best-practices/rules/parameters.md +109 -0
  309. package/templates/.agent/skills/remotion-best-practices/rules/sequencing.md +13 -1
  310. package/templates/.agent/skills/remotion-best-practices/rules/sfx.md +26 -0
  311. package/templates/.agent/skills/remotion-best-practices/rules/subtitles.md +36 -0
  312. package/templates/.agent/skills/remotion-best-practices/rules/tailwind.md +11 -0
  313. package/templates/.agent/skills/remotion-best-practices/rules/text-animations.md +4 -115
  314. package/templates/.agent/skills/remotion-best-practices/rules/timing.md +19 -19
  315. package/templates/.agent/skills/remotion-best-practices/rules/transcribe-captions.md +70 -0
  316. package/templates/.agent/skills/remotion-best-practices/rules/transitions.md +117 -42
  317. package/templates/.agent/skills/remotion-best-practices/rules/transparent-videos.md +106 -0
  318. package/templates/.agent/skills/remotion-best-practices/rules/trimming.md +51 -0
  319. package/templates/.agent/skills/remotion-best-practices/rules/voiceover.md +99 -0
  320. package/templates/.agent/skills/seo-fundamentals/SKILL.md +83 -441
  321. package/templates/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
  322. package/templates/.agent/skills/server-management/SKILL.md +161 -0
  323. package/templates/.agent/skills/systematic-debugging/SKILL.md +109 -0
  324. package/templates/.agent/skills/tdd-workflow/SKILL.md +149 -0
  325. package/templates/.agent/skills/testing-patterns/SKILL.md +178 -0
  326. package/templates/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
  327. package/templates/.agent/skills/tutorial-video-expert/SKILL.md +88 -0
  328. package/templates/.agent/skills/typescript-expert/SKILL.md +429 -0
  329. package/templates/.agent/skills/ui-ux-pro-max/SKILL.md +1 -1
  330. package/templates/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  331. package/templates/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  332. package/templates/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
  333. package/templates/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  334. package/templates/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  335. package/templates/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
  336. package/templates/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  337. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  338. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  339. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  340. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  341. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  342. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  343. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  344. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  345. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  346. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  347. package/templates/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  348. package/templates/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
  349. package/templates/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  350. package/templates/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  351. package/templates/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  352. package/templates/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  353. package/templates/.agent/skills/ui-ux-pro-max/scripts/core.py +257 -0
  354. package/templates/.agent/skills/ui-ux-pro-max/scripts/design_system.py +487 -0
  355. package/templates/.agent/skills/ui-ux-pro-max/scripts/search.py +76 -0
  356. package/templates/.agent/skills/vision-analysis/SKILL.md +174 -0
  357. package/templates/.agent/skills/vue-expert/SKILL.md +374 -0
  358. package/templates/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
  359. package/templates/.agent/skills/vulnerability-scanner/checklists.md +121 -0
  360. package/templates/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
  361. package/templates/.agent/skills/webapp-testing/SKILL.md +187 -0
  362. package/templates/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
  363. package/templates/.agent/workflows/analyze.md +3 -0
  364. package/templates/.agent/workflows/brainstorm.md +113 -0
  365. package/templates/.agent/workflows/brand-report.md +44 -0
  366. package/templates/.agent/workflows/create.md +59 -0
  367. package/templates/.agent/workflows/debug.md +103 -0
  368. package/templates/.agent/workflows/deploy.md +176 -0
  369. package/templates/.agent/workflows/enhance.md +63 -0
  370. package/templates/.agent/workflows/orchestrate.md +237 -0
  371. package/templates/.agent/workflows/plan.md +89 -0
  372. package/templates/.agent/workflows/preview.md +80 -0
  373. package/templates/.agent/workflows/report.md +49 -0
  374. package/templates/.agent/workflows/status.md +86 -0
  375. package/templates/.agent/workflows/test.md +144 -0
  376. package/templates/.agent/workflows/ui-ux-pro-max.md +231 -0
@@ -0,0 +1,294 @@
1
+ # Professional Document Design & Typography Guide
2
+
3
+ ## Table of Contents
4
+ 1. [Font Pairing](#font-pairing)
5
+ 2. [Font Sizes by Document Type](#font-sizes-by-document-type)
6
+ 3. [Line Spacing](#line-spacing)
7
+ 4. [Paragraph Spacing](#paragraph-spacing)
8
+ 5. [Page Layout](#page-layout)
9
+ 6. [Table Design](#table-design)
10
+ 7. [Color Schemes](#color-schemes)
11
+ 8. [Visual Hierarchy](#visual-hierarchy)
12
+ 9. [Quick Reference Defaults](#quick-reference-defaults)
13
+
14
+ ---
15
+
16
+ ## Font Pairing
17
+
18
+ ### Recommended Pairs
19
+
20
+ | Headings | Body | Style | Best For |
21
+ |----------|------|-------|----------|
22
+ | Calibri Light | Calibri | Modern sans | Corporate reports |
23
+ | Aptos | Aptos | Office 365 default | Modern business docs |
24
+ | Cambria | Calibri | Serif + sans | Academic-corporate hybrid |
25
+ | Times New Roman | Times New Roman | Traditional serif | Academic, legal |
26
+ | Arial | Arial | Clean sans | Memos, internal docs |
27
+ | Georgia | Garamond | Classical serif pair | Formal reports |
28
+
29
+ ### Rules
30
+
31
+ - **Limit**: 2 font families max (3 if CJK mixed)
32
+ - **Contrast**: Pair serif with sans-serif, OR use weight contrast within one family
33
+ - **Consistency**: Same font for all body text, same font for all headings
34
+
35
+ ---
36
+
37
+ ## Font Sizes by Document Type
38
+
39
+ | Document Type | Body | H1 | H2 | H3 | Footnotes |
40
+ |--------------|------|----|----|----|----|
41
+ | **Business report** | 11pt | 18-20pt | 14-16pt | 12-13pt bold | 9pt |
42
+ | **Business letter** | 11-12pt | — | — | — | 9-10pt |
43
+ | **Memo** | 11pt | 14pt bold | 12pt bold | 11pt bold | 9pt |
44
+ | **Contract / Legal** | 12pt | 14pt bold caps | 12pt bold | 12pt bold | 10pt |
45
+ | **Academic (APA 7)** | 12pt | 12pt bold center | 12pt bold left | 12pt bold italic | 10pt |
46
+ | **Resume / CV** | 10-11pt | 14-16pt | 12pt bold | 11pt bold | 8-9pt |
47
+ | **Chinese 公文** | 三号(16pt) | 二号(22pt) | 三号(16pt) | 四号(14pt) | 小四(12pt) |
48
+
49
+ ### OpenXML `w:sz` Values (half-points)
50
+
51
+ | Point Size | `w:sz` Val | Common Use |
52
+ |-----------|-----------|------------|
53
+ | 9pt | 18 | Footnotes, captions |
54
+ | 10pt | 20 | Compact body text |
55
+ | 10.5pt (五号) | 21 | CJK body small |
56
+ | 11pt | 22 | Standard body (Calibri) |
57
+ | 12pt (小四) | 24 | Standard body (TNR), CJK |
58
+ | 14pt (四号) | 28 | CJK body, subheading |
59
+ | 16pt (三号) | 32 | CJK heading, western H2 |
60
+ | 18pt (小二) | 36 | Western H1 |
61
+ | 22pt (二号) | 44 | CJK document title |
62
+ | 26pt (一号) | 52 | Large title |
63
+
64
+ ---
65
+
66
+ ## Line Spacing
67
+
68
+ | Spacing | OpenXML `w:spacing line` | When to Use |
69
+ |---------|--------------------------|-------------|
70
+ | Single (1.0) | `line="240"` lineRule="auto" | Tables, footnotes, captions |
71
+ | 1.08 (MS default) | `line="259"` lineRule="auto" | Modern Office documents |
72
+ | 1.15 | `line="276"` lineRule="auto" | Business reports — best general default |
73
+ | 1.5 | `line="360"` lineRule="auto" | Some academic, drafts for markup |
74
+ | Double (2.0) | `line="480"` lineRule="auto" | APA/MLA manuscripts, legal briefs |
75
+ | Fixed 28pt | `line="560"` lineRule="exact" | Chinese 公文 (GB/T 9704) |
76
+
77
+ **`lineRule` values**: `auto` = proportional (240 = 1 line), `exact` = fixed height, `atLeast` = minimum.
78
+
79
+ ---
80
+
81
+ ## Paragraph Spacing
82
+
83
+ | Element | Space Before (DXA) | Space After (DXA) |
84
+ |---------|-------------------|-------------------|
85
+ | Body paragraph | 0 | 120-160 (6-8pt) |
86
+ | Heading 1 | 480 (24pt) | 120-240 |
87
+ | Heading 2 | 360 (18pt) | 120 |
88
+ | Heading 3 | 240 (12pt) | 80-120 |
89
+ | List items | 0 | 40-80 (2-4pt) |
90
+ | Block quote | 120-240 | 120-240 |
91
+ | Table/Figure caption | 240 | 240 |
92
+
93
+ **Principle**: Space before a heading > space after, so heading visually "belongs to" content below (2:1 or 3:1 ratio).
94
+
95
+ ---
96
+
97
+ ## Page Layout
98
+
99
+ ### Margins by Document Type
100
+
101
+ | Document Type | Top | Bottom | Left | Right | DXA Values |
102
+ |--------------|-----|--------|------|-------|------------|
103
+ | **Standard business** | 1 in | 1 in | 1 in | 1 in | 1440 all |
104
+ | **Academic (APA/MLA)** | 1 in | 1 in | 1 in | 1 in | 1440 all |
105
+ | **Thesis (binding)** | 1 in | 1 in | 1.5 in | 1 in | T/B:1440 L:2160 R:1440 |
106
+ | **Chinese 公文** | 37mm | 35mm | 28mm | 26mm | T:2098 B:1984 L:1588 R:1474 |
107
+ | **Narrow modern** | 0.75 in | 0.75 in | 0.75 in | 0.75 in | 1080 all |
108
+ | **Wide** | 1 in | 1 in | 2 in | 2 in | T/B:1440 L/R:2880 |
109
+
110
+ ### Page Sizes
111
+
112
+ | Size | Width × Height | DXA Width × Height |
113
+ |------|---------------|-------------------|
114
+ | US Letter | 8.5 × 11 in | 12240 × 15840 |
115
+ | A4 | 210 × 297 mm | 11906 × 16838 |
116
+ | Legal | 8.5 × 14 in | 12240 × 20160 |
117
+ | A3 | 297 × 420 mm | 16838 × 23811 |
118
+
119
+ **Rule**: A4 for international audiences, Letter for US-only.
120
+
121
+ ### Page Numbers
122
+
123
+ | Convention | Placement | Common In |
124
+ |-----------|-----------|-----------|
125
+ | Bottom center | Footer, centered | Academic, government |
126
+ | Bottom right | Footer, right-aligned | Business reports |
127
+ | "Page X of Y" | Footer, right-aligned | Contracts, legal |
128
+ | Bottom outside | Alternating L/R for odd/even | Books, bound reports |
129
+ | Chinese 公文 | Bottom center, format "-X-" | Government documents |
130
+
131
+ ---
132
+
133
+ ## Table Design
134
+
135
+ ### Style Patterns
136
+
137
+ | Style | Description | When to Use |
138
+ |-------|------------|-------------|
139
+ | **Three-line (三线表)** | Top rule + header-bottom rule + bottom rule only, no vertical lines | Academic, scientific — gold standard |
140
+ | **Banded rows** | Alternating white/light-gray, no borders | Modern corporate |
141
+ | **Light grid** | Thin 0.5pt gray borders all cells | Business reports |
142
+ | **Header-accent** | Dark/colored header row, no other borders | Modern templates |
143
+ | **Full border** | All cells bordered | Financial tables, forms |
144
+
145
+ ### Border Weights (OpenXML `w:sz` in eighths of a point)
146
+
147
+ | Visual | `Size` value | Points |
148
+ |--------|-------------|--------|
149
+ | Hairline | 2 | 0.25pt |
150
+ | Thin | 4 | 0.5pt |
151
+ | Medium | 8 | 1pt |
152
+ | Thick | 12 | 1.5pt |
153
+
154
+ ### Cell Padding
155
+
156
+ - **Minimum**: 0.05 in (28 DXA) — too tight for most uses
157
+ - **Recommended**: 0.08-0.1 in (57-72 DXA) top/bottom, 0.1-0.15 in (72-108 DXA) left/right
158
+ - **Spacious**: 0.12 in (86 DXA) top/bottom, 0.19 in (137 DXA) left/right
159
+
160
+ ### Header Row Best Practices
161
+
162
+ - Bold text, optionally SMALL CAPS
163
+ - Background: light gray (#F2F2F2) or dark with white text (#2F5496 + white)
164
+ - Repeat header row on each page (`w:tblHeader` on `w:trPr`)
165
+ - Right-align number columns, left-align text columns
166
+
167
+ ---
168
+
169
+ ## Color Schemes
170
+
171
+ ### Corporate / Business
172
+
173
+ | Element | Hex | Notes |
174
+ |---------|-----|-------|
175
+ | Primary heading | #1F3864 | Dark navy, authoritative |
176
+ | Secondary heading | #2E75B6 | Medium blue |
177
+ | Body text | #333333 | Near-black (softer than #000) |
178
+ | Table header bg | #4472C4 | With white #FFFFFF text |
179
+ | Alternate row | #F2F2F2 | Subtle gray banding |
180
+ | Hyperlink | #0563C1 | Standard blue |
181
+
182
+ ### Academic
183
+
184
+ All text **#000000** (black). Color only in figures/charts.
185
+
186
+ ### Chinese Government (公文)
187
+
188
+ | Element | Color |
189
+ |---------|-------|
190
+ | All body text | Black (required) |
191
+ | 红头 agency name | Red #FF0000 |
192
+ | 红线 separator | Red #FF0000 |
193
+ | 公章 seal | Red |
194
+
195
+ ### Accessibility
196
+
197
+ - Minimum contrast ratio 4.5:1 for normal text, 3:1 for large text (WCAG AA)
198
+ - Never use color as sole means of conveying information
199
+ - Ensure distinguishable in grayscale for printed documents
200
+
201
+ ---
202
+
203
+ ## Visual Hierarchy
204
+
205
+ ### Heading Levels by Document Length
206
+
207
+ | Pages | Recommended Levels |
208
+ |-------|-------------------|
209
+ | 1-5 (memo, letter) | 1-2 levels |
210
+ | 5-20 (report) | 2-3 levels |
211
+ | 20-100 (long report) | 3-4 levels |
212
+ | 100+ (thesis) | 4-5 levels max |
213
+
214
+ ### Numbering Systems
215
+
216
+ **Decimal (ISO 2145)** — technical, international:
217
+ ```
218
+ 1 → 1.1 → 1.1.1 → 1.1.1.1
219
+ ```
220
+
221
+ **Traditional outline (US legal):**
222
+ ```
223
+ I. → A. → 1. → a. → (1) → (a)
224
+ ```
225
+
226
+ **Chinese government (公文):**
227
+ ```
228
+ 一、(黑体) → (一)(楷体) → 1.(仿宋加粗) → (1)(仿宋)
229
+ ```
230
+
231
+ ### Typography Emphasis
232
+
233
+ | Format | Use For | Avoid |
234
+ |--------|---------|-------|
235
+ | **Bold** | Key terms, headings, emphasis | Entire paragraphs |
236
+ | *Italic* | Titles, foreign words, mild emphasis | Long passages (hard to read) |
237
+ | Underline | Hyperlinks only (digital) | General emphasis (archaic) |
238
+ | SMALL CAPS | Legal defined terms, acronyms | Body text |
239
+ | ALL CAPS | Very short headings | Long text (reduces readability 15%) |
240
+
241
+ **CJK note**: Chinese/Japanese have no true italic. Use bold for emphasis.
242
+
243
+ ### List Formatting
244
+
245
+ **Bullets** (unordered): `•` → `○` → `■` by level
246
+
247
+ **Numbers** (ordered): `1.` → `a.` → `i.` by level
248
+
249
+ - Indent each level 0.25-0.5 in (360-720 DXA)
250
+ - Hanging indent: number hangs, text aligns consistently
251
+ - Spacing between items: 2-4pt (less than paragraph spacing)
252
+
253
+ ---
254
+
255
+ ## Quick Reference Defaults
256
+
257
+ ### Business Report (Safe Default)
258
+
259
+ | Parameter | Value | OpenXML |
260
+ |-----------|-------|---------|
261
+ | Body font | Calibri 11pt | sz="22", RunFonts Ascii="Calibri" |
262
+ | H1 | 18pt Bold Dark Blue | sz="36", Bold, Color="#1F3864" |
263
+ | H2 | 14pt Bold Dark Blue | sz="28", Bold |
264
+ | H3 | 12pt Bold Dark Blue | sz="24", Bold |
265
+ | Line spacing | 1.15 | line="276" lineRule="auto" |
266
+ | Para after | 8pt | after="160" |
267
+ | Margins | 1 in all | 1440 DXA all |
268
+ | Page size | Letter or A4 | 12240×15840 or 11906×16838 |
269
+ | Page numbers | Bottom right, 10pt | |
270
+
271
+ ### Academic Paper (APA 7th)
272
+
273
+ | Parameter | Value | OpenXML |
274
+ |-----------|-------|---------|
275
+ | Font | Times New Roman 12pt | sz="24" |
276
+ | Line spacing | Double | line="480" lineRule="auto" |
277
+ | First-line indent | 0.5 in | ind firstLine="720" |
278
+ | Margins | 1 in all | 1440 DXA all |
279
+ | Page numbers | Top right | Header, right-aligned |
280
+
281
+ ### Chinese Government (公文 GB/T 9704)
282
+
283
+ | Parameter | Value | OpenXML |
284
+ |-----------|-------|---------|
285
+ | Body font | 仿宋_GB2312 三号 | sz="32", EastAsia="FangSong_GB2312" |
286
+ | Title | 小标宋 二号 centered | sz="44" |
287
+ | L1 heading | 黑体 三号 | sz="32", EastAsia="SimHei" |
288
+ | L2 heading | 楷体 三号 | sz="32", EastAsia="KaiTi_GB2312" |
289
+ | Line spacing | Fixed 28pt | line="560" lineRule="exact" |
290
+ | Margins | T:37mm B:35mm L:28mm R:26mm | T:2098 B:1984 L:1588 R:1474 |
291
+ | Page size | A4 | 11906×16838 |
292
+ | Page numbers | Bottom center, 宋体 四号, "-X-" | sz="28" |
293
+ | Chars/line | 28 | |
294
+ | Lines/page | 22 | |
@@ -0,0 +1,158 @@
1
+ # XSD Validation Guide
2
+
3
+ ## Running Validation
4
+
5
+ ```bash
6
+ # Validate against the WML subset schema
7
+ dotnet run --project minimax-docx validate input.docx --xsd assets/xsd/wml-subset.xsd
8
+
9
+ # Validate against business rules (REQUIRED for Scenario C gate-check)
10
+ dotnet run --project minimax-docx validate input.docx --xsd assets/xsd/business-rules.xsd
11
+
12
+ # Validate against both
13
+ dotnet run --project minimax-docx validate input.docx --xsd assets/xsd/wml-subset.xsd --xsd assets/xsd/business-rules.xsd
14
+ ```
15
+
16
+ ---
17
+
18
+ ## What wml-subset.xsd Covers
19
+
20
+ The subset schema validates the most common WordprocessingML elements:
21
+
22
+ | Area | Elements Validated |
23
+ |------|--------------------|
24
+ | Document structure | `w:document`, `w:body`, `w:sectPr` |
25
+ | Paragraphs | `w:p`, `w:pPr`, `w:r`, `w:rPr`, `w:t` |
26
+ | Tables | `w:tbl`, `w:tblPr`, `w:tblGrid`, `w:tr`, `w:tc` |
27
+ | Styles | `w:styles`, `w:style`, `w:docDefaults` |
28
+ | Lists | `w:numbering`, `w:abstractNum`, `w:num` |
29
+ | Headers/Footers | `w:hdr`, `w:ftr` |
30
+ | Track Changes | `w:ins`, `w:del`, `w:rPrChange`, `w:pPrChange` |
31
+ | Comments | `w:comment`, `w:commentRangeStart`, `w:commentRangeEnd` |
32
+
33
+ ### What It Does NOT Cover
34
+
35
+ - DrawingML elements (`a:`, `pic:`, `wp:`) — image/shape internals
36
+ - VML elements (`v:`, `o:`) — legacy shapes
37
+ - Math elements (`m:`) — equations
38
+ - Extended namespaces (`w14`, `w15`, `w16*`) — vendor extensions
39
+ - Custom XML data parts
40
+ - Relationship and content type validation (structural, not schema-based)
41
+
42
+ ---
43
+
44
+ ## Interpreting Errors
45
+
46
+ ### Element Ordering Error
47
+
48
+ ```
49
+ ERROR: Element 'w:jc' is not expected at this position.
50
+ Expected: w:spacing, w:ind, w:contextualSpacing, ...
51
+ Location: /word/document.xml, line 45
52
+ ```
53
+
54
+ **Cause**: Child elements are in wrong order. See `references/openxml_element_order.md`.
55
+ **Fix**: Reorder children to match schema sequence.
56
+
57
+ ### Missing Required Element
58
+
59
+ ```
60
+ ERROR: Element 'w:tbl' missing required child 'w:tblPr'.
61
+ Location: /word/document.xml, line 102
62
+ ```
63
+
64
+ **Cause**: A required child element is absent.
65
+ **Fix**: Add the missing element. Tables require both `w:tblPr` and `w:tblGrid`.
66
+
67
+ ### Invalid Attribute Value
68
+
69
+ ```
70
+ ERROR: Attribute 'w:val' has invalid value 'middle'.
71
+ Expected: 'left', 'center', 'right', 'both', 'distribute'
72
+ Location: /word/document.xml, line 78
73
+ ```
74
+
75
+ **Cause**: An attribute value is not in the allowed enumeration.
76
+ **Fix**: Use one of the valid values listed in the error.
77
+
78
+ ### Unexpected Element
79
+
80
+ ```
81
+ ERROR: Element 'w:customTag' is not expected.
82
+ Location: /word/document.xml, line 200
83
+ ```
84
+
85
+ **Cause**: An element not defined in the subset schema. May be a vendor extension.
86
+ **Fix**: Check if it's a known extension (w14/w15/w16). If so, it's likely safe. If unknown, investigate or remove.
87
+
88
+ ---
89
+
90
+ ## Business Rules XSD
91
+
92
+ The `business-rules.xsd` schema enforces project-specific constraints beyond standard OpenXML validity:
93
+
94
+ | Rule | What It Checks |
95
+ |------|---------------|
96
+ | Required styles | `Normal`, `Heading1`-`Heading3`, `TableGrid` must exist in `styles.xml` |
97
+ | Font consistency | `w:docDefaults` fonts match expected values |
98
+ | Margin ranges | Page margins within acceptable range (720-2160 DXA) |
99
+ | Page size | Must be A4 or Letter |
100
+ | Heading hierarchy | No gaps (e.g., H1 → H3 without H2) |
101
+ | Style chain | `w:basedOn` references must resolve to existing styles |
102
+
103
+ ### Extending Business Rules
104
+
105
+ To add project-specific rules, add `xs:assert` or `xs:restriction` elements:
106
+
107
+ ```xml
108
+ <!-- Require minimum 1-inch margins -->
109
+ <xs:element name="pgMar">
110
+ <xs:complexType>
111
+ <xs:attribute name="top" type="xs:integer">
112
+ <xs:restriction>
113
+ <xs:minInclusive value="1440" />
114
+ </xs:restriction>
115
+ </xs:attribute>
116
+ </xs:complexType>
117
+ </xs:element>
118
+ ```
119
+
120
+ ---
121
+
122
+ ## Gate-Check: Scenario C Hard Gate
123
+
124
+ In Scenario C (Apply Template), the output document **MUST** pass `business-rules.xsd` validation before delivery:
125
+
126
+ ```
127
+ 1. Apply template → output.docx
128
+ 2. Validate → dotnet run ... validate output.docx --xsd business-rules.xsd
129
+ 3. PASS? → Deliver to user
130
+ 4. FAIL? → Fix issues, re-validate, repeat until PASS
131
+ ```
132
+
133
+ **This is a hard gate.** A document that fails business-rules validation is NOT deliverable, even if it opens correctly in Word.
134
+
135
+ ---
136
+
137
+ ## False Positives
138
+
139
+ ### Vendor Extensions
140
+
141
+ Elements from extended namespaces (`w14`, `w15`, `w16*`) are not in the subset schema and may trigger warnings:
142
+
143
+ ```
144
+ WARNING: Element '{http://schemas.microsoft.com/office/word/2010/wordml}shadow' is not expected.
145
+ ```
146
+
147
+ These are generally safe to ignore — they are Microsoft extensions for newer features (e.g., advanced text effects, comment extensions).
148
+
149
+ ### Markup Compatibility
150
+
151
+ Documents may contain `mc:AlternateContent` blocks with fallback content. The subset schema may not recognize the `mc:` namespace processing. These are safe if the document opens correctly in Word.
152
+
153
+ ### Recommended Approach
154
+
155
+ 1. Run validation
156
+ 2. Treat **errors** as must-fix
157
+ 3. Review **warnings** — ignore known vendor extensions, investigate unknown elements
158
+ 4. After fixing errors, re-validate to confirm
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ usage() {
5
+ echo "Usage: $(basename "$0") <file.doc> [output_directory]"
6
+ echo "Convert .doc to .docx using LibreOffice."
7
+ exit 1
8
+ }
9
+
10
+ if [ $# -lt 1 ]; then
11
+ usage
12
+ fi
13
+
14
+ INPUT="$1"
15
+ OUTDIR="${2:-.}"
16
+
17
+ if [ ! -f "$INPUT" ]; then
18
+ echo "Error: File not found: $INPUT"
19
+ exit 1
20
+ fi
21
+
22
+ if ! command -v soffice &>/dev/null; then
23
+ echo "Error: soffice (LibreOffice) is required for .doc conversion but not found."
24
+ echo "Install LibreOffice: brew install --cask libreoffice"
25
+ exit 1
26
+ fi
27
+
28
+ BASENAME=$(basename "$INPUT" .doc)
29
+ mkdir -p "$OUTDIR"
30
+
31
+ echo "Converting: $INPUT -> $OUTDIR/$BASENAME.docx"
32
+ soffice --headless --convert-to docx --outdir "$OUTDIR" "$INPUT" >/dev/null 2>&1
33
+
34
+ OUTPUT="$OUTDIR/$BASENAME.docx"
35
+ if [ ! -f "$OUTPUT" ]; then
36
+ echo "Error: Conversion failed. Output file not created: $OUTPUT"
37
+ exit 1
38
+ fi
39
+
40
+ echo "Success: $OUTPUT"
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ usage() {
5
+ echo "Usage: $(basename "$0") <file.docx>"
6
+ echo "Preview DOCX content as plain text."
7
+ exit 1
8
+ }
9
+
10
+ if [ $# -lt 1 ]; then
11
+ usage
12
+ fi
13
+
14
+ INPUT="$1"
15
+
16
+ if [ ! -f "$INPUT" ]; then
17
+ echo "Error: File not found: $INPUT"
18
+ exit 1
19
+ fi
20
+
21
+ FILE_SIZE=$(du -h "$INPUT" | cut -f1)
22
+ echo "=== DOCX Preview: $(basename "$INPUT") ==="
23
+ echo "File size: $FILE_SIZE"
24
+
25
+ if command -v pandoc &>/dev/null; then
26
+ CONTENT=$(pandoc -f docx -t plain "$INPUT" 2>/dev/null)
27
+ WORD_COUNT=$(echo "$CONTENT" | wc -w | tr -d ' ')
28
+ EST_PAGES=$(( (WORD_COUNT + 249) / 250 ))
29
+ echo "Word count: $WORD_COUNT"
30
+ echo "Estimated pages: $EST_PAGES"
31
+ echo "---"
32
+ echo "$CONTENT"
33
+ else
34
+ echo "(pandoc not available, falling back to raw XML extract)"
35
+ echo "---"
36
+ unzip -p "$INPUT" word/document.xml 2>/dev/null | head -100
37
+ fi
@@ -0,0 +1,19 @@
1
+ <Project Sdk="Microsoft.NET.Sdk">
2
+
3
+ <ItemGroup>
4
+ <ProjectReference Include="..\MiniMaxAIDocx.Core\MiniMaxAIDocx.Core.csproj" />
5
+ </ItemGroup>
6
+
7
+ <ItemGroup>
8
+ <PackageReference Include="System.CommandLine" Version="2.0.5" />
9
+ </ItemGroup>
10
+
11
+ <PropertyGroup>
12
+ <OutputType>Exe</OutputType>
13
+ <TargetFramework>net8.0</TargetFramework>
14
+ <ImplicitUsings>enable</ImplicitUsings>
15
+ <Nullable>enable</Nullable>
16
+ <NeutralLanguage>en</NeutralLanguage>
17
+ </PropertyGroup>
18
+
19
+ </Project>
@@ -0,0 +1,18 @@
1
+ using System.CommandLine;
2
+ using MiniMaxAIDocx.Core.Commands;
3
+
4
+ var rootCommand = new RootCommand("minimax-docx: OpenXML document generation and manipulation CLI");
5
+
6
+ // Scenario commands
7
+ rootCommand.Add(CreateCommand.Create());
8
+ rootCommand.Add(EditContentCommand.Create());
9
+ rootCommand.Add(ApplyTemplateCommand.Create());
10
+
11
+ // Tool commands
12
+ rootCommand.Add(ValidateCommand.Create());
13
+ rootCommand.Add(MergeRunsCommand.Create());
14
+ rootCommand.Add(FixOrderCommand.Create());
15
+ rootCommand.Add(AnalyzeCommand.Create());
16
+ rootCommand.Add(DiffCommand.Create());
17
+
18
+ return rootCommand.Parse(args).Invoke();