sumulige-claude 1.0.9 → 1.1.0

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 (320) hide show
  1. package/.claude/.version +1 -0
  2. package/.claude/AGENTS.md +9 -9
  3. package/.claude/commands/commit-push-pr.md +23 -3
  4. package/.claude/commands/todos.md +41 -6
  5. package/.claude/hooks/session-restore.cjs +102 -0
  6. package/.claude/hooks/session-save.cjs +164 -0
  7. package/.claude/hooks/todo-manager.cjs +262 -141
  8. package/.claude/settings.local.json +25 -1
  9. package/.claude/skills/algorithmic-art/LICENSE.txt +202 -0
  10. package/.claude/skills/algorithmic-art/SKILL.md +405 -0
  11. package/.claude/skills/algorithmic-art/templates/generator_template.js +223 -0
  12. package/.claude/skills/algorithmic-art/templates/viewer.html +599 -0
  13. package/.claude/skills/api-tester/SKILL.md +52 -23
  14. package/.claude/skills/brand-guidelines/LICENSE.txt +202 -0
  15. package/.claude/skills/brand-guidelines/SKILL.md +73 -0
  16. package/.claude/skills/canvas-design/LICENSE.txt +202 -0
  17. package/.claude/skills/canvas-design/SKILL.md +130 -0
  18. package/.claude/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  19. package/.claude/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  20. package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  21. package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
  22. package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  23. package/.claude/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
  24. package/.claude/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
  25. package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  26. package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  27. package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  28. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  29. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  30. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  31. package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  32. package/.claude/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
  33. package/.claude/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
  34. package/.claude/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
  35. package/.claude/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
  36. package/.claude/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
  37. package/.claude/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
  38. package/.claude/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
  39. package/.claude/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
  40. package/.claude/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
  41. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  42. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  43. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  44. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  45. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  46. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  47. package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  48. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  49. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  50. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  51. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  52. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  53. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  54. package/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  55. package/.claude/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
  56. package/.claude/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
  57. package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  58. package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  59. package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  60. package/.claude/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
  61. package/.claude/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
  62. package/.claude/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
  63. package/.claude/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  64. package/.claude/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  65. package/.claude/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
  66. package/.claude/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  67. package/.claude/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
  68. package/.claude/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
  69. package/.claude/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
  70. package/.claude/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
  71. package/.claude/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
  72. package/.claude/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
  73. package/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  74. package/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  75. package/.claude/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
  76. package/.claude/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
  77. package/.claude/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
  78. package/.claude/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  79. package/.claude/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
  80. package/.claude/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
  81. package/.claude/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  82. package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  83. package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
  84. package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  85. package/.claude/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
  86. package/.claude/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  87. package/.claude/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  88. package/.claude/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
  89. package/.claude/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
  90. package/.claude/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
  91. package/.claude/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
  92. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
  93. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  94. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
  95. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
  96. package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
  97. package/.claude/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
  98. package/.claude/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  99. package/.claude/skills/doc-coauthoring/SKILL.md +375 -0
  100. package/.claude/skills/docx/LICENSE.txt +30 -0
  101. package/.claude/skills/docx/SKILL.md +197 -0
  102. package/.claude/skills/docx/docx-js.md +350 -0
  103. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  104. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  105. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  106. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  107. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  108. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  109. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  110. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  111. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  112. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  113. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  114. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  115. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  116. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  117. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  118. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  119. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  120. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  121. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  122. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  123. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  124. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  125. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  126. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  127. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  128. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  129. package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  130. package/.claude/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  131. package/.claude/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  132. package/.claude/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  133. package/.claude/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  134. package/.claude/skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
  135. package/.claude/skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
  136. package/.claude/skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
  137. package/.claude/skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
  138. package/.claude/skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
  139. package/.claude/skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
  140. package/.claude/skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  141. package/.claude/skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
  142. package/.claude/skills/docx/ooxml/scripts/pack.py +159 -0
  143. package/.claude/skills/docx/ooxml/scripts/unpack.py +29 -0
  144. package/.claude/skills/docx/ooxml/scripts/validate.py +69 -0
  145. package/.claude/skills/docx/ooxml/scripts/validation/__init__.py +15 -0
  146. package/.claude/skills/docx/ooxml/scripts/validation/base.py +951 -0
  147. package/.claude/skills/docx/ooxml/scripts/validation/docx.py +274 -0
  148. package/.claude/skills/docx/ooxml/scripts/validation/pptx.py +315 -0
  149. package/.claude/skills/docx/ooxml/scripts/validation/redlining.py +279 -0
  150. package/.claude/skills/docx/ooxml.md +610 -0
  151. package/.claude/skills/docx/scripts/__init__.py +1 -0
  152. package/.claude/skills/docx/scripts/document.py +1276 -0
  153. package/.claude/skills/docx/scripts/templates/comments.xml +3 -0
  154. package/.claude/skills/docx/scripts/templates/commentsExtended.xml +3 -0
  155. package/.claude/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
  156. package/.claude/skills/docx/scripts/templates/commentsIds.xml +3 -0
  157. package/.claude/skills/docx/scripts/templates/people.xml +3 -0
  158. package/.claude/skills/docx/scripts/utilities.py +374 -0
  159. package/.claude/skills/frontend-design/LICENSE.txt +177 -0
  160. package/.claude/skills/frontend-design/SKILL.md +42 -0
  161. package/.claude/skills/internal-comms/LICENSE.txt +202 -0
  162. package/.claude/skills/internal-comms/SKILL.md +32 -0
  163. package/.claude/skills/internal-comms/examples/3p-updates.md +47 -0
  164. package/.claude/skills/internal-comms/examples/company-newsletter.md +65 -0
  165. package/.claude/skills/internal-comms/examples/faq-answers.md +30 -0
  166. package/.claude/skills/internal-comms/examples/general-comms.md +16 -0
  167. package/.claude/skills/mcp-builder/LICENSE.txt +202 -0
  168. package/.claude/skills/mcp-builder/SKILL.md +236 -0
  169. package/.claude/skills/mcp-builder/reference/evaluation.md +602 -0
  170. package/.claude/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
  171. package/.claude/skills/mcp-builder/reference/node_mcp_server.md +970 -0
  172. package/.claude/skills/mcp-builder/reference/python_mcp_server.md +719 -0
  173. package/.claude/skills/mcp-builder/scripts/connections.py +151 -0
  174. package/.claude/skills/mcp-builder/scripts/evaluation.py +373 -0
  175. package/.claude/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
  176. package/.claude/skills/mcp-builder/scripts/requirements.txt +2 -0
  177. package/.claude/skills/pdf/LICENSE.txt +30 -0
  178. package/.claude/skills/pdf/SKILL.md +294 -0
  179. package/.claude/skills/pdf/forms.md +205 -0
  180. package/.claude/skills/pdf/reference.md +612 -0
  181. package/.claude/skills/pdf/scripts/check_bounding_boxes.py +70 -0
  182. package/.claude/skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
  183. package/.claude/skills/pdf/scripts/check_fillable_fields.py +12 -0
  184. package/.claude/skills/pdf/scripts/convert_pdf_to_images.py +35 -0
  185. package/.claude/skills/pdf/scripts/create_validation_image.py +41 -0
  186. package/.claude/skills/pdf/scripts/extract_form_field_info.py +152 -0
  187. package/.claude/skills/pdf/scripts/fill_fillable_fields.py +114 -0
  188. package/.claude/skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
  189. package/.claude/skills/pptx/LICENSE.txt +30 -0
  190. package/.claude/skills/pptx/SKILL.md +484 -0
  191. package/.claude/skills/pptx/html2pptx.md +625 -0
  192. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  193. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  194. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  195. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  196. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  197. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  198. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  199. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  200. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  201. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  202. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  203. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  204. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  205. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  206. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  207. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  208. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  209. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  210. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  211. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  212. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  213. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  214. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  215. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  216. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  217. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  218. package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  219. package/.claude/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  220. package/.claude/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  221. package/.claude/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  222. package/.claude/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  223. package/.claude/skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
  224. package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
  225. package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
  226. package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
  227. package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
  228. package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
  229. package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  230. package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
  231. package/.claude/skills/pptx/ooxml/scripts/pack.py +159 -0
  232. package/.claude/skills/pptx/ooxml/scripts/unpack.py +29 -0
  233. package/.claude/skills/pptx/ooxml/scripts/validate.py +69 -0
  234. package/.claude/skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
  235. package/.claude/skills/pptx/ooxml/scripts/validation/base.py +951 -0
  236. package/.claude/skills/pptx/ooxml/scripts/validation/docx.py +274 -0
  237. package/.claude/skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
  238. package/.claude/skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
  239. package/.claude/skills/pptx/ooxml.md +427 -0
  240. package/.claude/skills/pptx/scripts/html2pptx.js +979 -0
  241. package/.claude/skills/pptx/scripts/inventory.py +1020 -0
  242. package/.claude/skills/pptx/scripts/rearrange.py +231 -0
  243. package/.claude/skills/pptx/scripts/replace.py +385 -0
  244. package/.claude/skills/pptx/scripts/thumbnail.py +450 -0
  245. package/.claude/skills/skill-creator/LICENSE.txt +202 -0
  246. package/.claude/skills/skill-creator/SKILL.md +356 -0
  247. package/.claude/skills/skill-creator/references/output-patterns.md +82 -0
  248. package/.claude/skills/skill-creator/references/workflows.md +28 -0
  249. package/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
  250. package/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
  251. package/.claude/skills/skill-creator/scripts/quick_validate.py +95 -0
  252. package/.claude/skills/slack-gif-creator/LICENSE.txt +202 -0
  253. package/.claude/skills/slack-gif-creator/SKILL.md +254 -0
  254. package/.claude/skills/slack-gif-creator/core/easing.py +234 -0
  255. package/.claude/skills/slack-gif-creator/core/frame_composer.py +176 -0
  256. package/.claude/skills/slack-gif-creator/core/gif_builder.py +269 -0
  257. package/.claude/skills/slack-gif-creator/core/validators.py +136 -0
  258. package/.claude/skills/slack-gif-creator/requirements.txt +4 -0
  259. package/.claude/skills/template/SKILL.md +6 -0
  260. package/.claude/skills/test-workflow/SKILL.md +191 -0
  261. package/.claude/skills/theme-factory/LICENSE.txt +202 -0
  262. package/.claude/skills/theme-factory/SKILL.md +59 -0
  263. package/.claude/skills/theme-factory/theme-showcase.pdf +0 -0
  264. package/.claude/skills/theme-factory/themes/arctic-frost.md +19 -0
  265. package/.claude/skills/theme-factory/themes/botanical-garden.md +19 -0
  266. package/.claude/skills/theme-factory/themes/desert-rose.md +19 -0
  267. package/.claude/skills/theme-factory/themes/forest-canopy.md +19 -0
  268. package/.claude/skills/theme-factory/themes/golden-hour.md +19 -0
  269. package/.claude/skills/theme-factory/themes/midnight-galaxy.md +19 -0
  270. package/.claude/skills/theme-factory/themes/modern-minimalist.md +19 -0
  271. package/.claude/skills/theme-factory/themes/ocean-depths.md +19 -0
  272. package/.claude/skills/theme-factory/themes/sunset-boulevard.md +19 -0
  273. package/.claude/skills/theme-factory/themes/tech-innovation.md +19 -0
  274. package/.claude/skills/web-artifacts-builder/LICENSE.txt +202 -0
  275. package/.claude/skills/web-artifacts-builder/SKILL.md +74 -0
  276. package/.claude/skills/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
  277. package/.claude/skills/web-artifacts-builder/scripts/init-artifact.sh +322 -0
  278. package/.claude/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
  279. package/.claude/skills/webapp-testing/LICENSE.txt +202 -0
  280. package/.claude/skills/webapp-testing/SKILL.md +96 -0
  281. package/.claude/skills/webapp-testing/examples/console_logging.py +35 -0
  282. package/.claude/skills/webapp-testing/examples/element_discovery.py +40 -0
  283. package/.claude/skills/webapp-testing/examples/static_html_automation.py +33 -0
  284. package/.claude/skills/webapp-testing/scripts/with_server.py +106 -0
  285. package/.claude/skills/xlsx/LICENSE.txt +30 -0
  286. package/.claude/skills/xlsx/SKILL.md +289 -0
  287. package/.claude/skills/xlsx/recalc.py +178 -0
  288. package/.claude/templates/tasks/develop.md +69 -0
  289. package/.claude/templates/tasks/research.md +64 -0
  290. package/.claude/templates/tasks/test.md +96 -0
  291. package/.claude-plugin/marketplace.json +2 -2
  292. package/.versionrc +25 -0
  293. package/AGENTS.md +171 -86
  294. package/CHANGELOG.md +83 -4
  295. package/PROJECT_STRUCTURE.md +40 -3
  296. package/Q&A.md +184 -0
  297. package/README.md +74 -2
  298. package/cli.js +79 -5
  299. package/config/official-skills.json +183 -0
  300. package/development/todos/.state.json +4 -0
  301. package/development/todos/INDEX.md +67 -32
  302. package/docs/RELEASE.md +93 -0
  303. package/jest.config.js +61 -0
  304. package/lib/commands.js +1724 -39
  305. package/lib/migrations.js +154 -0
  306. package/lib/utils.js +102 -14
  307. package/lib/version-check.js +169 -0
  308. package/package.json +13 -3
  309. package/scripts/fix-hooks.mjs +97 -0
  310. package/template/.claude/commands/commit-push-pr.md +23 -3
  311. package/template/.claude/hooks/project-kickoff.cjs +190 -1
  312. package/template/.claude/hooks/session-restore.cjs +102 -0
  313. package/template/.claude/hooks/session-save.cjs +164 -0
  314. package/template/.claude/settings.json +114 -50
  315. package/tests/README.md +263 -0
  316. package/tests/commands.test.js +163 -0
  317. package/tests/config.test.js +100 -0
  318. package/tests/marketplace.test.js +304 -0
  319. package/tests/migrations.test.js +187 -0
  320. package/tests/utils.test.js +167 -0
@@ -0,0 +1,375 @@
1
+ ---
2
+ name: doc-coauthoring
3
+ description: Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
4
+ ---
5
+
6
+ # Doc Co-Authoring Workflow
7
+
8
+ This skill provides a structured workflow for guiding users through collaborative document creation. Act as an active guide, walking users through three stages: Context Gathering, Refinement & Structure, and Reader Testing.
9
+
10
+ ## When to Offer This Workflow
11
+
12
+ **Trigger conditions:**
13
+ - User mentions writing documentation: "write a doc", "draft a proposal", "create a spec", "write up"
14
+ - User mentions specific doc types: "PRD", "design doc", "decision doc", "RFC"
15
+ - User seems to be starting a substantial writing task
16
+
17
+ **Initial offer:**
18
+ Offer the user a structured workflow for co-authoring the document. Explain the three stages:
19
+
20
+ 1. **Context Gathering**: User provides all relevant context while Claude asks clarifying questions
21
+ 2. **Refinement & Structure**: Iteratively build each section through brainstorming and editing
22
+ 3. **Reader Testing**: Test the doc with a fresh Claude (no context) to catch blind spots before others read it
23
+
24
+ Explain that this approach helps ensure the doc works well when others read it (including when they paste it into Claude). Ask if they want to try this workflow or prefer to work freeform.
25
+
26
+ If user declines, work freeform. If user accepts, proceed to Stage 1.
27
+
28
+ ## Stage 1: Context Gathering
29
+
30
+ **Goal:** Close the gap between what the user knows and what Claude knows, enabling smart guidance later.
31
+
32
+ ### Initial Questions
33
+
34
+ Start by asking the user for meta-context about the document:
35
+
36
+ 1. What type of document is this? (e.g., technical spec, decision doc, proposal)
37
+ 2. Who's the primary audience?
38
+ 3. What's the desired impact when someone reads this?
39
+ 4. Is there a template or specific format to follow?
40
+ 5. Any other constraints or context to know?
41
+
42
+ Inform them they can answer in shorthand or dump information however works best for them.
43
+
44
+ **If user provides a template or mentions a doc type:**
45
+ - Ask if they have a template document to share
46
+ - If they provide a link to a shared document, use the appropriate integration to fetch it
47
+ - If they provide a file, read it
48
+
49
+ **If user mentions editing an existing shared document:**
50
+ - Use the appropriate integration to read the current state
51
+ - Check for images without alt-text
52
+ - If images exist without alt-text, explain that when others use Claude to understand the doc, Claude won't be able to see them. Ask if they want alt-text generated. If so, request they paste each image into chat for descriptive alt-text generation.
53
+
54
+ ### Info Dumping
55
+
56
+ Once initial questions are answered, encourage the user to dump all the context they have. Request information such as:
57
+ - Background on the project/problem
58
+ - Related team discussions or shared documents
59
+ - Why alternative solutions aren't being used
60
+ - Organizational context (team dynamics, past incidents, politics)
61
+ - Timeline pressures or constraints
62
+ - Technical architecture or dependencies
63
+ - Stakeholder concerns
64
+
65
+ Advise them not to worry about organizing it - just get it all out. Offer multiple ways to provide context:
66
+ - Info dump stream-of-consciousness
67
+ - Point to team channels or threads to read
68
+ - Link to shared documents
69
+
70
+ **If integrations are available** (e.g., Slack, Teams, Google Drive, SharePoint, or other MCP servers), mention that these can be used to pull in context directly.
71
+
72
+ **If no integrations are detected and in Claude.ai or Claude app:** Suggest they can enable connectors in their Claude settings to allow pulling context from messaging apps and document storage directly.
73
+
74
+ Inform them clarifying questions will be asked once they've done their initial dump.
75
+
76
+ **During context gathering:**
77
+
78
+ - If user mentions team channels or shared documents:
79
+ - If integrations available: Inform them the content will be read now, then use the appropriate integration
80
+ - If integrations not available: Explain lack of access. Suggest they enable connectors in Claude settings, or paste the relevant content directly.
81
+
82
+ - If user mentions entities/projects that are unknown:
83
+ - Ask if connected tools should be searched to learn more
84
+ - Wait for user confirmation before searching
85
+
86
+ - As user provides context, track what's being learned and what's still unclear
87
+
88
+ **Asking clarifying questions:**
89
+
90
+ When user signals they've done their initial dump (or after substantial context provided), ask clarifying questions to ensure understanding:
91
+
92
+ Generate 5-10 numbered questions based on gaps in the context.
93
+
94
+ Inform them they can use shorthand to answer (e.g., "1: yes, 2: see #channel, 3: no because backwards compat"), link to more docs, point to channels to read, or just keep info-dumping. Whatever's most efficient for them.
95
+
96
+ **Exit condition:**
97
+ Sufficient context has been gathered when questions show understanding - when edge cases and trade-offs can be asked about without needing basics explained.
98
+
99
+ **Transition:**
100
+ Ask if there's any more context they want to provide at this stage, or if it's time to move on to drafting the document.
101
+
102
+ If user wants to add more, let them. When ready, proceed to Stage 2.
103
+
104
+ ## Stage 2: Refinement & Structure
105
+
106
+ **Goal:** Build the document section by section through brainstorming, curation, and iterative refinement.
107
+
108
+ **Instructions to user:**
109
+ Explain that the document will be built section by section. For each section:
110
+ 1. Clarifying questions will be asked about what to include
111
+ 2. 5-20 options will be brainstormed
112
+ 3. User will indicate what to keep/remove/combine
113
+ 4. The section will be drafted
114
+ 5. It will be refined through surgical edits
115
+
116
+ Start with whichever section has the most unknowns (usually the core decision/proposal), then work through the rest.
117
+
118
+ **Section ordering:**
119
+
120
+ If the document structure is clear:
121
+ Ask which section they'd like to start with.
122
+
123
+ Suggest starting with whichever section has the most unknowns. For decision docs, that's usually the core proposal. For specs, it's typically the technical approach. Summary sections are best left for last.
124
+
125
+ If user doesn't know what sections they need:
126
+ Based on the type of document and template, suggest 3-5 sections appropriate for the doc type.
127
+
128
+ Ask if this structure works, or if they want to adjust it.
129
+
130
+ **Once structure is agreed:**
131
+
132
+ Create the initial document structure with placeholder text for all sections.
133
+
134
+ **If access to artifacts is available:**
135
+ Use `create_file` to create an artifact. This gives both Claude and the user a scaffold to work from.
136
+
137
+ Inform them that the initial structure with placeholders for all sections will be created.
138
+
139
+ Create artifact with all section headers and brief placeholder text like "[To be written]" or "[Content here]".
140
+
141
+ Provide the scaffold link and indicate it's time to fill in each section.
142
+
143
+ **If no access to artifacts:**
144
+ Create a markdown file in the working directory. Name it appropriately (e.g., `decision-doc.md`, `technical-spec.md`).
145
+
146
+ Inform them that the initial structure with placeholders for all sections will be created.
147
+
148
+ Create file with all section headers and placeholder text.
149
+
150
+ Confirm the filename has been created and indicate it's time to fill in each section.
151
+
152
+ **For each section:**
153
+
154
+ ### Step 1: Clarifying Questions
155
+
156
+ Announce work will begin on the [SECTION NAME] section. Ask 5-10 clarifying questions about what should be included:
157
+
158
+ Generate 5-10 specific questions based on context and section purpose.
159
+
160
+ Inform them they can answer in shorthand or just indicate what's important to cover.
161
+
162
+ ### Step 2: Brainstorming
163
+
164
+ For the [SECTION NAME] section, brainstorm [5-20] things that might be included, depending on the section's complexity. Look for:
165
+ - Context shared that might have been forgotten
166
+ - Angles or considerations not yet mentioned
167
+
168
+ Generate 5-20 numbered options based on section complexity. At the end, offer to brainstorm more if they want additional options.
169
+
170
+ ### Step 3: Curation
171
+
172
+ Ask which points should be kept, removed, or combined. Request brief justifications to help learn priorities for the next sections.
173
+
174
+ Provide examples:
175
+ - "Keep 1,4,7,9"
176
+ - "Remove 3 (duplicates 1)"
177
+ - "Remove 6 (audience already knows this)"
178
+ - "Combine 11 and 12"
179
+
180
+ **If user gives freeform feedback** (e.g., "looks good" or "I like most of it but...") instead of numbered selections, extract their preferences and proceed. Parse what they want kept/removed/changed and apply it.
181
+
182
+ ### Step 4: Gap Check
183
+
184
+ Based on what they've selected, ask if there's anything important missing for the [SECTION NAME] section.
185
+
186
+ ### Step 5: Drafting
187
+
188
+ Use `str_replace` to replace the placeholder text for this section with the actual drafted content.
189
+
190
+ Announce the [SECTION NAME] section will be drafted now based on what they've selected.
191
+
192
+ **If using artifacts:**
193
+ After drafting, provide a link to the artifact.
194
+
195
+ Ask them to read through it and indicate what to change. Note that being specific helps learning for the next sections.
196
+
197
+ **If using a file (no artifacts):**
198
+ After drafting, confirm completion.
199
+
200
+ Inform them the [SECTION NAME] section has been drafted in [filename]. Ask them to read through it and indicate what to change. Note that being specific helps learning for the next sections.
201
+
202
+ **Key instruction for user (include when drafting the first section):**
203
+ Provide a note: Instead of editing the doc directly, ask them to indicate what to change. This helps learning of their style for future sections. For example: "Remove the X bullet - already covered by Y" or "Make the third paragraph more concise".
204
+
205
+ ### Step 6: Iterative Refinement
206
+
207
+ As user provides feedback:
208
+ - Use `str_replace` to make edits (never reprint the whole doc)
209
+ - **If using artifacts:** Provide link to artifact after each edit
210
+ - **If using files:** Just confirm edits are complete
211
+ - If user edits doc directly and asks to read it: mentally note the changes they made and keep them in mind for future sections (this shows their preferences)
212
+
213
+ **Continue iterating** until user is satisfied with the section.
214
+
215
+ ### Quality Checking
216
+
217
+ After 3 consecutive iterations with no substantial changes, ask if anything can be removed without losing important information.
218
+
219
+ When section is done, confirm [SECTION NAME] is complete. Ask if ready to move to the next section.
220
+
221
+ **Repeat for all sections.**
222
+
223
+ ### Near Completion
224
+
225
+ As approaching completion (80%+ of sections done), announce intention to re-read the entire document and check for:
226
+ - Flow and consistency across sections
227
+ - Redundancy or contradictions
228
+ - Anything that feels like "slop" or generic filler
229
+ - Whether every sentence carries weight
230
+
231
+ Read entire document and provide feedback.
232
+
233
+ **When all sections are drafted and refined:**
234
+ Announce all sections are drafted. Indicate intention to review the complete document one more time.
235
+
236
+ Review for overall coherence, flow, completeness.
237
+
238
+ Provide any final suggestions.
239
+
240
+ Ask if ready to move to Reader Testing, or if they want to refine anything else.
241
+
242
+ ## Stage 3: Reader Testing
243
+
244
+ **Goal:** Test the document with a fresh Claude (no context bleed) to verify it works for readers.
245
+
246
+ **Instructions to user:**
247
+ Explain that testing will now occur to see if the document actually works for readers. This catches blind spots - things that make sense to the authors but might confuse others.
248
+
249
+ ### Testing Approach
250
+
251
+ **If access to sub-agents is available (e.g., in Claude Code):**
252
+
253
+ Perform the testing directly without user involvement.
254
+
255
+ ### Step 1: Predict Reader Questions
256
+
257
+ Announce intention to predict what questions readers might ask when trying to discover this document.
258
+
259
+ Generate 5-10 questions that readers would realistically ask.
260
+
261
+ ### Step 2: Test with Sub-Agent
262
+
263
+ Announce that these questions will be tested with a fresh Claude instance (no context from this conversation).
264
+
265
+ For each question, invoke a sub-agent with just the document content and the question.
266
+
267
+ Summarize what Reader Claude got right/wrong for each question.
268
+
269
+ ### Step 3: Run Additional Checks
270
+
271
+ Announce additional checks will be performed.
272
+
273
+ Invoke sub-agent to check for ambiguity, false assumptions, contradictions.
274
+
275
+ Summarize any issues found.
276
+
277
+ ### Step 4: Report and Fix
278
+
279
+ If issues found:
280
+ Report that Reader Claude struggled with specific issues.
281
+
282
+ List the specific issues.
283
+
284
+ Indicate intention to fix these gaps.
285
+
286
+ Loop back to refinement for problematic sections.
287
+
288
+ ---
289
+
290
+ **If no access to sub-agents (e.g., claude.ai web interface):**
291
+
292
+ The user will need to do the testing manually.
293
+
294
+ ### Step 1: Predict Reader Questions
295
+
296
+ Ask what questions people might ask when trying to discover this document. What would they type into Claude.ai?
297
+
298
+ Generate 5-10 questions that readers would realistically ask.
299
+
300
+ ### Step 2: Setup Testing
301
+
302
+ Provide testing instructions:
303
+ 1. Open a fresh Claude conversation: https://claude.ai
304
+ 2. Paste or share the document content (if using a shared doc platform with connectors enabled, provide the link)
305
+ 3. Ask Reader Claude the generated questions
306
+
307
+ For each question, instruct Reader Claude to provide:
308
+ - The answer
309
+ - Whether anything was ambiguous or unclear
310
+ - What knowledge/context the doc assumes is already known
311
+
312
+ Check if Reader Claude gives correct answers or misinterprets anything.
313
+
314
+ ### Step 3: Additional Checks
315
+
316
+ Also ask Reader Claude:
317
+ - "What in this doc might be ambiguous or unclear to readers?"
318
+ - "What knowledge or context does this doc assume readers already have?"
319
+ - "Are there any internal contradictions or inconsistencies?"
320
+
321
+ ### Step 4: Iterate Based on Results
322
+
323
+ Ask what Reader Claude got wrong or struggled with. Indicate intention to fix those gaps.
324
+
325
+ Loop back to refinement for any problematic sections.
326
+
327
+ ---
328
+
329
+ ### Exit Condition (Both Approaches)
330
+
331
+ When Reader Claude consistently answers questions correctly and doesn't surface new gaps or ambiguities, the doc is ready.
332
+
333
+ ## Final Review
334
+
335
+ When Reader Testing passes:
336
+ Announce the doc has passed Reader Claude testing. Before completion:
337
+
338
+ 1. Recommend they do a final read-through themselves - they own this document and are responsible for its quality
339
+ 2. Suggest double-checking any facts, links, or technical details
340
+ 3. Ask them to verify it achieves the impact they wanted
341
+
342
+ Ask if they want one more review, or if the work is done.
343
+
344
+ **If user wants final review, provide it. Otherwise:**
345
+ Announce document completion. Provide a few final tips:
346
+ - Consider linking this conversation in an appendix so readers can see how the doc was developed
347
+ - Use appendices to provide depth without bloating the main doc
348
+ - Update the doc as feedback is received from real readers
349
+
350
+ ## Tips for Effective Guidance
351
+
352
+ **Tone:**
353
+ - Be direct and procedural
354
+ - Explain rationale briefly when it affects user behavior
355
+ - Don't try to "sell" the approach - just execute it
356
+
357
+ **Handling Deviations:**
358
+ - If user wants to skip a stage: Ask if they want to skip this and write freeform
359
+ - If user seems frustrated: Acknowledge this is taking longer than expected. Suggest ways to move faster
360
+ - Always give user agency to adjust the process
361
+
362
+ **Context Management:**
363
+ - Throughout, if context is missing on something mentioned, proactively ask
364
+ - Don't let gaps accumulate - address them as they come up
365
+
366
+ **Artifact Management:**
367
+ - Use `create_file` for drafting full sections
368
+ - Use `str_replace` for all edits
369
+ - Provide artifact link after every change
370
+ - Never use artifacts for brainstorming lists - that's just conversation
371
+
372
+ **Quality over Speed:**
373
+ - Don't rush through stages
374
+ - Each iteration should make meaningful improvements
375
+ - The goal is a document that actually works for readers
@@ -0,0 +1,30 @@
1
+ © 2025 Anthropic, PBC. All rights reserved.
2
+
3
+ LICENSE: Use of these materials (including all code, prompts, assets, files,
4
+ and other components of this Skill) is governed by your agreement with
5
+ Anthropic regarding use of Anthropic's services. If no separate agreement
6
+ exists, use is governed by Anthropic's Consumer Terms of Service or
7
+ Commercial Terms of Service, as applicable:
8
+ https://www.anthropic.com/legal/consumer-terms
9
+ https://www.anthropic.com/legal/commercial-terms
10
+ Your applicable agreement is referred to as the "Agreement." "Services" are
11
+ as defined in the Agreement.
12
+
13
+ ADDITIONAL RESTRICTIONS: Notwithstanding anything in the Agreement to the
14
+ contrary, users may not:
15
+
16
+ - Extract these materials from the Services or retain copies of these
17
+ materials outside the Services
18
+ - Reproduce or copy these materials, except for temporary copies created
19
+ automatically during authorized use of the Services
20
+ - Create derivative works based on these materials
21
+ - Distribute, sublicense, or transfer these materials to any third party
22
+ - Make, offer to sell, sell, or import any inventions embodied in these
23
+ materials
24
+ - Reverse engineer, decompile, or disassemble these materials
25
+
26
+ The receipt, viewing, or possession of these materials does not convey or
27
+ imply any license or right beyond those expressly granted above.
28
+
29
+ Anthropic retains all right, title, and interest in these materials,
30
+ including all copyrights, patents, and other intellectual property rights.
@@ -0,0 +1,197 @@
1
+ ---
2
+ name: docx
3
+ description: "Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks"
4
+ license: Proprietary. LICENSE.txt has complete terms
5
+ ---
6
+
7
+ # DOCX creation, editing, and analysis
8
+
9
+ ## Overview
10
+
11
+ A user may ask you to create, edit, or analyze the contents of a .docx file. A .docx file is essentially a ZIP archive containing XML files and other resources that you can read or edit. You have different tools and workflows available for different tasks.
12
+
13
+ ## Workflow Decision Tree
14
+
15
+ ### Reading/Analyzing Content
16
+ Use "Text extraction" or "Raw XML access" sections below
17
+
18
+ ### Creating New Document
19
+ Use "Creating a new Word document" workflow
20
+
21
+ ### Editing Existing Document
22
+ - **Your own document + simple changes**
23
+ Use "Basic OOXML editing" workflow
24
+
25
+ - **Someone else's document**
26
+ Use **"Redlining workflow"** (recommended default)
27
+
28
+ - **Legal, academic, business, or government docs**
29
+ Use **"Redlining workflow"** (required)
30
+
31
+ ## Reading and analyzing content
32
+
33
+ ### Text extraction
34
+ If you just need to read the text contents of a document, you should convert the document to markdown using pandoc. Pandoc provides excellent support for preserving document structure and can show tracked changes:
35
+
36
+ ```bash
37
+ # Convert document to markdown with tracked changes
38
+ pandoc --track-changes=all path-to-file.docx -o output.md
39
+ # Options: --track-changes=accept/reject/all
40
+ ```
41
+
42
+ ### Raw XML access
43
+ You need raw XML access for: comments, complex formatting, document structure, embedded media, and metadata. For any of these features, you'll need to unpack a document and read its raw XML contents.
44
+
45
+ #### Unpacking a file
46
+ `python ooxml/scripts/unpack.py <office_file> <output_directory>`
47
+
48
+ #### Key file structures
49
+ * `word/document.xml` - Main document contents
50
+ * `word/comments.xml` - Comments referenced in document.xml
51
+ * `word/media/` - Embedded images and media files
52
+ * Tracked changes use `<w:ins>` (insertions) and `<w:del>` (deletions) tags
53
+
54
+ ## Creating a new Word document
55
+
56
+ When creating a new Word document from scratch, use **docx-js**, which allows you to create Word documents using JavaScript/TypeScript.
57
+
58
+ ### Workflow
59
+ 1. **MANDATORY - READ ENTIRE FILE**: Read [`docx-js.md`](docx-js.md) (~500 lines) completely from start to finish. **NEVER set any range limits when reading this file.** Read the full file content for detailed syntax, critical formatting rules, and best practices before proceeding with document creation.
60
+ 2. Create a JavaScript/TypeScript file using Document, Paragraph, TextRun components (You can assume all dependencies are installed, but if not, refer to the dependencies section below)
61
+ 3. Export as .docx using Packer.toBuffer()
62
+
63
+ ## Editing an existing Word document
64
+
65
+ When editing an existing Word document, use the **Document library** (a Python library for OOXML manipulation). The library automatically handles infrastructure setup and provides methods for document manipulation. For complex scenarios, you can access the underlying DOM directly through the library.
66
+
67
+ ### Workflow
68
+ 1. **MANDATORY - READ ENTIRE FILE**: Read [`ooxml.md`](ooxml.md) (~600 lines) completely from start to finish. **NEVER set any range limits when reading this file.** Read the full file content for the Document library API and XML patterns for directly editing document files.
69
+ 2. Unpack the document: `python ooxml/scripts/unpack.py <office_file> <output_directory>`
70
+ 3. Create and run a Python script using the Document library (see "Document Library" section in ooxml.md)
71
+ 4. Pack the final document: `python ooxml/scripts/pack.py <input_directory> <office_file>`
72
+
73
+ The Document library provides both high-level methods for common operations and direct DOM access for complex scenarios.
74
+
75
+ ## Redlining workflow for document review
76
+
77
+ This workflow allows you to plan comprehensive tracked changes using markdown before implementing them in OOXML. **CRITICAL**: For complete tracked changes, you must implement ALL changes systematically.
78
+
79
+ **Batching Strategy**: Group related changes into batches of 3-10 changes. This makes debugging manageable while maintaining efficiency. Test each batch before moving to the next.
80
+
81
+ **Principle: Minimal, Precise Edits**
82
+ When implementing tracked changes, only mark text that actually changes. Repeating unchanged text makes edits harder to review and appears unprofessional. Break replacements into: [unchanged text] + [deletion] + [insertion] + [unchanged text]. Preserve the original run's RSID for unchanged text by extracting the `<w:r>` element from the original and reusing it.
83
+
84
+ Example - Changing "30 days" to "60 days" in a sentence:
85
+ ```python
86
+ # BAD - Replaces entire sentence
87
+ '<w:del><w:r><w:delText>The term is 30 days.</w:delText></w:r></w:del><w:ins><w:r><w:t>The term is 60 days.</w:t></w:r></w:ins>'
88
+
89
+ # GOOD - Only marks what changed, preserves original <w:r> for unchanged text
90
+ '<w:r w:rsidR="00AB12CD"><w:t>The term is </w:t></w:r><w:del><w:r><w:delText>30</w:delText></w:r></w:del><w:ins><w:r><w:t>60</w:t></w:r></w:ins><w:r w:rsidR="00AB12CD"><w:t> days.</w:t></w:r>'
91
+ ```
92
+
93
+ ### Tracked changes workflow
94
+
95
+ 1. **Get markdown representation**: Convert document to markdown with tracked changes preserved:
96
+ ```bash
97
+ pandoc --track-changes=all path-to-file.docx -o current.md
98
+ ```
99
+
100
+ 2. **Identify and group changes**: Review the document and identify ALL changes needed, organizing them into logical batches:
101
+
102
+ **Location methods** (for finding changes in XML):
103
+ - Section/heading numbers (e.g., "Section 3.2", "Article IV")
104
+ - Paragraph identifiers if numbered
105
+ - Grep patterns with unique surrounding text
106
+ - Document structure (e.g., "first paragraph", "signature block")
107
+ - **DO NOT use markdown line numbers** - they don't map to XML structure
108
+
109
+ **Batch organization** (group 3-10 related changes per batch):
110
+ - By section: "Batch 1: Section 2 amendments", "Batch 2: Section 5 updates"
111
+ - By type: "Batch 1: Date corrections", "Batch 2: Party name changes"
112
+ - By complexity: Start with simple text replacements, then tackle complex structural changes
113
+ - Sequential: "Batch 1: Pages 1-3", "Batch 2: Pages 4-6"
114
+
115
+ 3. **Read documentation and unpack**:
116
+ - **MANDATORY - READ ENTIRE FILE**: Read [`ooxml.md`](ooxml.md) (~600 lines) completely from start to finish. **NEVER set any range limits when reading this file.** Pay special attention to the "Document Library" and "Tracked Change Patterns" sections.
117
+ - **Unpack the document**: `python ooxml/scripts/unpack.py <file.docx> <dir>`
118
+ - **Note the suggested RSID**: The unpack script will suggest an RSID to use for your tracked changes. Copy this RSID for use in step 4b.
119
+
120
+ 4. **Implement changes in batches**: Group changes logically (by section, by type, or by proximity) and implement them together in a single script. This approach:
121
+ - Makes debugging easier (smaller batch = easier to isolate errors)
122
+ - Allows incremental progress
123
+ - Maintains efficiency (batch size of 3-10 changes works well)
124
+
125
+ **Suggested batch groupings:**
126
+ - By document section (e.g., "Section 3 changes", "Definitions", "Termination clause")
127
+ - By change type (e.g., "Date changes", "Party name updates", "Legal term replacements")
128
+ - By proximity (e.g., "Changes on pages 1-3", "Changes in first half of document")
129
+
130
+ For each batch of related changes:
131
+
132
+ **a. Map text to XML**: Grep for text in `word/document.xml` to verify how text is split across `<w:r>` elements.
133
+
134
+ **b. Create and run script**: Use `get_node` to find nodes, implement changes, then `doc.save()`. See **"Document Library"** section in ooxml.md for patterns.
135
+
136
+ **Note**: Always grep `word/document.xml` immediately before writing a script to get current line numbers and verify text content. Line numbers change after each script run.
137
+
138
+ 5. **Pack the document**: After all batches are complete, convert the unpacked directory back to .docx:
139
+ ```bash
140
+ python ooxml/scripts/pack.py unpacked reviewed-document.docx
141
+ ```
142
+
143
+ 6. **Final verification**: Do a comprehensive check of the complete document:
144
+ - Convert final document to markdown:
145
+ ```bash
146
+ pandoc --track-changes=all reviewed-document.docx -o verification.md
147
+ ```
148
+ - Verify ALL changes were applied correctly:
149
+ ```bash
150
+ grep "original phrase" verification.md # Should NOT find it
151
+ grep "replacement phrase" verification.md # Should find it
152
+ ```
153
+ - Check that no unintended changes were introduced
154
+
155
+
156
+ ## Converting Documents to Images
157
+
158
+ To visually analyze Word documents, convert them to images using a two-step process:
159
+
160
+ 1. **Convert DOCX to PDF**:
161
+ ```bash
162
+ soffice --headless --convert-to pdf document.docx
163
+ ```
164
+
165
+ 2. **Convert PDF pages to JPEG images**:
166
+ ```bash
167
+ pdftoppm -jpeg -r 150 document.pdf page
168
+ ```
169
+ This creates files like `page-1.jpg`, `page-2.jpg`, etc.
170
+
171
+ Options:
172
+ - `-r 150`: Sets resolution to 150 DPI (adjust for quality/size balance)
173
+ - `-jpeg`: Output JPEG format (use `-png` for PNG if preferred)
174
+ - `-f N`: First page to convert (e.g., `-f 2` starts from page 2)
175
+ - `-l N`: Last page to convert (e.g., `-l 5` stops at page 5)
176
+ - `page`: Prefix for output files
177
+
178
+ Example for specific range:
179
+ ```bash
180
+ pdftoppm -jpeg -r 150 -f 2 -l 5 document.pdf page # Converts only pages 2-5
181
+ ```
182
+
183
+ ## Code Style Guidelines
184
+ **IMPORTANT**: When generating code for DOCX operations:
185
+ - Write concise code
186
+ - Avoid verbose variable names and redundant operations
187
+ - Avoid unnecessary print statements
188
+
189
+ ## Dependencies
190
+
191
+ Required dependencies (install if not available):
192
+
193
+ - **pandoc**: `sudo apt-get install pandoc` (for text extraction)
194
+ - **docx**: `npm install -g docx` (for creating new documents)
195
+ - **LibreOffice**: `sudo apt-get install libreoffice` (for PDF conversion)
196
+ - **Poppler**: `sudo apt-get install poppler-utils` (for pdftoppm to convert PDF to images)
197
+ - **defusedxml**: `pip install defusedxml` (for secure XML parsing)