devskill 2.0.6 → 2.0.7

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 (435) hide show
  1. package/meta.ts +9 -1
  2. package/package.json +1 -1
  3. package/scripts/cli.ts +55 -10
  4. package/skills/algorithmic-art/LICENSE.txt +202 -0
  5. package/skills/algorithmic-art/SKILL.md +405 -0
  6. package/skills/algorithmic-art/SYNC.md +5 -0
  7. package/skills/algorithmic-art/templates/generator_template.js +223 -0
  8. package/skills/algorithmic-art/templates/viewer.html +599 -0
  9. package/skills/brand-guidelines/LICENSE.txt +202 -0
  10. package/skills/brand-guidelines/SKILL.md +73 -0
  11. package/skills/brand-guidelines/SYNC.md +5 -0
  12. package/skills/canvas-design/LICENSE.txt +202 -0
  13. package/skills/canvas-design/SKILL.md +130 -0
  14. package/skills/canvas-design/SYNC.md +5 -0
  15. package/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  16. package/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  17. package/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  18. package/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
  19. package/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  20. package/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
  21. package/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
  22. package/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  23. package/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  24. package/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  25. package/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  26. package/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  27. package/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  28. package/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  29. package/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
  30. package/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
  31. package/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
  32. package/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
  33. package/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
  34. package/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
  35. package/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
  36. package/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
  37. package/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
  38. package/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  39. package/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  40. package/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  41. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  42. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  43. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  44. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  45. package/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  46. package/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  47. package/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  48. package/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  49. package/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  50. package/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  51. package/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  52. package/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
  53. package/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
  54. package/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  55. package/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  56. package/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  57. package/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
  58. package/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
  59. package/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
  60. package/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  61. package/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  62. package/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
  63. package/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  64. package/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
  65. package/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
  66. package/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
  67. package/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
  68. package/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
  69. package/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
  70. package/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  71. package/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  72. package/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
  73. package/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
  74. package/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
  75. package/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  76. package/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
  77. package/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
  78. package/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  79. package/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  80. package/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
  81. package/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  82. package/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
  83. package/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  84. package/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  85. package/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
  86. package/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
  87. package/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
  88. package/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
  89. package/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
  90. package/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  91. package/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
  92. package/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
  93. package/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
  94. package/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
  95. package/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  96. package/skills/claude-api/LICENSE.txt +202 -0
  97. package/skills/claude-api/SKILL.md +246 -0
  98. package/skills/claude-api/SYNC.md +5 -0
  99. package/skills/claude-api/csharp/claude-api.md +400 -0
  100. package/skills/claude-api/curl/examples.md +193 -0
  101. package/skills/claude-api/go/claude-api.md +404 -0
  102. package/skills/claude-api/java/claude-api.md +430 -0
  103. package/skills/claude-api/php/claude-api.md +241 -0
  104. package/skills/claude-api/python/agent-sdk/README.md +345 -0
  105. package/skills/claude-api/python/agent-sdk/patterns.md +359 -0
  106. package/skills/claude-api/python/claude-api/README.md +410 -0
  107. package/skills/claude-api/python/claude-api/batches.md +185 -0
  108. package/skills/claude-api/python/claude-api/files-api.md +165 -0
  109. package/skills/claude-api/python/claude-api/streaming.md +162 -0
  110. package/skills/claude-api/python/claude-api/tool-use.md +590 -0
  111. package/skills/claude-api/ruby/claude-api.md +92 -0
  112. package/skills/claude-api/shared/error-codes.md +206 -0
  113. package/skills/claude-api/shared/live-sources.md +121 -0
  114. package/skills/claude-api/shared/models.md +119 -0
  115. package/skills/claude-api/shared/tool-use-concepts.md +305 -0
  116. package/skills/claude-api/typescript/agent-sdk/README.md +296 -0
  117. package/skills/claude-api/typescript/agent-sdk/patterns.md +209 -0
  118. package/skills/claude-api/typescript/claude-api/README.md +321 -0
  119. package/skills/claude-api/typescript/claude-api/batches.md +106 -0
  120. package/skills/claude-api/typescript/claude-api/files-api.md +98 -0
  121. package/skills/claude-api/typescript/claude-api/streaming.md +178 -0
  122. package/skills/claude-api/typescript/claude-api/tool-use.md +527 -0
  123. package/skills/doc-coauthoring/SKILL.md +375 -0
  124. package/skills/doc-coauthoring/SYNC.md +5 -0
  125. package/skills/docx/LICENSE.txt +30 -0
  126. package/skills/docx/SKILL.md +590 -0
  127. package/skills/docx/SYNC.md +5 -0
  128. package/skills/docx/scripts/__init__.py +1 -0
  129. package/skills/docx/scripts/accept_changes.py +135 -0
  130. package/skills/docx/scripts/comment.py +318 -0
  131. package/skills/docx/scripts/office/helpers/__init__.py +0 -0
  132. package/skills/docx/scripts/office/helpers/merge_runs.py +199 -0
  133. package/skills/docx/scripts/office/helpers/simplify_redlines.py +197 -0
  134. package/skills/docx/scripts/office/pack.py +159 -0
  135. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  136. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  137. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  138. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  139. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  140. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  141. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  142. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  143. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  144. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  145. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  146. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  147. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  148. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  149. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  150. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  151. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  152. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  153. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  154. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  155. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  156. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  157. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  158. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  159. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  160. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  161. package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  162. package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  163. package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  164. package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  165. package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  166. package/skills/docx/scripts/office/schemas/mce/mc.xsd +75 -0
  167. package/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  168. package/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  169. package/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  170. package/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  171. package/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  172. package/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  173. package/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  174. package/skills/docx/scripts/office/soffice.py +183 -0
  175. package/skills/docx/scripts/office/unpack.py +132 -0
  176. package/skills/docx/scripts/office/validate.py +111 -0
  177. package/skills/docx/scripts/office/validators/__init__.py +15 -0
  178. package/skills/docx/scripts/office/validators/base.py +847 -0
  179. package/skills/docx/scripts/office/validators/docx.py +446 -0
  180. package/skills/docx/scripts/office/validators/pptx.py +275 -0
  181. package/skills/docx/scripts/office/validators/redlining.py +247 -0
  182. package/skills/docx/scripts/templates/comments.xml +3 -0
  183. package/skills/docx/scripts/templates/commentsExtended.xml +3 -0
  184. package/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
  185. package/skills/docx/scripts/templates/commentsIds.xml +3 -0
  186. package/skills/docx/scripts/templates/people.xml +3 -0
  187. package/skills/frontend-design/LICENSE.txt +177 -0
  188. package/skills/frontend-design/SKILL.md +42 -0
  189. package/skills/frontend-design/SYNC.md +5 -0
  190. package/skills/internal-comms/LICENSE.txt +202 -0
  191. package/skills/internal-comms/SKILL.md +32 -0
  192. package/skills/internal-comms/SYNC.md +5 -0
  193. package/skills/internal-comms/examples/3p-updates.md +47 -0
  194. package/skills/internal-comms/examples/company-newsletter.md +65 -0
  195. package/skills/internal-comms/examples/faq-answers.md +30 -0
  196. package/skills/internal-comms/examples/general-comms.md +16 -0
  197. package/skills/mcp-builder/LICENSE.txt +202 -0
  198. package/skills/mcp-builder/SKILL.md +236 -0
  199. package/skills/mcp-builder/SYNC.md +5 -0
  200. package/skills/mcp-builder/reference/evaluation.md +602 -0
  201. package/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
  202. package/skills/mcp-builder/reference/node_mcp_server.md +970 -0
  203. package/skills/mcp-builder/reference/python_mcp_server.md +719 -0
  204. package/skills/mcp-builder/scripts/connections.py +151 -0
  205. package/skills/mcp-builder/scripts/evaluation.py +373 -0
  206. package/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
  207. package/skills/mcp-builder/scripts/requirements.txt +2 -0
  208. package/skills/next-best-practices/SKILL.md +153 -0
  209. package/skills/next-best-practices/SYNC.md +5 -0
  210. package/skills/next-best-practices/async-patterns.md +87 -0
  211. package/skills/next-best-practices/bundling.md +180 -0
  212. package/skills/next-best-practices/data-patterns.md +297 -0
  213. package/skills/next-best-practices/debug-tricks.md +105 -0
  214. package/skills/next-best-practices/directives.md +73 -0
  215. package/skills/next-best-practices/error-handling.md +227 -0
  216. package/skills/next-best-practices/file-conventions.md +140 -0
  217. package/skills/next-best-practices/font.md +245 -0
  218. package/skills/next-best-practices/functions.md +108 -0
  219. package/skills/next-best-practices/hydration-error.md +91 -0
  220. package/skills/next-best-practices/image.md +173 -0
  221. package/skills/next-best-practices/metadata.md +301 -0
  222. package/skills/next-best-practices/parallel-routes.md +287 -0
  223. package/skills/next-best-practices/route-handlers.md +146 -0
  224. package/skills/next-best-practices/rsc-boundaries.md +159 -0
  225. package/skills/next-best-practices/runtime-selection.md +39 -0
  226. package/skills/next-best-practices/scripts.md +141 -0
  227. package/skills/next-best-practices/self-hosting.md +371 -0
  228. package/skills/next-best-practices/suspense-boundaries.md +67 -0
  229. package/skills/next-cache-components/SKILL.md +411 -0
  230. package/skills/next-cache-components/SYNC.md +5 -0
  231. package/skills/next-upgrade/SKILL.md +50 -0
  232. package/skills/next-upgrade/SYNC.md +5 -0
  233. package/skills/pdf/LICENSE.txt +30 -0
  234. package/skills/pdf/SKILL.md +314 -0
  235. package/skills/pdf/SYNC.md +5 -0
  236. package/skills/pdf/forms.md +294 -0
  237. package/skills/pdf/reference.md +612 -0
  238. package/skills/pdf/scripts/check_bounding_boxes.py +65 -0
  239. package/skills/pdf/scripts/check_fillable_fields.py +11 -0
  240. package/skills/pdf/scripts/convert_pdf_to_images.py +33 -0
  241. package/skills/pdf/scripts/create_validation_image.py +37 -0
  242. package/skills/pdf/scripts/extract_form_field_info.py +122 -0
  243. package/skills/pdf/scripts/extract_form_structure.py +115 -0
  244. package/skills/pdf/scripts/fill_fillable_fields.py +98 -0
  245. package/skills/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
  246. package/skills/pptx/LICENSE.txt +30 -0
  247. package/skills/pptx/SKILL.md +232 -0
  248. package/skills/pptx/SYNC.md +5 -0
  249. package/skills/pptx/editing.md +205 -0
  250. package/skills/pptx/pptxgenjs.md +420 -0
  251. package/skills/pptx/scripts/__init__.py +0 -0
  252. package/skills/pptx/scripts/add_slide.py +195 -0
  253. package/skills/pptx/scripts/clean.py +286 -0
  254. package/skills/pptx/scripts/office/helpers/__init__.py +0 -0
  255. package/skills/pptx/scripts/office/helpers/merge_runs.py +199 -0
  256. package/skills/pptx/scripts/office/helpers/simplify_redlines.py +197 -0
  257. package/skills/pptx/scripts/office/pack.py +159 -0
  258. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  259. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  260. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  261. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  262. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  263. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  264. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  265. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  266. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  267. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  268. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  269. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  270. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  271. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  272. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  273. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  274. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  275. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  276. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  277. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  278. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  279. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  280. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  281. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  282. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  283. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  284. package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  285. package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  286. package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  287. package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  288. package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  289. package/skills/pptx/scripts/office/schemas/mce/mc.xsd +75 -0
  290. package/skills/pptx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  291. package/skills/pptx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  292. package/skills/pptx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  293. package/skills/pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  294. package/skills/pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  295. package/skills/pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  296. package/skills/pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  297. package/skills/pptx/scripts/office/soffice.py +183 -0
  298. package/skills/pptx/scripts/office/unpack.py +132 -0
  299. package/skills/pptx/scripts/office/validate.py +111 -0
  300. package/skills/pptx/scripts/office/validators/__init__.py +15 -0
  301. package/skills/pptx/scripts/office/validators/base.py +847 -0
  302. package/skills/pptx/scripts/office/validators/docx.py +446 -0
  303. package/skills/pptx/scripts/office/validators/pptx.py +275 -0
  304. package/skills/pptx/scripts/office/validators/redlining.py +247 -0
  305. package/skills/pptx/scripts/thumbnail.py +289 -0
  306. package/skills/shadcn/LICENSE.md +21 -0
  307. package/skills/shadcn/SKILL.md +242 -0
  308. package/skills/shadcn/SYNC.md +5 -0
  309. package/skills/shadcn/agents/openai.yml +5 -0
  310. package/skills/shadcn/assets/shadcn-small.png +0 -0
  311. package/skills/shadcn/assets/shadcn.png +0 -0
  312. package/skills/shadcn/cli.md +257 -0
  313. package/skills/shadcn/customization.md +202 -0
  314. package/skills/shadcn/evals/evals.json +47 -0
  315. package/skills/shadcn/mcp.md +94 -0
  316. package/skills/shadcn/rules/base-vs-radix.md +306 -0
  317. package/skills/shadcn/rules/composition.md +195 -0
  318. package/skills/shadcn/rules/forms.md +192 -0
  319. package/skills/shadcn/rules/icons.md +101 -0
  320. package/skills/shadcn/rules/styling.md +162 -0
  321. package/skills/skill-creator/LICENSE.txt +202 -0
  322. package/skills/skill-creator/SKILL.md +485 -0
  323. package/skills/skill-creator/SYNC.md +5 -0
  324. package/skills/skill-creator/agents/analyzer.md +274 -0
  325. package/skills/skill-creator/agents/comparator.md +202 -0
  326. package/skills/skill-creator/agents/grader.md +223 -0
  327. package/skills/skill-creator/assets/eval_review.html +146 -0
  328. package/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  329. package/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  330. package/skills/skill-creator/references/schemas.md +430 -0
  331. package/skills/skill-creator/scripts/__init__.py +0 -0
  332. package/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  333. package/skills/skill-creator/scripts/generate_report.py +326 -0
  334. package/skills/skill-creator/scripts/improve_description.py +247 -0
  335. package/skills/skill-creator/scripts/package_skill.py +136 -0
  336. package/skills/skill-creator/scripts/quick_validate.py +103 -0
  337. package/skills/skill-creator/scripts/run_eval.py +310 -0
  338. package/skills/skill-creator/scripts/run_loop.py +328 -0
  339. package/skills/skill-creator/scripts/utils.py +47 -0
  340. package/skills/slack-gif-creator/LICENSE.txt +202 -0
  341. package/skills/slack-gif-creator/SKILL.md +254 -0
  342. package/skills/slack-gif-creator/SYNC.md +5 -0
  343. package/skills/slack-gif-creator/core/easing.py +234 -0
  344. package/skills/slack-gif-creator/core/frame_composer.py +176 -0
  345. package/skills/slack-gif-creator/core/gif_builder.py +269 -0
  346. package/skills/slack-gif-creator/core/validators.py +136 -0
  347. package/skills/slack-gif-creator/requirements.txt +4 -0
  348. package/skills/theme-factory/LICENSE.txt +202 -0
  349. package/skills/theme-factory/SKILL.md +59 -0
  350. package/skills/theme-factory/SYNC.md +5 -0
  351. package/skills/theme-factory/theme-showcase.pdf +0 -0
  352. package/skills/theme-factory/themes/arctic-frost.md +19 -0
  353. package/skills/theme-factory/themes/botanical-garden.md +19 -0
  354. package/skills/theme-factory/themes/desert-rose.md +19 -0
  355. package/skills/theme-factory/themes/forest-canopy.md +19 -0
  356. package/skills/theme-factory/themes/golden-hour.md +19 -0
  357. package/skills/theme-factory/themes/midnight-galaxy.md +19 -0
  358. package/skills/theme-factory/themes/modern-minimalist.md +19 -0
  359. package/skills/theme-factory/themes/ocean-depths.md +19 -0
  360. package/skills/theme-factory/themes/sunset-boulevard.md +19 -0
  361. package/skills/theme-factory/themes/tech-innovation.md +19 -0
  362. package/skills/vue-best-practices/SYNC.md +1 -1
  363. package/skills/vue-jsx-best-practices/SYNC.md +1 -1
  364. package/skills/vue-options-api-best-practices/SYNC.md +1 -1
  365. package/skills/vue-pinia-best-practices/SYNC.md +1 -1
  366. package/skills/vue-router-best-practices/SYNC.md +1 -1
  367. package/skills/vue-testing-best-practices/SYNC.md +1 -1
  368. package/skills/web-artifacts-builder/LICENSE.txt +202 -0
  369. package/skills/web-artifacts-builder/SKILL.md +74 -0
  370. package/skills/web-artifacts-builder/SYNC.md +5 -0
  371. package/skills/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
  372. package/skills/web-artifacts-builder/scripts/init-artifact.sh +322 -0
  373. package/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
  374. package/skills/webapp-testing/LICENSE.txt +202 -0
  375. package/skills/webapp-testing/SKILL.md +96 -0
  376. package/skills/webapp-testing/SYNC.md +5 -0
  377. package/skills/webapp-testing/examples/console_logging.py +35 -0
  378. package/skills/webapp-testing/examples/element_discovery.py +40 -0
  379. package/skills/webapp-testing/examples/static_html_automation.py +33 -0
  380. package/skills/webapp-testing/scripts/with_server.py +106 -0
  381. package/skills/xlsx/LICENSE.txt +30 -0
  382. package/skills/xlsx/SKILL.md +292 -0
  383. package/skills/xlsx/SYNC.md +5 -0
  384. package/skills/xlsx/scripts/office/helpers/__init__.py +0 -0
  385. package/skills/xlsx/scripts/office/helpers/merge_runs.py +199 -0
  386. package/skills/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
  387. package/skills/xlsx/scripts/office/pack.py +159 -0
  388. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  389. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  390. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  391. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  392. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  393. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  394. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  395. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  396. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  397. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  398. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  399. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  400. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  401. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  402. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  403. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  404. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  405. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  406. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  407. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  408. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  409. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  410. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  411. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  412. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  413. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  414. package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  415. package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  416. package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  417. package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  418. package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  419. package/skills/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
  420. package/skills/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  421. package/skills/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  422. package/skills/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  423. package/skills/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  424. package/skills/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  425. package/skills/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  426. package/skills/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  427. package/skills/xlsx/scripts/office/soffice.py +183 -0
  428. package/skills/xlsx/scripts/office/unpack.py +132 -0
  429. package/skills/xlsx/scripts/office/validate.py +111 -0
  430. package/skills/xlsx/scripts/office/validators/__init__.py +15 -0
  431. package/skills/xlsx/scripts/office/validators/base.py +847 -0
  432. package/skills/xlsx/scripts/office/validators/docx.py +446 -0
  433. package/skills/xlsx/scripts/office/validators/pptx.py +275 -0
  434. package/skills/xlsx/scripts/office/validators/redlining.py +247 -0
  435. package/skills/xlsx/scripts/recalc.py +184 -0
@@ -0,0 +1,289 @@
1
+ """Create thumbnail grids from PowerPoint presentation slides.
2
+
3
+ Creates a grid layout of slide thumbnails for quick visual analysis.
4
+ Labels each thumbnail with its XML filename (e.g., slide1.xml).
5
+ Hidden slides are shown with a placeholder pattern.
6
+
7
+ Usage:
8
+ python thumbnail.py input.pptx [output_prefix] [--cols N]
9
+
10
+ Examples:
11
+ python thumbnail.py presentation.pptx
12
+ # Creates: thumbnails.jpg
13
+
14
+ python thumbnail.py template.pptx grid --cols 4
15
+ # Creates: grid.jpg (or grid-1.jpg, grid-2.jpg for large decks)
16
+ """
17
+
18
+ import argparse
19
+ import subprocess
20
+ import sys
21
+ import tempfile
22
+ import zipfile
23
+ from pathlib import Path
24
+
25
+ import defusedxml.minidom
26
+ from office.soffice import get_soffice_env
27
+ from PIL import Image, ImageDraw, ImageFont
28
+
29
+ THUMBNAIL_WIDTH = 300
30
+ CONVERSION_DPI = 100
31
+ MAX_COLS = 6
32
+ DEFAULT_COLS = 3
33
+ JPEG_QUALITY = 95
34
+ GRID_PADDING = 20
35
+ BORDER_WIDTH = 2
36
+ FONT_SIZE_RATIO = 0.10
37
+ LABEL_PADDING_RATIO = 0.4
38
+
39
+
40
+ def main():
41
+ parser = argparse.ArgumentParser(
42
+ description="Create thumbnail grids from PowerPoint slides."
43
+ )
44
+ parser.add_argument("input", help="Input PowerPoint file (.pptx)")
45
+ parser.add_argument(
46
+ "output_prefix",
47
+ nargs="?",
48
+ default="thumbnails",
49
+ help="Output prefix for image files (default: thumbnails)",
50
+ )
51
+ parser.add_argument(
52
+ "--cols",
53
+ type=int,
54
+ default=DEFAULT_COLS,
55
+ help=f"Number of columns (default: {DEFAULT_COLS}, max: {MAX_COLS})",
56
+ )
57
+
58
+ args = parser.parse_args()
59
+
60
+ cols = min(args.cols, MAX_COLS)
61
+ if args.cols > MAX_COLS:
62
+ print(f"Warning: Columns limited to {MAX_COLS}")
63
+
64
+ input_path = Path(args.input)
65
+ if not input_path.exists() or input_path.suffix.lower() != ".pptx":
66
+ print(f"Error: Invalid PowerPoint file: {args.input}", file=sys.stderr)
67
+ sys.exit(1)
68
+
69
+ output_path = Path(f"{args.output_prefix}.jpg")
70
+
71
+ try:
72
+ slide_info = get_slide_info(input_path)
73
+
74
+ with tempfile.TemporaryDirectory() as temp_dir:
75
+ temp_path = Path(temp_dir)
76
+ visible_images = convert_to_images(input_path, temp_path)
77
+
78
+ if not visible_images and not any(s["hidden"] for s in slide_info):
79
+ print("Error: No slides found", file=sys.stderr)
80
+ sys.exit(1)
81
+
82
+ slides = build_slide_list(slide_info, visible_images, temp_path)
83
+
84
+ grid_files = create_grids(slides, cols, THUMBNAIL_WIDTH, output_path)
85
+
86
+ print(f"Created {len(grid_files)} grid(s):")
87
+ for grid_file in grid_files:
88
+ print(f" {grid_file}")
89
+
90
+ except Exception as e:
91
+ print(f"Error: {e}", file=sys.stderr)
92
+ sys.exit(1)
93
+
94
+
95
+ def get_slide_info(pptx_path: Path) -> list[dict]:
96
+ with zipfile.ZipFile(pptx_path, "r") as zf:
97
+ rels_content = zf.read("ppt/_rels/presentation.xml.rels").decode("utf-8")
98
+ rels_dom = defusedxml.minidom.parseString(rels_content)
99
+
100
+ rid_to_slide = {}
101
+ for rel in rels_dom.getElementsByTagName("Relationship"):
102
+ rid = rel.getAttribute("Id")
103
+ target = rel.getAttribute("Target")
104
+ rel_type = rel.getAttribute("Type")
105
+ if "slide" in rel_type and target.startswith("slides/"):
106
+ rid_to_slide[rid] = target.replace("slides/", "")
107
+
108
+ pres_content = zf.read("ppt/presentation.xml").decode("utf-8")
109
+ pres_dom = defusedxml.minidom.parseString(pres_content)
110
+
111
+ slides = []
112
+ for sld_id in pres_dom.getElementsByTagName("p:sldId"):
113
+ rid = sld_id.getAttribute("r:id")
114
+ if rid in rid_to_slide:
115
+ hidden = sld_id.getAttribute("show") == "0"
116
+ slides.append({"name": rid_to_slide[rid], "hidden": hidden})
117
+
118
+ return slides
119
+
120
+
121
+ def build_slide_list(
122
+ slide_info: list[dict],
123
+ visible_images: list[Path],
124
+ temp_dir: Path,
125
+ ) -> list[tuple[Path, str]]:
126
+ if visible_images:
127
+ with Image.open(visible_images[0]) as img:
128
+ placeholder_size = img.size
129
+ else:
130
+ placeholder_size = (1920, 1080)
131
+
132
+ slides = []
133
+ visible_idx = 0
134
+
135
+ for info in slide_info:
136
+ if info["hidden"]:
137
+ placeholder_path = temp_dir / f"hidden-{info['name']}.jpg"
138
+ placeholder_img = create_hidden_placeholder(placeholder_size)
139
+ placeholder_img.save(placeholder_path, "JPEG")
140
+ slides.append((placeholder_path, f"{info['name']} (hidden)"))
141
+ else:
142
+ if visible_idx < len(visible_images):
143
+ slides.append((visible_images[visible_idx], info["name"]))
144
+ visible_idx += 1
145
+
146
+ return slides
147
+
148
+
149
+ def create_hidden_placeholder(size: tuple[int, int]) -> Image.Image:
150
+ img = Image.new("RGB", size, color="#F0F0F0")
151
+ draw = ImageDraw.Draw(img)
152
+ line_width = max(5, min(size) // 100)
153
+ draw.line([(0, 0), size], fill="#CCCCCC", width=line_width)
154
+ draw.line([(size[0], 0), (0, size[1])], fill="#CCCCCC", width=line_width)
155
+ return img
156
+
157
+
158
+ def convert_to_images(pptx_path: Path, temp_dir: Path) -> list[Path]:
159
+ pdf_path = temp_dir / f"{pptx_path.stem}.pdf"
160
+
161
+ result = subprocess.run(
162
+ [
163
+ "soffice",
164
+ "--headless",
165
+ "--convert-to",
166
+ "pdf",
167
+ "--outdir",
168
+ str(temp_dir),
169
+ str(pptx_path),
170
+ ],
171
+ capture_output=True,
172
+ text=True,
173
+ env=get_soffice_env(),
174
+ )
175
+ if result.returncode != 0 or not pdf_path.exists():
176
+ raise RuntimeError("PDF conversion failed")
177
+
178
+ result = subprocess.run(
179
+ [
180
+ "pdftoppm",
181
+ "-jpeg",
182
+ "-r",
183
+ str(CONVERSION_DPI),
184
+ str(pdf_path),
185
+ str(temp_dir / "slide"),
186
+ ],
187
+ capture_output=True,
188
+ text=True,
189
+ )
190
+ if result.returncode != 0:
191
+ raise RuntimeError("Image conversion failed")
192
+
193
+ return sorted(temp_dir.glob("slide-*.jpg"))
194
+
195
+
196
+ def create_grids(
197
+ slides: list[tuple[Path, str]],
198
+ cols: int,
199
+ width: int,
200
+ output_path: Path,
201
+ ) -> list[str]:
202
+ max_per_grid = cols * (cols + 1)
203
+ grid_files = []
204
+
205
+ for chunk_idx, start_idx in enumerate(range(0, len(slides), max_per_grid)):
206
+ end_idx = min(start_idx + max_per_grid, len(slides))
207
+ chunk_slides = slides[start_idx:end_idx]
208
+
209
+ grid = create_grid(chunk_slides, cols, width)
210
+
211
+ if len(slides) <= max_per_grid:
212
+ grid_filename = output_path
213
+ else:
214
+ stem = output_path.stem
215
+ suffix = output_path.suffix
216
+ grid_filename = output_path.parent / f"{stem}-{chunk_idx + 1}{suffix}"
217
+
218
+ grid_filename.parent.mkdir(parents=True, exist_ok=True)
219
+ grid.save(str(grid_filename), quality=JPEG_QUALITY)
220
+ grid_files.append(str(grid_filename))
221
+
222
+ return grid_files
223
+
224
+
225
+ def create_grid(
226
+ slides: list[tuple[Path, str]],
227
+ cols: int,
228
+ width: int,
229
+ ) -> Image.Image:
230
+ font_size = int(width * FONT_SIZE_RATIO)
231
+ label_padding = int(font_size * LABEL_PADDING_RATIO)
232
+
233
+ with Image.open(slides[0][0]) as img:
234
+ aspect = img.height / img.width
235
+ height = int(width * aspect)
236
+
237
+ rows = (len(slides) + cols - 1) // cols
238
+ grid_w = cols * width + (cols + 1) * GRID_PADDING
239
+ grid_h = rows * (height + font_size + label_padding * 2) + (rows + 1) * GRID_PADDING
240
+
241
+ grid = Image.new("RGB", (grid_w, grid_h), "white")
242
+ draw = ImageDraw.Draw(grid)
243
+
244
+ try:
245
+ font = ImageFont.load_default(size=font_size)
246
+ except Exception:
247
+ font = ImageFont.load_default()
248
+
249
+ for i, (img_path, slide_name) in enumerate(slides):
250
+ row, col = i // cols, i % cols
251
+ x = col * width + (col + 1) * GRID_PADDING
252
+ y_base = (
253
+ row * (height + font_size + label_padding * 2) + (row + 1) * GRID_PADDING
254
+ )
255
+
256
+ label = slide_name
257
+ bbox = draw.textbbox((0, 0), label, font=font)
258
+ text_w = bbox[2] - bbox[0]
259
+ draw.text(
260
+ (x + (width - text_w) // 2, y_base + label_padding),
261
+ label,
262
+ fill="black",
263
+ font=font,
264
+ )
265
+
266
+ y_thumbnail = y_base + label_padding + font_size + label_padding
267
+
268
+ with Image.open(img_path) as img:
269
+ img.thumbnail((width, height), Image.Resampling.LANCZOS)
270
+ w, h = img.size
271
+ tx = x + (width - w) // 2
272
+ ty = y_thumbnail + (height - h) // 2
273
+ grid.paste(img, (tx, ty))
274
+
275
+ if BORDER_WIDTH > 0:
276
+ draw.rectangle(
277
+ [
278
+ (tx - BORDER_WIDTH, ty - BORDER_WIDTH),
279
+ (tx + w + BORDER_WIDTH - 1, ty + h + BORDER_WIDTH - 1),
280
+ ],
281
+ outline="gray",
282
+ width=BORDER_WIDTH,
283
+ )
284
+
285
+ return grid
286
+
287
+
288
+ if __name__ == "__main__":
289
+ main()
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 shadcn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,242 @@
1
+ ---
2
+ name: shadcn
3
+ description: Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".
4
+ user-invocable: false
5
+ allowed-tools: Bash(npx shadcn@latest *), Bash(pnpm dlx shadcn@latest *), Bash(bunx --bun shadcn@latest *)
6
+ ---
7
+
8
+ # shadcn/ui
9
+
10
+ A framework for building ui, components and design systems. Components are added as source code to the user's project via the CLI.
11
+
12
+ > **IMPORTANT:** Run all CLI commands using the project's package runner: `npx shadcn@latest`, `pnpm dlx shadcn@latest`, or `bunx --bun shadcn@latest` — based on the project's `packageManager`. Examples below use `npx shadcn@latest` but substitute the correct runner for the project.
13
+
14
+ ## Current Project Context
15
+
16
+ ```json
17
+ !`npx shadcn@latest info --json`
18
+ ```
19
+
20
+ The JSON above contains the project config and installed components. Use `npx shadcn@latest docs <component>` to get documentation and example URLs for any component.
21
+
22
+ ## Principles
23
+
24
+ 1. **Use existing components first.** Use `npx shadcn@latest search` to check registries before writing custom UI. Check community registries too.
25
+ 2. **Compose, don't reinvent.** Settings page = Tabs + Card + form controls. Dashboard = Sidebar + Card + Chart + Table.
26
+ 3. **Use built-in variants before custom styles.** `variant="outline"`, `size="sm"`, etc.
27
+ 4. **Use semantic colors.** `bg-primary`, `text-muted-foreground` — never raw values like `bg-blue-500`.
28
+
29
+ ## Critical Rules
30
+
31
+ These rules are **always enforced**. Each links to a file with Incorrect/Correct code pairs.
32
+
33
+ ### Styling & Tailwind → [styling.md](./rules/styling.md)
34
+
35
+ - **`className` for layout, not styling.** Never override component colors or typography.
36
+ - **No `space-x-*` or `space-y-*`.** Use `flex` with `gap-*`. For vertical stacks, `flex flex-col gap-*`.
37
+ - **Use `size-*` when width and height are equal.** `size-10` not `w-10 h-10`.
38
+ - **Use `truncate` shorthand.** Not `overflow-hidden text-ellipsis whitespace-nowrap`.
39
+ - **No manual `dark:` color overrides.** Use semantic tokens (`bg-background`, `text-muted-foreground`).
40
+ - **Use `cn()` for conditional classes.** Don't write manual template literal ternaries.
41
+ - **No manual `z-index` on overlay components.** Dialog, Sheet, Popover, etc. handle their own stacking.
42
+
43
+ ### Forms & Inputs → [forms.md](./rules/forms.md)
44
+
45
+ - **Forms use `FieldGroup` + `Field`.** Never use raw `div` with `space-y-*` or `grid gap-*` for form layout.
46
+ - **`InputGroup` uses `InputGroupInput`/`InputGroupTextarea`.** Never raw `Input`/`Textarea` inside `InputGroup`.
47
+ - **Buttons inside inputs use `InputGroup` + `InputGroupAddon`.**
48
+ - **Option sets (2–7 choices) use `ToggleGroup`.** Don't loop `Button` with manual active state.
49
+ - **`FieldSet` + `FieldLegend` for grouping related checkboxes/radios.** Don't use a `div` with a heading.
50
+ - **Field validation uses `data-invalid` + `aria-invalid`.** `data-invalid` on `Field`, `aria-invalid` on the control. For disabled: `data-disabled` on `Field`, `disabled` on the control.
51
+
52
+ ### Component Structure → [composition.md](./rules/composition.md)
53
+
54
+ - **Items always inside their Group.** `SelectItem` → `SelectGroup`. `DropdownMenuItem` → `DropdownMenuGroup`. `CommandItem` → `CommandGroup`.
55
+ - **Use `asChild` (radix) or `render` (base) for custom triggers.** Check `base` field from `npx shadcn@latest info`. → [base-vs-radix.md](./rules/base-vs-radix.md)
56
+ - **Dialog, Sheet, and Drawer always need a Title.** `DialogTitle`, `SheetTitle`, `DrawerTitle` required for accessibility. Use `className="sr-only"` if visually hidden.
57
+ - **Use full Card composition.** `CardHeader`/`CardTitle`/`CardDescription`/`CardContent`/`CardFooter`. Don't dump everything in `CardContent`.
58
+ - **Button has no `isPending`/`isLoading`.** Compose with `Spinner` + `data-icon` + `disabled`.
59
+ - **`TabsTrigger` must be inside `TabsList`.** Never render triggers directly in `Tabs`.
60
+ - **`Avatar` always needs `AvatarFallback`.** For when the image fails to load.
61
+
62
+ ### Use Components, Not Custom Markup → [composition.md](./rules/composition.md)
63
+
64
+ - **Use existing components before custom markup.** Check if a component exists before writing a styled `div`.
65
+ - **Callouts use `Alert`.** Don't build custom styled divs.
66
+ - **Empty states use `Empty`.** Don't build custom empty state markup.
67
+ - **Toast via `sonner`.** Use `toast()` from `sonner`.
68
+ - **Use `Separator`** instead of `<hr>` or `<div className="border-t">`.
69
+ - **Use `Skeleton`** for loading placeholders. No custom `animate-pulse` divs.
70
+ - **Use `Badge`** instead of custom styled spans.
71
+
72
+ ### Icons → [icons.md](./rules/icons.md)
73
+
74
+ - **Icons in `Button` use `data-icon`.** `data-icon="inline-start"` or `data-icon="inline-end"` on the icon.
75
+ - **No sizing classes on icons inside components.** Components handle icon sizing via CSS. No `size-4` or `w-4 h-4`.
76
+ - **Pass icons as objects, not string keys.** `icon={CheckIcon}`, not a string lookup.
77
+
78
+ ### CLI
79
+
80
+ - **Never decode or fetch preset codes manually.** Pass them directly to `npx shadcn@latest init --preset <code>`.
81
+
82
+ ## Key Patterns
83
+
84
+ These are the most common patterns that differentiate correct shadcn/ui code. For edge cases, see the linked rule files above.
85
+
86
+ ```tsx
87
+ // Form layout: FieldGroup + Field, not div + Label.
88
+ <FieldGroup>
89
+ <Field>
90
+ <FieldLabel htmlFor="email">Email</FieldLabel>
91
+ <Input id="email" />
92
+ </Field>
93
+ </FieldGroup>
94
+
95
+ // Validation: data-invalid on Field, aria-invalid on the control.
96
+ <Field data-invalid>
97
+ <FieldLabel>Email</FieldLabel>
98
+ <Input aria-invalid />
99
+ <FieldDescription>Invalid email.</FieldDescription>
100
+ </Field>
101
+
102
+ // Icons in buttons: data-icon, no sizing classes.
103
+ <Button>
104
+ <SearchIcon data-icon="inline-start" />
105
+ Search
106
+ </Button>
107
+
108
+ // Spacing: gap-*, not space-y-*.
109
+ <div className="flex flex-col gap-4"> // correct
110
+ <div className="space-y-4"> // wrong
111
+
112
+ // Equal dimensions: size-*, not w-* h-*.
113
+ <Avatar className="size-10"> // correct
114
+ <Avatar className="w-10 h-10"> // wrong
115
+
116
+ // Status colors: Badge variants or semantic tokens, not raw colors.
117
+ <Badge variant="secondary">+20.1%</Badge> // correct
118
+ <span className="text-emerald-600">+20.1%</span> // wrong
119
+ ```
120
+
121
+ ## Component Selection
122
+
123
+ | Need | Use |
124
+ | -------------------------- | --------------------------------------------------------------------------------------------------- |
125
+ | Button/action | `Button` with appropriate variant |
126
+ | Form inputs | `Input`, `Select`, `Combobox`, `Switch`, `Checkbox`, `RadioGroup`, `Textarea`, `InputOTP`, `Slider` |
127
+ | Toggle between 2–5 options | `ToggleGroup` + `ToggleGroupItem` |
128
+ | Data display | `Table`, `Card`, `Badge`, `Avatar` |
129
+ | Navigation | `Sidebar`, `NavigationMenu`, `Breadcrumb`, `Tabs`, `Pagination` |
130
+ | Overlays | `Dialog` (modal), `Sheet` (side panel), `Drawer` (bottom sheet), `AlertDialog` (confirmation) |
131
+ | Feedback | `sonner` (toast), `Alert`, `Progress`, `Skeleton`, `Spinner` |
132
+ | Command palette | `Command` inside `Dialog` |
133
+ | Charts | `Chart` (wraps Recharts) |
134
+ | Layout | `Card`, `Separator`, `Resizable`, `ScrollArea`, `Accordion`, `Collapsible` |
135
+ | Empty states | `Empty` |
136
+ | Menus | `DropdownMenu`, `ContextMenu`, `Menubar` |
137
+ | Tooltips/info | `Tooltip`, `HoverCard`, `Popover` |
138
+
139
+ ## Key Fields
140
+
141
+ The injected project context contains these key fields:
142
+
143
+ - **`aliases`** → use the actual alias prefix for imports (e.g. `@/`, `~/`), never hardcode.
144
+ - **`isRSC`** → when `true`, components using `useState`, `useEffect`, event handlers, or browser APIs need `"use client"` at the top of the file. Always reference this field when advising on the directive.
145
+ - **`tailwindVersion`** → `"v4"` uses `@theme inline` blocks; `"v3"` uses `tailwind.config.js`.
146
+ - **`tailwindCssFile`** → the global CSS file where custom CSS variables are defined. Always edit this file, never create a new one.
147
+ - **`style`** → component visual treatment (e.g. `nova`, `vega`).
148
+ - **`base`** → primitive library (`radix` or `base`). Affects component APIs and available props.
149
+ - **`iconLibrary`** → determines icon imports. Use `lucide-react` for `lucide`, `@tabler/icons-react` for `tabler`, etc. Never assume `lucide-react`.
150
+ - **`resolvedPaths`** → exact file-system destinations for components, utils, hooks, etc.
151
+ - **`framework`** → routing and file conventions (e.g. Next.js App Router vs Vite SPA).
152
+ - **`packageManager`** → use this for any non-shadcn dependency installs (e.g. `pnpm add date-fns` vs `npm install date-fns`).
153
+
154
+ See [cli.md — `info` command](./cli.md) for the full field reference.
155
+
156
+ ## Component Docs, Examples, and Usage
157
+
158
+ Run `npx shadcn@latest docs <component>` to get the URLs for a component's documentation, examples, and API reference. Fetch these URLs to get the actual content.
159
+
160
+ ```bash
161
+ npx shadcn@latest docs button dialog select
162
+ ```
163
+
164
+ **When creating, fixing, debugging, or using a component, always run `npx shadcn@latest docs` and fetch the URLs first.** This ensures you're working with the correct API and usage patterns rather than guessing.
165
+
166
+ ## Workflow
167
+
168
+ 1. **Get project context** — already injected above. Run `npx shadcn@latest info` again if you need to refresh.
169
+ 2. **Check installed components first** — before running `add`, always check the `components` list from project context or list the `resolvedPaths.ui` directory. Don't import components that haven't been added, and don't re-add ones already installed.
170
+ 3. **Find components** — `npx shadcn@latest search`.
171
+ 4. **Get docs and examples** — run `npx shadcn@latest docs <component>` to get URLs, then fetch them. Use `npx shadcn@latest view` to browse registry items you haven't installed. To preview changes to installed components, use `npx shadcn@latest add --diff`.
172
+ 5. **Install or update** — `npx shadcn@latest add`. When updating existing components, use `--dry-run` and `--diff` to preview changes first (see [Updating Components](#updating-components) below).
173
+ 6. **Fix imports in third-party components** — After adding components from community registries (e.g. `@bundui`, `@magicui`), check the added non-UI files for hardcoded import paths like `@/components/ui/...`. These won't match the project's actual aliases. Use `npx shadcn@latest info` to get the correct `ui` alias (e.g. `@workspace/ui/components`) and rewrite the imports accordingly. The CLI rewrites imports for its own UI files, but third-party registry components may use default paths that don't match the project.
174
+ 7. **Review added components** — After adding a component or block from any registry, **always read the added files and verify they are correct**. Check for missing sub-components (e.g. `SelectItem` without `SelectGroup`), missing imports, incorrect composition, or violations of the [Critical Rules](#critical-rules). Also replace any icon imports with the project's `iconLibrary` from the project context (e.g. if the registry item uses `lucide-react` but the project uses `hugeicons`, swap the imports and icon names accordingly). Fix all issues before moving on.
175
+ 8. **Registry must be explicit** — When the user asks to add a block or component, **do not guess the registry**. If no registry is specified (e.g. user says "add a login block" without specifying `@shadcn`, `@tailark`, etc.), ask which registry to use. Never default to a registry on behalf of the user.
176
+ 9. **Switching presets** — Ask the user first: **reinstall**, **merge**, or **skip**?
177
+ - **Reinstall**: `npx shadcn@latest init --preset <code> --force --reinstall`. Overwrites all components.
178
+ - **Merge**: `npx shadcn@latest init --preset <code> --force --no-reinstall`, then run `npx shadcn@latest info` to list installed components, then for each installed component use `--dry-run` and `--diff` to [smart merge](#updating-components) it individually.
179
+ - **Skip**: `npx shadcn@latest init --preset <code> --force --no-reinstall`. Only updates config and CSS, leaves components as-is.
180
+ - **Important**: Always run preset commands inside the user's project directory. The CLI automatically preserves the current base (`base` vs `radix`) from `components.json`. If you must use a scratch/temp directory (e.g. for `--dry-run` comparisons), pass `--base <current-base>` explicitly — preset codes do not encode the base.
181
+
182
+ ## Updating Components
183
+
184
+ When the user asks to update a component from upstream while keeping their local changes, use `--dry-run` and `--diff` to intelligently merge. **NEVER fetch raw files from GitHub manually — always use the CLI.**
185
+
186
+ 1. Run `npx shadcn@latest add <component> --dry-run` to see all files that would be affected.
187
+ 2. For each file, run `npx shadcn@latest add <component> --diff <file>` to see what changed upstream vs local.
188
+ 3. Decide per file based on the diff:
189
+ - No local changes → safe to overwrite.
190
+ - Has local changes → read the local file, analyze the diff, and apply upstream updates while preserving local modifications.
191
+ - User says "just update everything" → use `--overwrite`, but confirm first.
192
+ 4. **Never use `--overwrite` without the user's explicit approval.**
193
+
194
+ ## Quick Reference
195
+
196
+ ```bash
197
+ # Create a new project.
198
+ npx shadcn@latest init --name my-app --preset base-nova
199
+ npx shadcn@latest init --name my-app --preset a2r6bw --template vite
200
+
201
+ # Create a monorepo project.
202
+ npx shadcn@latest init --name my-app --preset base-nova --monorepo
203
+ npx shadcn@latest init --name my-app --preset base-nova --template next --monorepo
204
+
205
+ # Initialize existing project.
206
+ npx shadcn@latest init --preset base-nova
207
+ npx shadcn@latest init --defaults # shortcut: --template=next --preset=base-nova
208
+
209
+ # Add components.
210
+ npx shadcn@latest add button card dialog
211
+ npx shadcn@latest add @magicui/shimmer-button
212
+ npx shadcn@latest add --all
213
+
214
+ # Preview changes before adding/updating.
215
+ npx shadcn@latest add button --dry-run
216
+ npx shadcn@latest add button --diff button.tsx
217
+ npx shadcn@latest add @acme/form --view button.tsx
218
+
219
+ # Search registries.
220
+ npx shadcn@latest search @shadcn -q "sidebar"
221
+ npx shadcn@latest search @tailark -q "stats"
222
+
223
+ # Get component docs and example URLs.
224
+ npx shadcn@latest docs button dialog select
225
+
226
+ # View registry item details (for items not yet installed).
227
+ npx shadcn@latest view @shadcn/button
228
+ ```
229
+
230
+ **Named presets:** `base-nova`, `radix-nova`
231
+ **Templates:** `next`, `vite`, `start`, `react-router`, `astro` (all support `--monorepo`) and `laravel` (not supported for monorepo)
232
+ **Preset codes:** Base62 strings starting with `a` (e.g. `a2r6bw`), from [ui.shadcn.com](https://ui.shadcn.com).
233
+
234
+ ## Detailed References
235
+
236
+ - [rules/forms.md](./rules/forms.md) — FieldGroup, Field, InputGroup, ToggleGroup, FieldSet, validation states
237
+ - [rules/composition.md](./rules/composition.md) — Groups, overlays, Card, Tabs, Avatar, Alert, Empty, Toast, Separator, Skeleton, Badge, Button loading
238
+ - [rules/icons.md](./rules/icons.md) — data-icon, icon sizing, passing icons as objects
239
+ - [rules/styling.md](./rules/styling.md) — Semantic colors, variants, className, spacing, size, truncate, dark mode, cn(), z-index
240
+ - [rules/base-vs-radix.md](./rules/base-vs-radix.md) — asChild vs render, Select, ToggleGroup, Slider, Accordion
241
+ - [cli.md](./cli.md) — Commands, flags, presets, templates
242
+ - [customization.md](./customization.md) — Theming, CSS variables, extending components
@@ -0,0 +1,5 @@
1
+ # Sync Info
2
+
3
+ - **Source:** `vendor/shacdn-ui/skills/shadcn`
4
+ - **Git SHA:** `ef78384bfdb410c52b767f701471d25cbabbf2e9`
5
+ - **Synced:** 2026-03-24
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "shadcn/ui"
3
+ short_description: "Manages shadcn/ui components — adding, searching, fixing, debugging, styling, and composing UI."
4
+ icon_small: "./assets/shadcn-small.png"
5
+ icon_large: "./assets/shadcn.png"
Binary file