@aslomon/effectum 0.3.3 → 0.4.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 (359) hide show
  1. package/bin/install.js +68 -4
  2. package/bin/lib/cli-tools.js +288 -0
  3. package/bin/lib/specializations.js +11 -1
  4. package/bin/lib/template.js +14 -0
  5. package/bin/lib/ui.js +109 -0
  6. package/package.json +1 -1
  7. package/system/agents/data-engineer.md +268 -0
  8. package/system/agents/mobile-developer.md +257 -0
  9. package/system/hooks/observe.sh +164 -0
  10. package/system/hooks/quick-diff.sh +87 -0
  11. package/system/hooks/save-results.sh +56 -0
  12. package/system/hooks/scan.sh +170 -0
  13. package/system/skills/README.md +86 -0
  14. package/system/skills/SKILL.md +117 -0
  15. package/system/skills/agents/observer.md +137 -0
  16. package/system/skills/agents/start-observer.sh +143 -0
  17. package/system/skills/algorithmic-art/LICENSE.txt +202 -0
  18. package/system/skills/algorithmic-art/SKILL.md +405 -0
  19. package/system/skills/algorithmic-art/templates/generator_template.js +223 -0
  20. package/system/skills/algorithmic-art/templates/viewer.html +599 -0
  21. package/system/skills/api-endpoint/SKILL.md +106 -0
  22. package/system/skills/canvas-design/LICENSE.txt +202 -0
  23. package/system/skills/canvas-design/SKILL.md +130 -0
  24. package/system/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  25. package/system/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  26. package/system/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  27. package/system/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
  28. package/system/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  29. package/system/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
  30. package/system/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
  31. package/system/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  32. package/system/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  33. package/system/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  34. package/system/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  35. package/system/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  36. package/system/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  37. package/system/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  38. package/system/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
  39. package/system/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
  40. package/system/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
  41. package/system/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
  42. package/system/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
  43. package/system/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
  44. package/system/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
  45. package/system/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
  46. package/system/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
  47. package/system/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  48. package/system/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  49. package/system/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  50. package/system/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  51. package/system/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  52. package/system/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  53. package/system/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  54. package/system/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  55. package/system/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  56. package/system/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  57. package/system/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  58. package/system/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  59. package/system/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  60. package/system/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  61. package/system/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
  62. package/system/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
  63. package/system/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  64. package/system/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  65. package/system/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  66. package/system/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
  67. package/system/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
  68. package/system/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
  69. package/system/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  70. package/system/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  71. package/system/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
  72. package/system/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  73. package/system/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
  74. package/system/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
  75. package/system/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
  76. package/system/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
  77. package/system/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
  78. package/system/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
  79. package/system/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  80. package/system/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  81. package/system/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
  82. package/system/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
  83. package/system/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
  84. package/system/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  85. package/system/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
  86. package/system/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
  87. package/system/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  88. package/system/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  89. package/system/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
  90. package/system/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  91. package/system/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
  92. package/system/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  93. package/system/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  94. package/system/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
  95. package/system/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
  96. package/system/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
  97. package/system/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
  98. package/system/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
  99. package/system/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  100. package/system/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
  101. package/system/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
  102. package/system/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
  103. package/system/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
  104. package/system/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  105. package/system/skills/component/SKILL.md +103 -0
  106. package/system/skills/config.json +18 -0
  107. package/system/skills/doc-coauthoring/SKILL.md +375 -0
  108. package/system/skills/docx/LICENSE.txt +30 -0
  109. package/system/skills/docx/SKILL.md +590 -0
  110. package/system/skills/docx/scripts/__init__.py +1 -0
  111. package/system/skills/docx/scripts/accept_changes.py +135 -0
  112. package/system/skills/docx/scripts/comment.py +318 -0
  113. package/system/skills/docx/scripts/office/helpers/__init__.py +0 -0
  114. package/system/skills/docx/scripts/office/helpers/merge_runs.py +199 -0
  115. package/system/skills/docx/scripts/office/helpers/simplify_redlines.py +197 -0
  116. package/system/skills/docx/scripts/office/pack.py +159 -0
  117. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  118. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  119. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  120. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  121. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  122. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  123. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  124. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  125. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  126. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  127. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  128. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  129. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  130. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  131. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  132. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  133. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  134. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  135. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  136. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  137. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  138. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  139. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  140. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  141. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  142. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  143. package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  144. package/system/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  145. package/system/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  146. package/system/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  147. package/system/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  148. package/system/skills/docx/scripts/office/schemas/mce/mc.xsd +75 -0
  149. package/system/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  150. package/system/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  151. package/system/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  152. package/system/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  153. package/system/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  154. package/system/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  155. package/system/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  156. package/system/skills/docx/scripts/office/soffice.py +183 -0
  157. package/system/skills/docx/scripts/office/unpack.py +132 -0
  158. package/system/skills/docx/scripts/office/validate.py +111 -0
  159. package/system/skills/docx/scripts/office/validators/__init__.py +15 -0
  160. package/system/skills/docx/scripts/office/validators/base.py +847 -0
  161. package/system/skills/docx/scripts/office/validators/docx.py +446 -0
  162. package/system/skills/docx/scripts/office/validators/pptx.py +275 -0
  163. package/system/skills/docx/scripts/office/validators/redlining.py +247 -0
  164. package/system/skills/docx/scripts/templates/comments.xml +3 -0
  165. package/system/skills/docx/scripts/templates/commentsExtended.xml +3 -0
  166. package/system/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
  167. package/system/skills/docx/scripts/templates/commentsIds.xml +3 -0
  168. package/system/skills/docx/scripts/templates/people.xml +3 -0
  169. package/system/skills/evaluate-session.sh +69 -0
  170. package/system/skills/feature/SKILL.md +73 -0
  171. package/system/skills/frontend-design/LICENSE.txt +177 -0
  172. package/system/skills/frontend-design/SKILL.md +52 -0
  173. package/system/skills/hooks/observe.sh +164 -0
  174. package/system/skills/mcp-builder/LICENSE.txt +202 -0
  175. package/system/skills/mcp-builder/SKILL.md +236 -0
  176. package/system/skills/mcp-builder/reference/evaluation.md +602 -0
  177. package/system/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
  178. package/system/skills/mcp-builder/reference/node_mcp_server.md +970 -0
  179. package/system/skills/mcp-builder/reference/python_mcp_server.md +719 -0
  180. package/system/skills/mcp-builder/scripts/connections.py +151 -0
  181. package/system/skills/mcp-builder/scripts/evaluation.py +373 -0
  182. package/system/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
  183. package/system/skills/mcp-builder/scripts/requirements.txt +2 -0
  184. package/system/skills/pdf/LICENSE.txt +30 -0
  185. package/system/skills/pdf/SKILL.md +314 -0
  186. package/system/skills/pdf/forms.md +294 -0
  187. package/system/skills/pdf/reference.md +612 -0
  188. package/system/skills/pdf/scripts/check_bounding_boxes.py +65 -0
  189. package/system/skills/pdf/scripts/check_fillable_fields.py +11 -0
  190. package/system/skills/pdf/scripts/convert_pdf_to_images.py +33 -0
  191. package/system/skills/pdf/scripts/create_validation_image.py +37 -0
  192. package/system/skills/pdf/scripts/extract_form_field_info.py +122 -0
  193. package/system/skills/pdf/scripts/extract_form_structure.py +115 -0
  194. package/system/skills/pdf/scripts/fill_fillable_fields.py +98 -0
  195. package/system/skills/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
  196. package/system/skills/pptx/LICENSE.txt +30 -0
  197. package/system/skills/pptx/SKILL.md +232 -0
  198. package/system/skills/pptx/editing.md +205 -0
  199. package/system/skills/pptx/pptxgenjs.md +420 -0
  200. package/system/skills/pptx/scripts/__init__.py +0 -0
  201. package/system/skills/pptx/scripts/add_slide.py +195 -0
  202. package/system/skills/pptx/scripts/clean.py +286 -0
  203. package/system/skills/pptx/scripts/office/helpers/__init__.py +0 -0
  204. package/system/skills/pptx/scripts/office/helpers/merge_runs.py +199 -0
  205. package/system/skills/pptx/scripts/office/helpers/simplify_redlines.py +197 -0
  206. package/system/skills/pptx/scripts/office/pack.py +159 -0
  207. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  208. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  209. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  210. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  211. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  212. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  213. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  214. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  215. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  216. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  217. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  218. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  219. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  220. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  221. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  222. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  223. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  224. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  225. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  226. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  227. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  228. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  229. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  230. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  231. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  232. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  233. package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  234. package/system/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  235. package/system/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  236. package/system/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  237. package/system/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  238. package/system/skills/pptx/scripts/office/schemas/mce/mc.xsd +75 -0
  239. package/system/skills/pptx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  240. package/system/skills/pptx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  241. package/system/skills/pptx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  242. package/system/skills/pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  243. package/system/skills/pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  244. package/system/skills/pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  245. package/system/skills/pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  246. package/system/skills/pptx/scripts/office/soffice.py +183 -0
  247. package/system/skills/pptx/scripts/office/unpack.py +132 -0
  248. package/system/skills/pptx/scripts/office/validate.py +111 -0
  249. package/system/skills/pptx/scripts/office/validators/__init__.py +15 -0
  250. package/system/skills/pptx/scripts/office/validators/base.py +847 -0
  251. package/system/skills/pptx/scripts/office/validators/docx.py +446 -0
  252. package/system/skills/pptx/scripts/office/validators/pptx.py +275 -0
  253. package/system/skills/pptx/scripts/office/validators/redlining.py +247 -0
  254. package/system/skills/pptx/scripts/thumbnail.py +289 -0
  255. package/system/skills/scripts/quick-diff.sh +87 -0
  256. package/system/skills/scripts/save-results.sh +56 -0
  257. package/system/skills/scripts/scan.sh +170 -0
  258. package/system/skills/security-check/SKILL.md +70 -0
  259. package/system/skills/skill-creator/LICENSE.txt +202 -0
  260. package/system/skills/skill-creator/SKILL.md +479 -0
  261. package/system/skills/skill-creator/agents/analyzer.md +274 -0
  262. package/system/skills/skill-creator/agents/comparator.md +202 -0
  263. package/system/skills/skill-creator/agents/grader.md +223 -0
  264. package/system/skills/skill-creator/assets/eval_review.html +146 -0
  265. package/system/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  266. package/system/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  267. package/system/skills/skill-creator/references/schemas.md +430 -0
  268. package/system/skills/skill-creator/scripts/__init__.py +0 -0
  269. package/system/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  270. package/system/skills/skill-creator/scripts/generate_report.py +326 -0
  271. package/system/skills/skill-creator/scripts/improve_description.py +248 -0
  272. package/system/skills/skill-creator/scripts/package_skill.py +136 -0
  273. package/system/skills/skill-creator/scripts/quick_validate.py +103 -0
  274. package/system/skills/skill-creator/scripts/run_eval.py +310 -0
  275. package/system/skills/skill-creator/scripts/run_loop.py +332 -0
  276. package/system/skills/skill-creator/scripts/utils.py +47 -0
  277. package/system/skills/suggest-compact.sh +54 -0
  278. package/system/skills/supabase-migration/SKILL.md +59 -0
  279. package/system/skills/theme-factory/LICENSE.txt +202 -0
  280. package/system/skills/theme-factory/SKILL.md +59 -0
  281. package/system/skills/theme-factory/theme-showcase.pdf +0 -0
  282. package/system/skills/theme-factory/themes/arctic-frost.md +19 -0
  283. package/system/skills/theme-factory/themes/botanical-garden.md +19 -0
  284. package/system/skills/theme-factory/themes/desert-rose.md +19 -0
  285. package/system/skills/theme-factory/themes/forest-canopy.md +19 -0
  286. package/system/skills/theme-factory/themes/golden-hour.md +19 -0
  287. package/system/skills/theme-factory/themes/midnight-galaxy.md +19 -0
  288. package/system/skills/theme-factory/themes/modern-minimalist.md +19 -0
  289. package/system/skills/theme-factory/themes/ocean-depths.md +19 -0
  290. package/system/skills/theme-factory/themes/sunset-boulevard.md +19 -0
  291. package/system/skills/theme-factory/themes/tech-innovation.md +19 -0
  292. package/system/skills/web-artifacts-builder/LICENSE.txt +202 -0
  293. package/system/skills/web-artifacts-builder/SKILL.md +74 -0
  294. package/system/skills/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
  295. package/system/skills/web-artifacts-builder/scripts/init-artifact.sh +322 -0
  296. package/system/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
  297. package/system/skills/webapp-testing/LICENSE.txt +202 -0
  298. package/system/skills/webapp-testing/SKILL.md +96 -0
  299. package/system/skills/webapp-testing/examples/console_logging.py +35 -0
  300. package/system/skills/webapp-testing/examples/element_discovery.py +40 -0
  301. package/system/skills/webapp-testing/examples/static_html_automation.py +33 -0
  302. package/system/skills/webapp-testing/scripts/with_server.py +106 -0
  303. package/system/skills/xlsx/LICENSE.txt +30 -0
  304. package/system/skills/xlsx/SKILL.md +292 -0
  305. package/system/skills/xlsx/scripts/office/helpers/__init__.py +0 -0
  306. package/system/skills/xlsx/scripts/office/helpers/merge_runs.py +199 -0
  307. package/system/skills/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
  308. package/system/skills/xlsx/scripts/office/pack.py +159 -0
  309. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  310. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  311. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  312. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  313. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  314. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  315. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  316. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  317. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  318. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  319. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  320. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  321. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  322. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  323. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  324. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  325. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  326. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  327. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  328. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  329. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  330. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  331. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  332. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  333. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  334. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  335. package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  336. package/system/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  337. package/system/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  338. package/system/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  339. package/system/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  340. package/system/skills/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
  341. package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  342. package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  343. package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  344. package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  345. package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  346. package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  347. package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  348. package/system/skills/xlsx/scripts/office/soffice.py +183 -0
  349. package/system/skills/xlsx/scripts/office/unpack.py +132 -0
  350. package/system/skills/xlsx/scripts/office/validate.py +111 -0
  351. package/system/skills/xlsx/scripts/office/validators/__init__.py +15 -0
  352. package/system/skills/xlsx/scripts/office/validators/base.py +847 -0
  353. package/system/skills/xlsx/scripts/office/validators/docx.py +446 -0
  354. package/system/skills/xlsx/scripts/office/validators/pptx.py +275 -0
  355. package/system/skills/xlsx/scripts/office/validators/redlining.py +247 -0
  356. package/system/skills/xlsx/scripts/recalc.py +184 -0
  357. package/system/teams/profiles.md +76 -0
  358. package/system/templates/CLAUDE.md.tmpl +6 -0
  359. package/system/templates/settings.json.tmpl +11 -0
@@ -0,0 +1,332 @@
1
+ #!/usr/bin/env python3
2
+ """Run the eval + improve loop until all pass or max iterations reached.
3
+
4
+ Combines run_eval.py and improve_description.py in a loop, tracking history
5
+ and returning the best description found. Supports train/test split to prevent
6
+ overfitting.
7
+ """
8
+
9
+ import argparse
10
+ import json
11
+ import random
12
+ import sys
13
+ import tempfile
14
+ import time
15
+ import webbrowser
16
+ from pathlib import Path
17
+
18
+ import anthropic
19
+
20
+ from scripts.generate_report import generate_html
21
+ from scripts.improve_description import improve_description
22
+ from scripts.run_eval import find_project_root, run_eval
23
+ from scripts.utils import parse_skill_md
24
+
25
+
26
+ def split_eval_set(eval_set: list[dict], holdout: float, seed: int = 42) -> tuple[list[dict], list[dict]]:
27
+ """Split eval set into train and test sets, stratified by should_trigger."""
28
+ random.seed(seed)
29
+
30
+ # Separate by should_trigger
31
+ trigger = [e for e in eval_set if e["should_trigger"]]
32
+ no_trigger = [e for e in eval_set if not e["should_trigger"]]
33
+
34
+ # Shuffle each group
35
+ random.shuffle(trigger)
36
+ random.shuffle(no_trigger)
37
+
38
+ # Calculate split points
39
+ n_trigger_test = max(1, int(len(trigger) * holdout))
40
+ n_no_trigger_test = max(1, int(len(no_trigger) * holdout))
41
+
42
+ # Split
43
+ test_set = trigger[:n_trigger_test] + no_trigger[:n_no_trigger_test]
44
+ train_set = trigger[n_trigger_test:] + no_trigger[n_no_trigger_test:]
45
+
46
+ return train_set, test_set
47
+
48
+
49
+ def run_loop(
50
+ eval_set: list[dict],
51
+ skill_path: Path,
52
+ description_override: str | None,
53
+ num_workers: int,
54
+ timeout: int,
55
+ max_iterations: int,
56
+ runs_per_query: int,
57
+ trigger_threshold: float,
58
+ holdout: float,
59
+ model: str,
60
+ verbose: bool,
61
+ live_report_path: Path | None = None,
62
+ log_dir: Path | None = None,
63
+ ) -> dict:
64
+ """Run the eval + improvement loop."""
65
+ project_root = find_project_root()
66
+ name, original_description, content = parse_skill_md(skill_path)
67
+ current_description = description_override or original_description
68
+
69
+ # Split into train/test if holdout > 0
70
+ if holdout > 0:
71
+ train_set, test_set = split_eval_set(eval_set, holdout)
72
+ if verbose:
73
+ print(f"Split: {len(train_set)} train, {len(test_set)} test (holdout={holdout})", file=sys.stderr)
74
+ else:
75
+ train_set = eval_set
76
+ test_set = []
77
+
78
+ client = anthropic.Anthropic()
79
+ history = []
80
+ exit_reason = "unknown"
81
+
82
+ for iteration in range(1, max_iterations + 1):
83
+ if verbose:
84
+ print(f"\n{'='*60}", file=sys.stderr)
85
+ print(f"Iteration {iteration}/{max_iterations}", file=sys.stderr)
86
+ print(f"Description: {current_description}", file=sys.stderr)
87
+ print(f"{'='*60}", file=sys.stderr)
88
+
89
+ # Evaluate train + test together in one batch for parallelism
90
+ all_queries = train_set + test_set
91
+ t0 = time.time()
92
+ all_results = run_eval(
93
+ eval_set=all_queries,
94
+ skill_name=name,
95
+ description=current_description,
96
+ num_workers=num_workers,
97
+ timeout=timeout,
98
+ project_root=project_root,
99
+ runs_per_query=runs_per_query,
100
+ trigger_threshold=trigger_threshold,
101
+ model=model,
102
+ )
103
+ eval_elapsed = time.time() - t0
104
+
105
+ # Split results back into train/test by matching queries
106
+ train_queries_set = {q["query"] for q in train_set}
107
+ train_result_list = [r for r in all_results["results"] if r["query"] in train_queries_set]
108
+ test_result_list = [r for r in all_results["results"] if r["query"] not in train_queries_set]
109
+
110
+ train_passed = sum(1 for r in train_result_list if r["pass"])
111
+ train_total = len(train_result_list)
112
+ train_summary = {"passed": train_passed, "failed": train_total - train_passed, "total": train_total}
113
+ train_results = {"results": train_result_list, "summary": train_summary}
114
+
115
+ if test_set:
116
+ test_passed = sum(1 for r in test_result_list if r["pass"])
117
+ test_total = len(test_result_list)
118
+ test_summary = {"passed": test_passed, "failed": test_total - test_passed, "total": test_total}
119
+ test_results = {"results": test_result_list, "summary": test_summary}
120
+ else:
121
+ test_results = None
122
+ test_summary = None
123
+
124
+ history.append({
125
+ "iteration": iteration,
126
+ "description": current_description,
127
+ "train_passed": train_summary["passed"],
128
+ "train_failed": train_summary["failed"],
129
+ "train_total": train_summary["total"],
130
+ "train_results": train_results["results"],
131
+ "test_passed": test_summary["passed"] if test_summary else None,
132
+ "test_failed": test_summary["failed"] if test_summary else None,
133
+ "test_total": test_summary["total"] if test_summary else None,
134
+ "test_results": test_results["results"] if test_results else None,
135
+ # For backward compat with report generator
136
+ "passed": train_summary["passed"],
137
+ "failed": train_summary["failed"],
138
+ "total": train_summary["total"],
139
+ "results": train_results["results"],
140
+ })
141
+
142
+ # Write live report if path provided
143
+ if live_report_path:
144
+ partial_output = {
145
+ "original_description": original_description,
146
+ "best_description": current_description,
147
+ "best_score": "in progress",
148
+ "iterations_run": len(history),
149
+ "holdout": holdout,
150
+ "train_size": len(train_set),
151
+ "test_size": len(test_set),
152
+ "history": history,
153
+ }
154
+ live_report_path.write_text(generate_html(partial_output, auto_refresh=True, skill_name=name))
155
+
156
+ if verbose:
157
+ def print_eval_stats(label, results, elapsed):
158
+ pos = [r for r in results if r["should_trigger"]]
159
+ neg = [r for r in results if not r["should_trigger"]]
160
+ tp = sum(r["triggers"] for r in pos)
161
+ pos_runs = sum(r["runs"] for r in pos)
162
+ fn = pos_runs - tp
163
+ fp = sum(r["triggers"] for r in neg)
164
+ neg_runs = sum(r["runs"] for r in neg)
165
+ tn = neg_runs - fp
166
+ total = tp + tn + fp + fn
167
+ precision = tp / (tp + fp) if (tp + fp) > 0 else 1.0
168
+ recall = tp / (tp + fn) if (tp + fn) > 0 else 1.0
169
+ accuracy = (tp + tn) / total if total > 0 else 0.0
170
+ print(f"{label}: {tp+tn}/{total} correct, precision={precision:.0%} recall={recall:.0%} accuracy={accuracy:.0%} ({elapsed:.1f}s)", file=sys.stderr)
171
+ for r in results:
172
+ status = "PASS" if r["pass"] else "FAIL"
173
+ rate_str = f"{r['triggers']}/{r['runs']}"
174
+ print(f" [{status}] rate={rate_str} expected={r['should_trigger']}: {r['query'][:60]}", file=sys.stderr)
175
+
176
+ print_eval_stats("Train", train_results["results"], eval_elapsed)
177
+ if test_summary:
178
+ print_eval_stats("Test ", test_results["results"], 0)
179
+
180
+ if train_summary["failed"] == 0:
181
+ exit_reason = f"all_passed (iteration {iteration})"
182
+ if verbose:
183
+ print(f"\nAll train queries passed on iteration {iteration}!", file=sys.stderr)
184
+ break
185
+
186
+ if iteration == max_iterations:
187
+ exit_reason = f"max_iterations ({max_iterations})"
188
+ if verbose:
189
+ print(f"\nMax iterations reached ({max_iterations}).", file=sys.stderr)
190
+ break
191
+
192
+ # Improve the description based on train results
193
+ if verbose:
194
+ print(f"\nImproving description...", file=sys.stderr)
195
+
196
+ t0 = time.time()
197
+ # Strip test scores from history so improvement model can't see them
198
+ blinded_history = [
199
+ {k: v for k, v in h.items() if not k.startswith("test_")}
200
+ for h in history
201
+ ]
202
+ new_description = improve_description(
203
+ client=client,
204
+ skill_name=name,
205
+ skill_content=content,
206
+ current_description=current_description,
207
+ eval_results=train_results,
208
+ history=blinded_history,
209
+ model=model,
210
+ log_dir=log_dir,
211
+ iteration=iteration,
212
+ )
213
+ improve_elapsed = time.time() - t0
214
+
215
+ if verbose:
216
+ print(f"Proposed ({improve_elapsed:.1f}s): {new_description}", file=sys.stderr)
217
+
218
+ current_description = new_description
219
+
220
+ # Find the best iteration by TEST score (or train if no test set)
221
+ if test_set:
222
+ best = max(history, key=lambda h: h["test_passed"] or 0)
223
+ best_score = f"{best['test_passed']}/{best['test_total']}"
224
+ else:
225
+ best = max(history, key=lambda h: h["train_passed"])
226
+ best_score = f"{best['train_passed']}/{best['train_total']}"
227
+
228
+ if verbose:
229
+ print(f"\nExit reason: {exit_reason}", file=sys.stderr)
230
+ print(f"Best score: {best_score} (iteration {best['iteration']})", file=sys.stderr)
231
+
232
+ return {
233
+ "exit_reason": exit_reason,
234
+ "original_description": original_description,
235
+ "best_description": best["description"],
236
+ "best_score": best_score,
237
+ "best_train_score": f"{best['train_passed']}/{best['train_total']}",
238
+ "best_test_score": f"{best['test_passed']}/{best['test_total']}" if test_set else None,
239
+ "final_description": current_description,
240
+ "iterations_run": len(history),
241
+ "holdout": holdout,
242
+ "train_size": len(train_set),
243
+ "test_size": len(test_set),
244
+ "history": history,
245
+ }
246
+
247
+
248
+ def main():
249
+ parser = argparse.ArgumentParser(description="Run eval + improve loop")
250
+ parser.add_argument("--eval-set", required=True, help="Path to eval set JSON file")
251
+ parser.add_argument("--skill-path", required=True, help="Path to skill directory")
252
+ parser.add_argument("--description", default=None, help="Override starting description")
253
+ parser.add_argument("--num-workers", type=int, default=10, help="Number of parallel workers")
254
+ parser.add_argument("--timeout", type=int, default=30, help="Timeout per query in seconds")
255
+ parser.add_argument("--max-iterations", type=int, default=5, help="Max improvement iterations")
256
+ parser.add_argument("--runs-per-query", type=int, default=3, help="Number of runs per query")
257
+ parser.add_argument("--trigger-threshold", type=float, default=0.5, help="Trigger rate threshold")
258
+ parser.add_argument("--holdout", type=float, default=0.4, help="Fraction of eval set to hold out for testing (0 to disable)")
259
+ parser.add_argument("--model", required=True, help="Model for improvement")
260
+ parser.add_argument("--verbose", action="store_true", help="Print progress to stderr")
261
+ parser.add_argument("--report", default="auto", help="Generate HTML report at this path (default: 'auto' for temp file, 'none' to disable)")
262
+ parser.add_argument("--results-dir", default=None, help="Save all outputs (results.json, report.html, log.txt) to a timestamped subdirectory here")
263
+ args = parser.parse_args()
264
+
265
+ eval_set = json.loads(Path(args.eval_set).read_text())
266
+ skill_path = Path(args.skill_path)
267
+
268
+ if not (skill_path / "SKILL.md").exists():
269
+ print(f"Error: No SKILL.md found at {skill_path}", file=sys.stderr)
270
+ sys.exit(1)
271
+
272
+ name, _, _ = parse_skill_md(skill_path)
273
+
274
+ # Set up live report path
275
+ if args.report != "none":
276
+ if args.report == "auto":
277
+ timestamp = time.strftime("%Y%m%d_%H%M%S")
278
+ live_report_path = Path(tempfile.gettempdir()) / f"skill_description_report_{skill_path.name}_{timestamp}.html"
279
+ else:
280
+ live_report_path = Path(args.report)
281
+ # Open the report immediately so the user can watch
282
+ live_report_path.write_text("<html><body><h1>Starting optimization loop...</h1><meta http-equiv='refresh' content='5'></body></html>")
283
+ webbrowser.open(str(live_report_path))
284
+ else:
285
+ live_report_path = None
286
+
287
+ # Determine output directory (create before run_loop so logs can be written)
288
+ if args.results_dir:
289
+ timestamp = time.strftime("%Y-%m-%d_%H%M%S")
290
+ results_dir = Path(args.results_dir) / timestamp
291
+ results_dir.mkdir(parents=True, exist_ok=True)
292
+ else:
293
+ results_dir = None
294
+
295
+ log_dir = results_dir / "logs" if results_dir else None
296
+
297
+ output = run_loop(
298
+ eval_set=eval_set,
299
+ skill_path=skill_path,
300
+ description_override=args.description,
301
+ num_workers=args.num_workers,
302
+ timeout=args.timeout,
303
+ max_iterations=args.max_iterations,
304
+ runs_per_query=args.runs_per_query,
305
+ trigger_threshold=args.trigger_threshold,
306
+ holdout=args.holdout,
307
+ model=args.model,
308
+ verbose=args.verbose,
309
+ live_report_path=live_report_path,
310
+ log_dir=log_dir,
311
+ )
312
+
313
+ # Save JSON output
314
+ json_output = json.dumps(output, indent=2)
315
+ print(json_output)
316
+ if results_dir:
317
+ (results_dir / "results.json").write_text(json_output)
318
+
319
+ # Write final HTML report (without auto-refresh)
320
+ if live_report_path:
321
+ live_report_path.write_text(generate_html(output, auto_refresh=False, skill_name=name))
322
+ print(f"\nReport: {live_report_path}", file=sys.stderr)
323
+
324
+ if results_dir and live_report_path:
325
+ (results_dir / "report.html").write_text(generate_html(output, auto_refresh=False, skill_name=name))
326
+
327
+ if results_dir:
328
+ print(f"Results saved to: {results_dir}", file=sys.stderr)
329
+
330
+
331
+ if __name__ == "__main__":
332
+ main()
@@ -0,0 +1,47 @@
1
+ """Shared utilities for skill-creator scripts."""
2
+
3
+ from pathlib import Path
4
+
5
+
6
+
7
+ def parse_skill_md(skill_path: Path) -> tuple[str, str, str]:
8
+ """Parse a SKILL.md file, returning (name, description, full_content)."""
9
+ content = (skill_path / "SKILL.md").read_text()
10
+ lines = content.split("\n")
11
+
12
+ if lines[0].strip() != "---":
13
+ raise ValueError("SKILL.md missing frontmatter (no opening ---)")
14
+
15
+ end_idx = None
16
+ for i, line in enumerate(lines[1:], start=1):
17
+ if line.strip() == "---":
18
+ end_idx = i
19
+ break
20
+
21
+ if end_idx is None:
22
+ raise ValueError("SKILL.md missing frontmatter (no closing ---)")
23
+
24
+ name = ""
25
+ description = ""
26
+ frontmatter_lines = lines[1:end_idx]
27
+ i = 0
28
+ while i < len(frontmatter_lines):
29
+ line = frontmatter_lines[i]
30
+ if line.startswith("name:"):
31
+ name = line[len("name:"):].strip().strip('"').strip("'")
32
+ elif line.startswith("description:"):
33
+ value = line[len("description:"):].strip()
34
+ # Handle YAML multiline indicators (>, |, >-, |-)
35
+ if value in (">", "|", ">-", "|-"):
36
+ continuation_lines: list[str] = []
37
+ i += 1
38
+ while i < len(frontmatter_lines) and (frontmatter_lines[i].startswith(" ") or frontmatter_lines[i].startswith("\t")):
39
+ continuation_lines.append(frontmatter_lines[i].strip())
40
+ i += 1
41
+ description = " ".join(continuation_lines)
42
+ continue
43
+ else:
44
+ description = value.strip('"').strip("'")
45
+ i += 1
46
+
47
+ return name, description, content
@@ -0,0 +1,54 @@
1
+ #!/bin/bash
2
+ # Strategic Compact Suggester
3
+ # Runs on PreToolUse or periodically to suggest manual compaction at logical intervals
4
+ #
5
+ # Why manual over auto-compact:
6
+ # - Auto-compact happens at arbitrary points, often mid-task
7
+ # - Strategic compacting preserves context through logical phases
8
+ # - Compact after exploration, before execution
9
+ # - Compact after completing a milestone, before starting next
10
+ #
11
+ # Hook config (in ~/.claude/settings.json):
12
+ # {
13
+ # "hooks": {
14
+ # "PreToolUse": [{
15
+ # "matcher": "Edit|Write",
16
+ # "hooks": [{
17
+ # "type": "command",
18
+ # "command": "~/.claude/skills/strategic-compact/suggest-compact.sh"
19
+ # }]
20
+ # }]
21
+ # }
22
+ # }
23
+ #
24
+ # Criteria for suggesting compact:
25
+ # - Session has been running for extended period
26
+ # - Large number of tool calls made
27
+ # - Transitioning from research/exploration to implementation
28
+ # - Plan has been finalized
29
+
30
+ # Track tool call count (increment in a temp file)
31
+ # Use CLAUDE_SESSION_ID for session-specific counter (not $$ which changes per invocation)
32
+ SESSION_ID="${CLAUDE_SESSION_ID:-${PPID:-default}}"
33
+ COUNTER_FILE="/tmp/claude-tool-count-${SESSION_ID}"
34
+ THRESHOLD=${COMPACT_THRESHOLD:-50}
35
+
36
+ # Initialize or increment counter
37
+ if [ -f "$COUNTER_FILE" ]; then
38
+ count=$(cat "$COUNTER_FILE")
39
+ count=$((count + 1))
40
+ echo "$count" > "$COUNTER_FILE"
41
+ else
42
+ echo "1" > "$COUNTER_FILE"
43
+ count=1
44
+ fi
45
+
46
+ # Suggest compact after threshold tool calls
47
+ if [ "$count" -eq "$THRESHOLD" ]; then
48
+ echo "[StrategicCompact] $THRESHOLD tool calls reached - consider /compact if transitioning phases" >&2
49
+ fi
50
+
51
+ # Suggest at regular intervals after threshold
52
+ if [ "$count" -gt "$THRESHOLD" ] && [ $((count % 25)) -eq 0 ]; then
53
+ echo "[StrategicCompact] $count tool calls - good checkpoint for /compact if context is stale" >&2
54
+ fi
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: supabase-migration
3
+ description: Create Supabase database migrations with RLS policies, indexes, and generated types. Use when adding tables, columns, or changing schema.
4
+ disable-model-invocation: true
5
+ argument-hint: "[description of the schema change]"
6
+ ---
7
+
8
+ Create a Supabase migration for: $ARGUMENTS
9
+
10
+ ## Process
11
+
12
+ 1. **Analyze the request** — Understand what schema changes are needed
13
+ 2. **Check existing schema** — Use `list_tables` and `execute_sql` to understand current state
14
+ 3. **Write the migration** — Use `apply_migration` with a descriptive snake_case name
15
+ 4. **Verify** — Run `list_tables` to confirm changes applied
16
+ 5. **Security check** — Run `get_advisors` (type: security) to catch missing RLS
17
+
18
+ ## Migration Rules
19
+
20
+ ### Tables
21
+ - Every table MUST have `id uuid DEFAULT gen_random_uuid() PRIMARY KEY`
22
+ - Every table MUST have `created_at timestamptz DEFAULT now() NOT NULL`
23
+ - Every table MUST have `updated_at timestamptz DEFAULT now() NOT NULL`
24
+ - Multi-tenant tables MUST have `tenant_id uuid NOT NULL REFERENCES tenants(id)`
25
+ - Add `ON DELETE CASCADE` for child relationships, `ON DELETE RESTRICT` for references
26
+
27
+ ### RLS (mandatory)
28
+ - ALWAYS `ALTER TABLE ... ENABLE ROW LEVEL SECURITY` on every new table
29
+ - Create at minimum these policies:
30
+ - SELECT: authenticated users can read their tenant's rows
31
+ - INSERT: authenticated users can insert for their tenant
32
+ - UPDATE: authenticated users can update their tenant's rows
33
+ - DELETE: authenticated users can delete their tenant's rows (if applicable)
34
+ - Policy pattern:
35
+ ```sql
36
+ CREATE POLICY "tenant_select" ON table_name
37
+ FOR SELECT TO authenticated
38
+ USING (tenant_id = (auth.jwt() ->> 'tenant_id')::uuid);
39
+ ```
40
+
41
+ ### Indexes
42
+ - Add indexes on all foreign keys
43
+ - Add indexes on columns used in WHERE clauses
44
+ - Add composite indexes for common query patterns
45
+ - Use `CREATE INDEX CONCURRENTLY` for large tables
46
+
47
+ ### Naming
48
+ - Migration name: `create_[table]`, `add_[column]_to_[table]`, `alter_[table]_[change]`
49
+ - Table names: plural snake_case (`user_profiles`, not `UserProfile`)
50
+ - Column names: snake_case
51
+ - Index names: `idx_[table]_[columns]`
52
+ - Policy names: `[table]_[operation]` or descriptive like `users_can_read_own`
53
+
54
+ ## After Migration
55
+
56
+ 1. Run security advisors: `get_advisors(type: "security")`
57
+ 2. Run performance advisors: `get_advisors(type: "performance")`
58
+ 3. Generate TypeScript types: `generate_typescript_types`
59
+ 4. Report any advisor warnings to the user