takomi 2.0.4

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 (544) hide show
  1. package/README.md +422 -0
  2. package/assets/.agent/skills/agent-recovery/SKILL.md +147 -0
  3. package/assets/.agent/skills/ai-avatar-video/SKILL.md +153 -0
  4. package/assets/.agent/skills/ai-marketing-videos/SKILL.md +295 -0
  5. package/assets/.agent/skills/ai-podcast-creation/SKILL.md +292 -0
  6. package/assets/.agent/skills/ai-product-photography/SKILL.md +269 -0
  7. package/assets/.agent/skills/ai-sdk/SKILL.md +77 -0
  8. package/assets/.agent/skills/ai-sdk/references/ai-gateway.md +66 -0
  9. package/assets/.agent/skills/ai-sdk/references/common-errors.md +443 -0
  10. package/assets/.agent/skills/ai-sdk/references/type-safe-agents.md +204 -0
  11. package/assets/.agent/skills/ai-social-media-content/SKILL.md +253 -0
  12. package/assets/.agent/skills/ai-voice-cloning/SKILL.md +276 -0
  13. package/assets/.agent/skills/algorithmic-art/LICENSE.txt +202 -0
  14. package/assets/.agent/skills/algorithmic-art/SKILL.md +405 -0
  15. package/assets/.agent/skills/algorithmic-art/templates/generator_template.js +223 -0
  16. package/assets/.agent/skills/algorithmic-art/templates/viewer.html +599 -0
  17. package/assets/.agent/skills/audit-website/SKILL.md +631 -0
  18. package/assets/.agent/skills/audit-website/agents/openai.yaml +6 -0
  19. package/assets/.agent/skills/audit-website/assets/icon-large.png +0 -0
  20. package/assets/.agent/skills/audit-website/assets/icon-small.svg +41 -0
  21. package/assets/.agent/skills/audit-website/references/OUTPUT-FORMAT.md +250 -0
  22. package/assets/.agent/skills/avoid-feature-creep/SKILL.md +307 -0
  23. package/assets/.agent/skills/avoid-feature-creep/agents/openai.yaml +3 -0
  24. package/assets/.agent/skills/avoid-feature-creep/assets/large-logo.png +0 -0
  25. package/assets/.agent/skills/avoid-feature-creep/assets/small-logo.svg +17 -0
  26. package/assets/.agent/skills/building-native-ui/SKILL.md +320 -0
  27. package/assets/.agent/skills/building-native-ui/references/animations.md +220 -0
  28. package/assets/.agent/skills/building-native-ui/references/controls.md +270 -0
  29. package/assets/.agent/skills/building-native-ui/references/form-sheet.md +227 -0
  30. package/assets/.agent/skills/building-native-ui/references/gradients.md +106 -0
  31. package/assets/.agent/skills/building-native-ui/references/icons.md +213 -0
  32. package/assets/.agent/skills/building-native-ui/references/media.md +198 -0
  33. package/assets/.agent/skills/building-native-ui/references/route-structure.md +229 -0
  34. package/assets/.agent/skills/building-native-ui/references/search.md +248 -0
  35. package/assets/.agent/skills/building-native-ui/references/storage.md +121 -0
  36. package/assets/.agent/skills/building-native-ui/references/tabs.md +368 -0
  37. package/assets/.agent/skills/building-native-ui/references/toolbar-and-headers.md +284 -0
  38. package/assets/.agent/skills/building-native-ui/references/visual-effects.md +197 -0
  39. package/assets/.agent/skills/building-native-ui/references/webgpu-three.md +605 -0
  40. package/assets/.agent/skills/building-native-ui/references/zoom-transitions.md +158 -0
  41. package/assets/.agent/skills/code-review/SKILL.md +81 -0
  42. package/assets/.agent/skills/component-analysis/SKILL.md +103 -0
  43. package/assets/.agent/skills/context7/SKILL.md +85 -0
  44. package/assets/.agent/skills/convex/SKILL.md +62 -0
  45. package/assets/.agent/skills/convex/agents/openai.yaml +3 -0
  46. package/assets/.agent/skills/convex/assets/large-logo.png +0 -0
  47. package/assets/.agent/skills/convex/assets/small-logo.svg +17 -0
  48. package/assets/.agent/skills/convex-agents/SKILL.md +516 -0
  49. package/assets/.agent/skills/convex-agents/agents/openai.yaml +3 -0
  50. package/assets/.agent/skills/convex-agents/assets/large-logo.png +0 -0
  51. package/assets/.agent/skills/convex-agents/assets/small-logo.svg +17 -0
  52. package/assets/.agent/skills/convex-best-practices/SKILL.md +369 -0
  53. package/assets/.agent/skills/convex-best-practices/agents/openai.yaml +3 -0
  54. package/assets/.agent/skills/convex-best-practices/assets/large-logo.png +0 -0
  55. package/assets/.agent/skills/convex-best-practices/assets/small-logo.svg +17 -0
  56. package/assets/.agent/skills/convex-component-authoring/SKILL.md +457 -0
  57. package/assets/.agent/skills/convex-component-authoring/agents/openai.yaml +3 -0
  58. package/assets/.agent/skills/convex-component-authoring/assets/large-logo.png +0 -0
  59. package/assets/.agent/skills/convex-component-authoring/assets/small-logo.svg +17 -0
  60. package/assets/.agent/skills/convex-cron-jobs/SKILL.md +604 -0
  61. package/assets/.agent/skills/convex-cron-jobs/agents/openai.yaml +3 -0
  62. package/assets/.agent/skills/convex-cron-jobs/assets/large-logo.png +0 -0
  63. package/assets/.agent/skills/convex-cron-jobs/assets/small-logo.svg +17 -0
  64. package/assets/.agent/skills/convex-file-storage/SKILL.md +467 -0
  65. package/assets/.agent/skills/convex-file-storage/agents/openai.yaml +3 -0
  66. package/assets/.agent/skills/convex-file-storage/assets/large-logo.png +0 -0
  67. package/assets/.agent/skills/convex-file-storage/assets/small-logo.svg +17 -0
  68. package/assets/.agent/skills/convex-functions/SKILL.md +458 -0
  69. package/assets/.agent/skills/convex-functions/agents/openai.yaml +3 -0
  70. package/assets/.agent/skills/convex-functions/assets/large-logo.png +0 -0
  71. package/assets/.agent/skills/convex-functions/assets/small-logo.svg +17 -0
  72. package/assets/.agent/skills/convex-http-actions/SKILL.md +733 -0
  73. package/assets/.agent/skills/convex-http-actions/agents/openai.yaml +3 -0
  74. package/assets/.agent/skills/convex-http-actions/assets/large-logo.png +0 -0
  75. package/assets/.agent/skills/convex-http-actions/assets/small-logo.svg +17 -0
  76. package/assets/.agent/skills/convex-migrations/SKILL.md +712 -0
  77. package/assets/.agent/skills/convex-migrations/agents/openai.yaml +3 -0
  78. package/assets/.agent/skills/convex-migrations/assets/large-logo.png +0 -0
  79. package/assets/.agent/skills/convex-migrations/assets/small-logo.svg +17 -0
  80. package/assets/.agent/skills/convex-realtime/SKILL.md +443 -0
  81. package/assets/.agent/skills/convex-realtime/agents/openai.yaml +3 -0
  82. package/assets/.agent/skills/convex-realtime/assets/large-logo.png +0 -0
  83. package/assets/.agent/skills/convex-realtime/assets/small-logo.svg +17 -0
  84. package/assets/.agent/skills/convex-schema-validator/SKILL.md +400 -0
  85. package/assets/.agent/skills/convex-schema-validator/agents/openai.yaml +3 -0
  86. package/assets/.agent/skills/convex-schema-validator/assets/large-logo.png +0 -0
  87. package/assets/.agent/skills/convex-schema-validator/assets/small-logo.svg +17 -0
  88. package/assets/.agent/skills/convex-security-audit/SKILL.md +539 -0
  89. package/assets/.agent/skills/convex-security-audit/agents/openai.yaml +3 -0
  90. package/assets/.agent/skills/convex-security-audit/assets/large-logo.png +0 -0
  91. package/assets/.agent/skills/convex-security-audit/assets/small-logo.svg +17 -0
  92. package/assets/.agent/skills/convex-security-check/SKILL.md +378 -0
  93. package/assets/.agent/skills/convex-security-check/agents/openai.yaml +3 -0
  94. package/assets/.agent/skills/convex-security-check/assets/large-logo.png +0 -0
  95. package/assets/.agent/skills/convex-security-check/assets/small-logo.svg +17 -0
  96. package/assets/.agent/skills/copywriting/SKILL.md +251 -0
  97. package/assets/.agent/skills/copywriting/references/copy-frameworks.md +338 -0
  98. package/assets/.agent/skills/copywriting/references/natural-transitions.md +252 -0
  99. package/assets/.agent/skills/crafting-effective-readmes/SKILL.md +78 -0
  100. package/assets/.agent/skills/crafting-effective-readmes/references/art-of-readme.md +536 -0
  101. package/assets/.agent/skills/crafting-effective-readmes/references/make-a-readme.md +119 -0
  102. package/assets/.agent/skills/crafting-effective-readmes/references/standard-readme-example-maximal.md +68 -0
  103. package/assets/.agent/skills/crafting-effective-readmes/references/standard-readme-example-minimal.md +21 -0
  104. package/assets/.agent/skills/crafting-effective-readmes/references/standard-readme-spec.md +242 -0
  105. package/assets/.agent/skills/crafting-effective-readmes/section-checklist.md +17 -0
  106. package/assets/.agent/skills/crafting-effective-readmes/style-guide.md +13 -0
  107. package/assets/.agent/skills/crafting-effective-readmes/templates/internal.md +106 -0
  108. package/assets/.agent/skills/crafting-effective-readmes/templates/oss.md +77 -0
  109. package/assets/.agent/skills/crafting-effective-readmes/templates/personal.md +51 -0
  110. package/assets/.agent/skills/crafting-effective-readmes/templates/xdg-config.md +71 -0
  111. package/assets/.agent/skills/crafting-effective-readmes/using-references.md +35 -0
  112. package/assets/.agent/skills/docx/LICENSE.txt +30 -0
  113. package/assets/.agent/skills/docx/SKILL.md +481 -0
  114. package/assets/.agent/skills/docx/scripts/accept_changes.py +135 -0
  115. package/assets/.agent/skills/docx/scripts/comment.py +318 -0
  116. package/assets/.agent/skills/docx/scripts/office/helpers/merge_runs.py +199 -0
  117. package/assets/.agent/skills/docx/scripts/office/helpers/simplify_redlines.py +197 -0
  118. package/assets/.agent/skills/docx/scripts/office/pack.py +159 -0
  119. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  120. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  121. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  122. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  123. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  124. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  125. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  126. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  127. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  128. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  129. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  130. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  131. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  132. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  133. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  134. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  135. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  136. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  137. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  138. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  139. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  140. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  141. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  142. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  143. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  144. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  145. package/assets/.agent/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  146. package/assets/.agent/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  147. package/assets/.agent/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  148. package/assets/.agent/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  149. package/assets/.agent/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  150. package/assets/.agent/skills/docx/scripts/office/schemas/mce/mc.xsd +75 -0
  151. package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  152. package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  153. package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  154. package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  155. package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  156. package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  157. package/assets/.agent/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  158. package/assets/.agent/skills/docx/scripts/office/soffice.py +183 -0
  159. package/assets/.agent/skills/docx/scripts/office/unpack.py +132 -0
  160. package/assets/.agent/skills/docx/scripts/office/validate.py +111 -0
  161. package/assets/.agent/skills/docx/scripts/office/validators/base.py +847 -0
  162. package/assets/.agent/skills/docx/scripts/office/validators/docx.py +446 -0
  163. package/assets/.agent/skills/docx/scripts/office/validators/pptx.py +275 -0
  164. package/assets/.agent/skills/docx/scripts/office/validators/redlining.py +247 -0
  165. package/assets/.agent/skills/docx/scripts/templates/comments.xml +3 -0
  166. package/assets/.agent/skills/docx/scripts/templates/commentsExtended.xml +3 -0
  167. package/assets/.agent/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
  168. package/assets/.agent/skills/docx/scripts/templates/commentsIds.xml +3 -0
  169. package/assets/.agent/skills/docx/scripts/templates/people.xml +3 -0
  170. package/assets/.agent/skills/domain-name-brainstormer/SKILL.md +212 -0
  171. package/assets/.agent/skills/frontend-design/LICENSE.txt +177 -0
  172. package/assets/.agent/skills/frontend-design/SKILL.md +42 -0
  173. package/assets/.agent/skills/gemini/SKILL.md +223 -0
  174. package/assets/.agent/skills/git-worktree/SKILL.md +78 -0
  175. package/assets/.agent/skills/github-ops/SKILL.md +220 -0
  176. package/assets/.agent/skills/github-ops/scripts/publish_issues.ps1 +443 -0
  177. package/assets/.agent/skills/github-ops/scripts/smart-ops.ps1 +128 -0
  178. package/assets/.agent/skills/github-ops/scripts/smart-ops.sh +130 -0
  179. package/assets/.agent/skills/global-brand-namer/SKILL.md +119 -0
  180. package/assets/.agent/skills/global-brand-namer/references/language-matrices.md +196 -0
  181. package/assets/.agent/skills/global-brand-namer/references/saas-modifiers.md +132 -0
  182. package/assets/.agent/skills/google-trends/SKILL.md +157 -0
  183. package/assets/.agent/skills/google-trends/scripts/package.json +17 -0
  184. package/assets/.agent/skills/google-trends/scripts/pnpm-lock.yaml +31 -0
  185. package/assets/.agent/skills/google-trends/scripts/search.js +168 -0
  186. package/assets/.agent/skills/high-fidelity-extraction/SKILL.md +59 -0
  187. package/assets/.agent/skills/jules/SKILL.md +196 -0
  188. package/assets/.agent/skills/marketing-ideas/SKILL.md +166 -0
  189. package/assets/.agent/skills/marketing-ideas/references/ideas-by-category.md +347 -0
  190. package/assets/.agent/skills/monorepo-management/SKILL.md +623 -0
  191. package/assets/.agent/skills/nextjs-standards/SKILL.md +194 -0
  192. package/assets/.agent/skills/nextjs-standards/scripts/vibe-verify.py +150 -0
  193. package/assets/.agent/skills/nextjs-standards/templates/Coding_Guidelines.md +337 -0
  194. package/assets/.agent/skills/nextjs-standards/templates/Issue_Template.md +194 -0
  195. package/assets/.agent/skills/optimize-agent-context/SKILL.md +97 -0
  196. package/assets/.agent/skills/pdf/LICENSE.txt +30 -0
  197. package/assets/.agent/skills/pdf/SKILL.md +314 -0
  198. package/assets/.agent/skills/pdf/forms.md +294 -0
  199. package/assets/.agent/skills/pdf/reference.md +612 -0
  200. package/assets/.agent/skills/pdf/scripts/check_bounding_boxes.py +65 -0
  201. package/assets/.agent/skills/pdf/scripts/check_fillable_fields.py +11 -0
  202. package/assets/.agent/skills/pdf/scripts/convert_pdf_to_images.py +33 -0
  203. package/assets/.agent/skills/pdf/scripts/create_validation_image.py +37 -0
  204. package/assets/.agent/skills/pdf/scripts/extract_form_field_info.py +122 -0
  205. package/assets/.agent/skills/pdf/scripts/extract_form_structure.py +115 -0
  206. package/assets/.agent/skills/pdf/scripts/fill_fillable_fields.py +98 -0
  207. package/assets/.agent/skills/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
  208. package/assets/.agent/skills/pptx/LICENSE.txt +30 -0
  209. package/assets/.agent/skills/pptx/SKILL.md +232 -0
  210. package/assets/.agent/skills/pptx/editing.md +205 -0
  211. package/assets/.agent/skills/pptx/pptxgenjs.md +420 -0
  212. package/assets/.agent/skills/pptx/scripts/add_slide.py +195 -0
  213. package/assets/.agent/skills/pptx/scripts/clean.py +286 -0
  214. package/assets/.agent/skills/pptx/scripts/office/helpers/merge_runs.py +199 -0
  215. package/assets/.agent/skills/pptx/scripts/office/helpers/simplify_redlines.py +197 -0
  216. package/assets/.agent/skills/pptx/scripts/office/pack.py +159 -0
  217. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  218. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  219. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  220. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  221. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  222. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  223. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  224. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  225. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  226. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  227. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  228. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  229. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  230. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  231. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  232. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  233. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  234. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  235. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  236. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  237. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  238. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  239. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  240. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  241. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  242. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  243. package/assets/.agent/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  244. package/assets/.agent/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  245. package/assets/.agent/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  246. package/assets/.agent/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  247. package/assets/.agent/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  248. package/assets/.agent/skills/pptx/scripts/office/schemas/mce/mc.xsd +75 -0
  249. package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  250. package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  251. package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  252. package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  253. package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  254. package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  255. package/assets/.agent/skills/pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  256. package/assets/.agent/skills/pptx/scripts/office/soffice.py +183 -0
  257. package/assets/.agent/skills/pptx/scripts/office/unpack.py +132 -0
  258. package/assets/.agent/skills/pptx/scripts/office/validate.py +111 -0
  259. package/assets/.agent/skills/pptx/scripts/office/validators/base.py +847 -0
  260. package/assets/.agent/skills/pptx/scripts/office/validators/docx.py +446 -0
  261. package/assets/.agent/skills/pptx/scripts/office/validators/pptx.py +275 -0
  262. package/assets/.agent/skills/pptx/scripts/office/validators/redlining.py +247 -0
  263. package/assets/.agent/skills/pptx/scripts/thumbnail.py +289 -0
  264. package/assets/.agent/skills/pricing-strategy/SKILL.md +227 -0
  265. package/assets/.agent/skills/pricing-strategy/references/research-methods.md +146 -0
  266. package/assets/.agent/skills/pricing-strategy/references/tier-structure.md +223 -0
  267. package/assets/.agent/skills/programmatic-seo/SKILL.md +236 -0
  268. package/assets/.agent/skills/programmatic-seo/references/playbooks.md +293 -0
  269. package/assets/.agent/skills/prompt-engineering/SKILL.md +342 -0
  270. package/assets/.agent/skills/remotion/SKILL.md +45 -0
  271. package/assets/.agent/skills/remotion/rules/3d.md +86 -0
  272. package/assets/.agent/skills/remotion/rules/animations.md +29 -0
  273. package/assets/.agent/skills/remotion/rules/assets/charts-bar-chart.tsx +173 -0
  274. package/assets/.agent/skills/remotion/rules/assets/text-animations-typewriter.tsx +100 -0
  275. package/assets/.agent/skills/remotion/rules/assets/text-animations-word-highlight.tsx +108 -0
  276. package/assets/.agent/skills/remotion/rules/assets.md +78 -0
  277. package/assets/.agent/skills/remotion/rules/audio.md +172 -0
  278. package/assets/.agent/skills/remotion/rules/calculate-metadata.md +104 -0
  279. package/assets/.agent/skills/remotion/rules/can-decode.md +75 -0
  280. package/assets/.agent/skills/remotion/rules/charts.md +58 -0
  281. package/assets/.agent/skills/remotion/rules/compositions.md +141 -0
  282. package/assets/.agent/skills/remotion/rules/display-captions.md +126 -0
  283. package/assets/.agent/skills/remotion/rules/extract-frames.md +229 -0
  284. package/assets/.agent/skills/remotion/rules/fonts.md +152 -0
  285. package/assets/.agent/skills/remotion/rules/get-audio-duration.md +58 -0
  286. package/assets/.agent/skills/remotion/rules/get-video-dimensions.md +68 -0
  287. package/assets/.agent/skills/remotion/rules/get-video-duration.md +58 -0
  288. package/assets/.agent/skills/remotion/rules/gifs.md +138 -0
  289. package/assets/.agent/skills/remotion/rules/images.md +130 -0
  290. package/assets/.agent/skills/remotion/rules/import-srt-captions.md +67 -0
  291. package/assets/.agent/skills/remotion/rules/lottie.md +68 -0
  292. package/assets/.agent/skills/remotion/rules/maps.md +403 -0
  293. package/assets/.agent/skills/remotion/rules/measuring-dom-nodes.md +35 -0
  294. package/assets/.agent/skills/remotion/rules/measuring-text.md +143 -0
  295. package/assets/.agent/skills/remotion/rules/parameters.md +98 -0
  296. package/assets/.agent/skills/remotion/rules/sequencing.md +118 -0
  297. package/assets/.agent/skills/remotion/rules/tailwind.md +11 -0
  298. package/assets/.agent/skills/remotion/rules/text-animations.md +20 -0
  299. package/assets/.agent/skills/remotion/rules/timing.md +179 -0
  300. package/assets/.agent/skills/remotion/rules/transcribe-captions.md +19 -0
  301. package/assets/.agent/skills/remotion/rules/transitions.md +122 -0
  302. package/assets/.agent/skills/remotion/rules/trimming.md +53 -0
  303. package/assets/.agent/skills/remotion/rules/videos.md +171 -0
  304. package/assets/.agent/skills/security-audit/SKILL.md +184 -0
  305. package/assets/.agent/skills/seo-ready/SKILL.md +140 -0
  306. package/assets/.agent/skills/seo-ready/references/aeo-geo-patterns.md +279 -0
  307. package/assets/.agent/skills/seo-ready/references/ai-writing-detection.md +190 -0
  308. package/assets/.agent/skills/skill-creator/LICENSE.txt +202 -0
  309. package/assets/.agent/skills/skill-creator/SKILL.md +356 -0
  310. package/assets/.agent/skills/skill-creator/references/output-patterns.md +82 -0
  311. package/assets/.agent/skills/skill-creator/references/workflows.md +28 -0
  312. package/assets/.agent/skills/skill-creator/scripts/__pycache__/quick_validate.cpython-311.pyc +0 -0
  313. package/assets/.agent/skills/skill-creator/scripts/init_skill.py +303 -0
  314. package/assets/.agent/skills/skill-creator/scripts/package_skill.py +110 -0
  315. package/assets/.agent/skills/skill-creator/scripts/quick_validate.py +95 -0
  316. package/assets/.agent/skills/social-content/SKILL.md +277 -0
  317. package/assets/.agent/skills/social-content/references/platforms.md +163 -0
  318. package/assets/.agent/skills/social-content/references/post-templates.md +171 -0
  319. package/assets/.agent/skills/social-content/references/reverse-engineering.md +190 -0
  320. package/assets/.agent/skills/spawn-task/SKILL.md +130 -0
  321. package/assets/.agent/skills/stitch/SKILL.md +258 -0
  322. package/assets/.agent/skills/stitch/design-md/README.md +34 -0
  323. package/assets/.agent/skills/stitch/design-md/SKILL.md +172 -0
  324. package/assets/.agent/skills/stitch/design-md/examples/DESIGN.md +154 -0
  325. package/assets/.agent/skills/stitch/enhance-prompt/README.md +34 -0
  326. package/assets/.agent/skills/stitch/enhance-prompt/SKILL.md +204 -0
  327. package/assets/.agent/skills/stitch/enhance-prompt/references/KEYWORDS.md +114 -0
  328. package/assets/.agent/skills/stitch/react-components/README.md +36 -0
  329. package/assets/.agent/skills/stitch/react-components/SKILL.md +47 -0
  330. package/assets/.agent/skills/stitch/react-components/examples/gold-standard-card.tsx +80 -0
  331. package/assets/.agent/skills/stitch/react-components/package-lock.json +231 -0
  332. package/assets/.agent/skills/stitch/react-components/package.json +16 -0
  333. package/assets/.agent/skills/stitch/react-components/resources/architecture-checklist.md +15 -0
  334. package/assets/.agent/skills/stitch/react-components/resources/component-template.tsx +37 -0
  335. package/assets/.agent/skills/stitch/react-components/resources/stitch-api-reference.md +14 -0
  336. package/assets/.agent/skills/stitch/react-components/resources/style-guide.json +27 -0
  337. package/assets/.agent/skills/stitch/react-components/scripts/fetch-stitch.sh +30 -0
  338. package/assets/.agent/skills/stitch/react-components/scripts/validate.js +68 -0
  339. package/assets/.agent/skills/stitch/remotion/README.md +105 -0
  340. package/assets/.agent/skills/stitch/remotion/SKILL.md +393 -0
  341. package/assets/.agent/skills/stitch/remotion/examples/WalkthroughComposition.tsx +78 -0
  342. package/assets/.agent/skills/stitch/remotion/examples/screens.json +56 -0
  343. package/assets/.agent/skills/stitch/remotion/resources/composition-checklist.md +124 -0
  344. package/assets/.agent/skills/stitch/remotion/resources/screen-slide-template.tsx +123 -0
  345. package/assets/.agent/skills/stitch/remotion/scripts/download-stitch-asset.sh +38 -0
  346. package/assets/.agent/skills/stitch/shadcn-ui/README.md +248 -0
  347. package/assets/.agent/skills/stitch/shadcn-ui/SKILL.md +326 -0
  348. package/assets/.agent/skills/stitch/shadcn-ui/examples/auth-layout.tsx +177 -0
  349. package/assets/.agent/skills/stitch/shadcn-ui/examples/data-table.tsx +313 -0
  350. package/assets/.agent/skills/stitch/shadcn-ui/examples/form-pattern.tsx +177 -0
  351. package/assets/.agent/skills/stitch/shadcn-ui/resources/component-catalog.md +481 -0
  352. package/assets/.agent/skills/stitch/shadcn-ui/resources/customization-guide.md +516 -0
  353. package/assets/.agent/skills/stitch/shadcn-ui/resources/migration-guide.md +463 -0
  354. package/assets/.agent/skills/stitch/shadcn-ui/resources/setup-guide.md +412 -0
  355. package/assets/.agent/skills/stitch/shadcn-ui/scripts/verify-setup.sh +134 -0
  356. package/assets/.agent/skills/stitch/stitch-loop/README.md +54 -0
  357. package/assets/.agent/skills/stitch/stitch-loop/SKILL.md +203 -0
  358. package/assets/.agent/skills/stitch/stitch-loop/examples/SITE.md +73 -0
  359. package/assets/.agent/skills/stitch/stitch-loop/examples/next-prompt.md +25 -0
  360. package/assets/.agent/skills/stitch/stitch-loop/resources/baton-schema.md +61 -0
  361. package/assets/.agent/skills/stitch/stitch-loop/resources/site-template.md +104 -0
  362. package/assets/.agent/skills/subagent-driven-development/SKILL.md +242 -0
  363. package/assets/.agent/skills/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
  364. package/assets/.agent/skills/subagent-driven-development/implementer-prompt.md +78 -0
  365. package/assets/.agent/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  366. package/assets/.agent/skills/sync-docs/SKILL.md +88 -0
  367. package/assets/.agent/skills/twitter-automation/SKILL.md +157 -0
  368. package/assets/.agent/skills/ui-ux-pro-max/README.md +488 -0
  369. package/assets/.agent/skills/ui-ux-pro-max/SKILL.md +293 -0
  370. package/assets/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  371. package/assets/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  372. package/assets/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
  373. package/assets/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  374. package/assets/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  375. package/assets/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
  376. package/assets/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  377. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  378. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  379. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  380. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  381. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  382. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  383. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  384. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  385. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  386. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  387. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  388. package/assets/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  389. package/assets/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
  390. package/assets/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  391. package/assets/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  392. package/assets/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  393. package/assets/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  394. package/assets/.agent/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-311.pyc +0 -0
  395. package/assets/.agent/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-311.pyc +0 -0
  396. package/assets/.agent/skills/ui-ux-pro-max/scripts/core.py +258 -0
  397. package/assets/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
  398. package/assets/.agent/skills/ui-ux-pro-max/scripts/search.py +106 -0
  399. package/assets/.agent/skills/upgrading-expo/SKILL.md +125 -0
  400. package/assets/.agent/skills/upgrading-expo/references/expo-av-to-audio.md +132 -0
  401. package/assets/.agent/skills/upgrading-expo/references/expo-av-to-video.md +160 -0
  402. package/assets/.agent/skills/upgrading-expo/references/native-tabs.md +124 -0
  403. package/assets/.agent/skills/upgrading-expo/references/new-architecture.md +79 -0
  404. package/assets/.agent/skills/upgrading-expo/references/react-19.md +79 -0
  405. package/assets/.agent/skills/upgrading-expo/references/react-compiler.md +59 -0
  406. package/assets/.agent/skills/web-design-guidelines/SKILL.md +39 -0
  407. package/assets/.agent/skills/webapp-testing/LICENSE.txt +202 -0
  408. package/assets/.agent/skills/webapp-testing/SKILL.md +96 -0
  409. package/assets/.agent/skills/webapp-testing/examples/console_logging.py +35 -0
  410. package/assets/.agent/skills/webapp-testing/examples/element_discovery.py +40 -0
  411. package/assets/.agent/skills/webapp-testing/examples/static_html_automation.py +33 -0
  412. package/assets/.agent/skills/webapp-testing/scripts/with_server.py +106 -0
  413. package/assets/.agent/skills/xlsx/LICENSE.txt +30 -0
  414. package/assets/.agent/skills/xlsx/SKILL.md +292 -0
  415. package/assets/.agent/skills/xlsx/scripts/office/helpers/merge_runs.py +199 -0
  416. package/assets/.agent/skills/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
  417. package/assets/.agent/skills/xlsx/scripts/office/pack.py +159 -0
  418. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  419. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  420. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  421. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  422. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  423. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  424. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  425. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  426. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  427. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  428. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  429. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  430. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  431. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  432. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  433. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  434. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  435. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  436. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  437. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  438. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  439. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  440. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  441. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  442. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  443. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  444. package/assets/.agent/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  445. package/assets/.agent/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  446. package/assets/.agent/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  447. package/assets/.agent/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  448. package/assets/.agent/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  449. package/assets/.agent/skills/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
  450. package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  451. package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  452. package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  453. package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  454. package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  455. package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  456. package/assets/.agent/skills/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  457. package/assets/.agent/skills/xlsx/scripts/office/soffice.py +183 -0
  458. package/assets/.agent/skills/xlsx/scripts/office/unpack.py +132 -0
  459. package/assets/.agent/skills/xlsx/scripts/office/validate.py +111 -0
  460. package/assets/.agent/skills/xlsx/scripts/office/validators/base.py +847 -0
  461. package/assets/.agent/skills/xlsx/scripts/office/validators/docx.py +446 -0
  462. package/assets/.agent/skills/xlsx/scripts/office/validators/pptx.py +275 -0
  463. package/assets/.agent/skills/xlsx/scripts/office/validators/redlining.py +247 -0
  464. package/assets/.agent/skills/xlsx/scripts/recalc.py +184 -0
  465. package/assets/.agent/skills/youtube-pipeline/SKILL.md +194 -0
  466. package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase1-strategy.md +224 -0
  467. package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase2-packaging.md +148 -0
  468. package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase3-scripting.md +197 -0
  469. package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase3.5-shorts.md +271 -0
  470. package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase4-production.md +193 -0
  471. package/assets/.agent/skills/youtube-pipeline/resources/youtube-phase5-repurposing.md +159 -0
  472. package/assets/.agent/skills/youtube-pipeline/resources/youtube-pipeline.md +161 -0
  473. package/assets/.agent/skills/youtube-pipeline/scripts/parse_yt_studio.ps1 +150 -0
  474. package/assets/.agent/workflows/LEGACY/ANTIGRAVITY_TOOLBOX.md +200 -0
  475. package/assets/.agent/workflows/LEGACY/analyze_component.md +141 -0
  476. package/assets/.agent/workflows/LEGACY/build_vibecode_project.md +154 -0
  477. package/assets/.agent/workflows/LEGACY/build_vibecode_project_v2.md +158 -0
  478. package/assets/.agent/workflows/LEGACY/deep_code_audit.md +79 -0
  479. package/assets/.agent/workflows/LEGACY/gemini-orchestrate.md +63 -0
  480. package/assets/.agent/workflows/LEGACY/git_worktree.md +71 -0
  481. package/assets/.agent/workflows/LEGACY/init_smart_ops.md +101 -0
  482. package/assets/.agent/workflows/LEGACY/init_vibecode_genesis_v1.md +137 -0
  483. package/assets/.agent/workflows/LEGACY/multi_agent_strategy.md +62 -0
  484. package/assets/.agent/workflows/LEGACY/orchestrate.md +321 -0
  485. package/assets/.agent/workflows/LEGACY/seo_ready.md +249 -0
  486. package/assets/.agent/workflows/LEGACY/vibe-orchestrator.md +305 -0
  487. package/assets/.agent/workflows/LEGACY/youtube-phase1-strategy.md +224 -0
  488. package/assets/.agent/workflows/LEGACY/youtube-phase2-packaging.md +148 -0
  489. package/assets/.agent/workflows/LEGACY/youtube-phase3-scripting.md +197 -0
  490. package/assets/.agent/workflows/LEGACY/youtube-phase3.5-shorts.md +271 -0
  491. package/assets/.agent/workflows/LEGACY/youtube-phase4-production.md +193 -0
  492. package/assets/.agent/workflows/LEGACY/youtube-phase5-repurposing.md +159 -0
  493. package/assets/.agent/workflows/LEGACY/youtube-pipeline.md +161 -0
  494. package/assets/.agent/workflows/README.md +537 -0
  495. package/assets/.agent/workflows/Vercel Ai SDK.md +34083 -0
  496. package/assets/.agent/workflows/agent_reset.md +173 -0
  497. package/assets/.agent/workflows/escalate.md +112 -0
  498. package/assets/.agent/workflows/migrate.md +135 -0
  499. package/assets/.agent/workflows/mode-architect.md +422 -0
  500. package/assets/.agent/workflows/mode-ask.md +294 -0
  501. package/assets/.agent/workflows/mode-code.md +481 -0
  502. package/assets/.agent/workflows/mode-debug.md +407 -0
  503. package/assets/.agent/workflows/mode-orchestrator.md +222 -0
  504. package/assets/.agent/workflows/mode-review.md +341 -0
  505. package/assets/.agent/workflows/mode-visionary.md +186 -0
  506. package/assets/.agent/workflows/optimize-agent-context.md +54 -0
  507. package/assets/.agent/workflows/remotion-build.md +323 -0
  508. package/assets/.agent/workflows/reverse_genesis.md +132 -0
  509. package/assets/.agent/workflows/review_code.md +133 -0
  510. package/assets/.agent/workflows/spawn-jstar-code-review.md +121 -0
  511. package/assets/.agent/workflows/stitch.md +149 -0
  512. package/assets/.agent/workflows/vibe-build.md +271 -0
  513. package/assets/.agent/workflows/vibe-continueBuild.md +184 -0
  514. package/assets/.agent/workflows/vibe-design.md +98 -0
  515. package/assets/.agent/workflows/vibe-finalize.md +208 -0
  516. package/assets/.agent/workflows/vibe-genesis.md +191 -0
  517. package/assets/.agent/workflows/vibe-primeAgent.md +110 -0
  518. package/assets/.agent/workflows/vibe-spawnTask.md +188 -0
  519. package/assets/.agent/workflows/vibe-syncDocs.md +90 -0
  520. package/assets/Legacy/0 VibeCode User Manual.md +175 -0
  521. package/assets/Legacy/1 Project Genesis Protocol The VibeCode Workflow.md +89 -0
  522. package/assets/Legacy/2/342/234/250 ULTIMATE ORCHESTRATION PROMPT/342/234/250.md" +114 -0
  523. package/assets/Legacy/3 Design System Genesis Protocol.md +75 -0
  524. package/assets/Legacy/3.1.1 my_design_system_rules.md +177 -0
  525. package/assets/Legacy/3.1.2 Material You M3 Genesis Protocol.md +73 -0
  526. package/assets/Legacy/4 The Ultimate GitHub Issue Meta-Prompt Template.md +54 -0
  527. package/assets/Legacy/5 The Escalation & Handoff Protocol.md +97 -0
  528. package/assets/Legacy/8 The Seamless Migration Meta-Prompt (Your Reusable Tool).md +38 -0
  529. package/assets/Legacy/9 The Reverse Genesis Protocol.md +75 -0
  530. package/assets/Takomi-Agents/custom_modes.yaml +1252 -0
  531. package/assets/Takomi-Agents/kilo-code-settings.json +1 -0
  532. package/assets/Takomi-Agents/vibe-architect.yaml +473 -0
  533. package/assets/Takomi-Agents/vibe-ask.yaml +395 -0
  534. package/assets/Takomi-Agents/vibe-code.yaml +522 -0
  535. package/assets/Takomi-Agents/vibe-debug.yaml +448 -0
  536. package/assets/Takomi-Agents/vibe-orchestrator.yaml +763 -0
  537. package/assets/Takomi-Agents/vibe-review.yaml +459 -0
  538. package/assets/Takomi-Agents/vibe-visionary.yaml +607 -0
  539. package/bin/takomi.js +2 -0
  540. package/package.json +42 -0
  541. package/src/cli.js +638 -0
  542. package/src/harness.js +281 -0
  543. package/src/store.js +239 -0
  544. package/src/utils.js +447 -0
@@ -0,0 +1,733 @@
1
+ ---
2
+ name: convex-http-actions
3
+ displayName: Convex HTTP Actions
4
+ description: External API integration and webhook handling including HTTP endpoint routing, request/response handling, authentication, CORS configuration, and webhook signature validation
5
+ version: 1.0.0
6
+ author: Convex
7
+ tags: [convex, http, actions, webhooks, api, endpoints]
8
+ ---
9
+
10
+ # Convex HTTP Actions
11
+
12
+ Build HTTP endpoints for webhooks, external API integrations, and custom routes in Convex applications.
13
+
14
+ ## Documentation Sources
15
+
16
+ Before implementing, do not assume; fetch the latest documentation:
17
+
18
+ - Primary: https://docs.convex.dev/functions/http-actions
19
+ - Actions Overview: https://docs.convex.dev/functions/actions
20
+ - Authentication: https://docs.convex.dev/auth
21
+ - For broader context: https://docs.convex.dev/llms.txt
22
+
23
+ ## Instructions
24
+
25
+ ### HTTP Actions Overview
26
+
27
+ HTTP actions allow you to define HTTP endpoints in Convex that can:
28
+
29
+ - Receive webhooks from third-party services
30
+ - Create custom API routes
31
+ - Handle file uploads
32
+ - Integrate with external services
33
+ - Serve dynamic content
34
+
35
+ ### Basic HTTP Router Setup
36
+
37
+ ```typescript
38
+ // convex/http.ts
39
+ import { httpRouter } from "convex/server";
40
+ import { httpAction } from "./_generated/server";
41
+
42
+ const http = httpRouter();
43
+
44
+ // Simple GET endpoint
45
+ http.route({
46
+ path: "/health",
47
+ method: "GET",
48
+ handler: httpAction(async (ctx, request) => {
49
+ return new Response(JSON.stringify({ status: "ok" }), {
50
+ status: 200,
51
+ headers: { "Content-Type": "application/json" },
52
+ });
53
+ }),
54
+ });
55
+
56
+ export default http;
57
+ ```
58
+
59
+ ### Request Handling
60
+
61
+ ```typescript
62
+ // convex/http.ts
63
+ import { httpRouter } from "convex/server";
64
+ import { httpAction } from "./_generated/server";
65
+
66
+ const http = httpRouter();
67
+
68
+ // Handle JSON body
69
+ http.route({
70
+ path: "/api/data",
71
+ method: "POST",
72
+ handler: httpAction(async (ctx, request) => {
73
+ // Parse JSON body
74
+ const body = await request.json();
75
+
76
+ // Access headers
77
+ const authHeader = request.headers.get("Authorization");
78
+
79
+ // Access URL parameters
80
+ const url = new URL(request.url);
81
+ const queryParam = url.searchParams.get("filter");
82
+
83
+ return new Response(
84
+ JSON.stringify({ received: body, filter: queryParam }),
85
+ {
86
+ status: 200,
87
+ headers: { "Content-Type": "application/json" },
88
+ }
89
+ );
90
+ }),
91
+ });
92
+
93
+ // Handle form data
94
+ http.route({
95
+ path: "/api/form",
96
+ method: "POST",
97
+ handler: httpAction(async (ctx, request) => {
98
+ const formData = await request.formData();
99
+ const name = formData.get("name");
100
+ const email = formData.get("email");
101
+
102
+ return new Response(
103
+ JSON.stringify({ name, email }),
104
+ {
105
+ status: 200,
106
+ headers: { "Content-Type": "application/json" },
107
+ }
108
+ );
109
+ }),
110
+ });
111
+
112
+ // Handle raw bytes
113
+ http.route({
114
+ path: "/api/upload",
115
+ method: "POST",
116
+ handler: httpAction(async (ctx, request) => {
117
+ const bytes = await request.bytes();
118
+ const contentType = request.headers.get("Content-Type") ?? "application/octet-stream";
119
+
120
+ // Store in Convex storage
121
+ const blob = new Blob([bytes], { type: contentType });
122
+ const storageId = await ctx.storage.store(blob);
123
+
124
+ return new Response(
125
+ JSON.stringify({ storageId }),
126
+ {
127
+ status: 200,
128
+ headers: { "Content-Type": "application/json" },
129
+ }
130
+ );
131
+ }),
132
+ });
133
+
134
+ export default http;
135
+ ```
136
+
137
+ ### Path Parameters
138
+
139
+ Use path prefix matching for dynamic routes:
140
+
141
+ ```typescript
142
+ // convex/http.ts
143
+ import { httpRouter } from "convex/server";
144
+ import { httpAction } from "./_generated/server";
145
+
146
+ const http = httpRouter();
147
+
148
+ // Match /api/users/* with pathPrefix
149
+ http.route({
150
+ pathPrefix: "/api/users/",
151
+ method: "GET",
152
+ handler: httpAction(async (ctx, request) => {
153
+ const url = new URL(request.url);
154
+ // Extract user ID from path: /api/users/123 -> "123"
155
+ const userId = url.pathname.replace("/api/users/", "");
156
+
157
+ return new Response(
158
+ JSON.stringify({ userId }),
159
+ {
160
+ status: 200,
161
+ headers: { "Content-Type": "application/json" },
162
+ }
163
+ );
164
+ }),
165
+ });
166
+
167
+ export default http;
168
+ ```
169
+
170
+ ### CORS Configuration
171
+
172
+ ```typescript
173
+ // convex/http.ts
174
+ import { httpRouter } from "convex/server";
175
+ import { httpAction } from "./_generated/server";
176
+
177
+ const http = httpRouter();
178
+
179
+ // CORS headers helper
180
+ const corsHeaders = {
181
+ "Access-Control-Allow-Origin": "*",
182
+ "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
183
+ "Access-Control-Allow-Headers": "Content-Type, Authorization",
184
+ "Access-Control-Max-Age": "86400",
185
+ };
186
+
187
+ // Handle preflight requests
188
+ http.route({
189
+ path: "/api/data",
190
+ method: "OPTIONS",
191
+ handler: httpAction(async () => {
192
+ return new Response(null, {
193
+ status: 204,
194
+ headers: corsHeaders,
195
+ });
196
+ }),
197
+ });
198
+
199
+ // Actual endpoint with CORS
200
+ http.route({
201
+ path: "/api/data",
202
+ method: "POST",
203
+ handler: httpAction(async (ctx, request) => {
204
+ const body = await request.json();
205
+
206
+ return new Response(
207
+ JSON.stringify({ success: true, data: body }),
208
+ {
209
+ status: 200,
210
+ headers: {
211
+ "Content-Type": "application/json",
212
+ ...corsHeaders,
213
+ },
214
+ }
215
+ );
216
+ }),
217
+ });
218
+
219
+ export default http;
220
+ ```
221
+
222
+ ### Webhook Handling
223
+
224
+ ```typescript
225
+ // convex/http.ts
226
+ import { httpRouter } from "convex/server";
227
+ import { httpAction } from "./_generated/server";
228
+ import { internal } from "./_generated/api";
229
+
230
+ const http = httpRouter();
231
+
232
+ // Stripe webhook
233
+ http.route({
234
+ path: "/webhooks/stripe",
235
+ method: "POST",
236
+ handler: httpAction(async (ctx, request) => {
237
+ const signature = request.headers.get("stripe-signature");
238
+ if (!signature) {
239
+ return new Response("Missing signature", { status: 400 });
240
+ }
241
+
242
+ const body = await request.text();
243
+
244
+ // Verify webhook signature (in action with Node.js)
245
+ try {
246
+ await ctx.runAction(internal.stripe.verifyAndProcessWebhook, {
247
+ body,
248
+ signature,
249
+ });
250
+ return new Response("OK", { status: 200 });
251
+ } catch (error) {
252
+ console.error("Webhook error:", error);
253
+ return new Response("Webhook error", { status: 400 });
254
+ }
255
+ }),
256
+ });
257
+
258
+ // GitHub webhook
259
+ http.route({
260
+ path: "/webhooks/github",
261
+ method: "POST",
262
+ handler: httpAction(async (ctx, request) => {
263
+ const event = request.headers.get("X-GitHub-Event");
264
+ const signature = request.headers.get("X-Hub-Signature-256");
265
+
266
+ if (!signature) {
267
+ return new Response("Missing signature", { status: 400 });
268
+ }
269
+
270
+ const body = await request.text();
271
+
272
+ await ctx.runAction(internal.github.processWebhook, {
273
+ event: event ?? "unknown",
274
+ body,
275
+ signature,
276
+ });
277
+
278
+ return new Response("OK", { status: 200 });
279
+ }),
280
+ });
281
+
282
+ export default http;
283
+ ```
284
+
285
+ ### Webhook Signature Verification
286
+
287
+ ```typescript
288
+ // convex/stripe.ts
289
+ "use node";
290
+
291
+ import { internalAction, internalMutation } from "./_generated/server";
292
+ import { internal } from "./_generated/api";
293
+ import { v } from "convex/values";
294
+ import Stripe from "stripe";
295
+
296
+ const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);
297
+
298
+ export const verifyAndProcessWebhook = internalAction({
299
+ args: {
300
+ body: v.string(),
301
+ signature: v.string(),
302
+ },
303
+ returns: v.null(),
304
+ handler: async (ctx, args) => {
305
+ const webhookSecret = process.env.STRIPE_WEBHOOK_SECRET!;
306
+
307
+ // Verify signature
308
+ const event = stripe.webhooks.constructEvent(
309
+ args.body,
310
+ args.signature,
311
+ webhookSecret
312
+ );
313
+
314
+ // Process based on event type
315
+ switch (event.type) {
316
+ case "checkout.session.completed":
317
+ await ctx.runMutation(internal.payments.handleCheckoutComplete, {
318
+ sessionId: event.data.object.id,
319
+ customerId: event.data.object.customer as string,
320
+ });
321
+ break;
322
+
323
+ case "customer.subscription.updated":
324
+ await ctx.runMutation(internal.subscriptions.handleUpdate, {
325
+ subscriptionId: event.data.object.id,
326
+ status: event.data.object.status,
327
+ });
328
+ break;
329
+ }
330
+
331
+ return null;
332
+ },
333
+ });
334
+ ```
335
+
336
+ ### Authentication in HTTP Actions
337
+
338
+ ```typescript
339
+ // convex/http.ts
340
+ import { httpRouter } from "convex/server";
341
+ import { httpAction } from "./_generated/server";
342
+ import { internal } from "./_generated/api";
343
+
344
+ const http = httpRouter();
345
+
346
+ // API key authentication
347
+ http.route({
348
+ path: "/api/protected",
349
+ method: "GET",
350
+ handler: httpAction(async (ctx, request) => {
351
+ const apiKey = request.headers.get("X-API-Key");
352
+
353
+ if (!apiKey) {
354
+ return new Response(
355
+ JSON.stringify({ error: "Missing API key" }),
356
+ { status: 401, headers: { "Content-Type": "application/json" } }
357
+ );
358
+ }
359
+
360
+ // Validate API key
361
+ const isValid = await ctx.runQuery(internal.auth.validateApiKey, {
362
+ apiKey,
363
+ });
364
+
365
+ if (!isValid) {
366
+ return new Response(
367
+ JSON.stringify({ error: "Invalid API key" }),
368
+ { status: 403, headers: { "Content-Type": "application/json" } }
369
+ );
370
+ }
371
+
372
+ // Process authenticated request
373
+ const data = await ctx.runQuery(internal.data.getProtectedData, {});
374
+
375
+ return new Response(
376
+ JSON.stringify(data),
377
+ { status: 200, headers: { "Content-Type": "application/json" } }
378
+ );
379
+ }),
380
+ });
381
+
382
+ // Bearer token authentication
383
+ http.route({
384
+ path: "/api/user",
385
+ method: "GET",
386
+ handler: httpAction(async (ctx, request) => {
387
+ const authHeader = request.headers.get("Authorization");
388
+
389
+ if (!authHeader?.startsWith("Bearer ")) {
390
+ return new Response(
391
+ JSON.stringify({ error: "Missing or invalid Authorization header" }),
392
+ { status: 401, headers: { "Content-Type": "application/json" } }
393
+ );
394
+ }
395
+
396
+ const token = authHeader.slice(7);
397
+
398
+ // Validate token and get user
399
+ const user = await ctx.runQuery(internal.auth.validateToken, { token });
400
+
401
+ if (!user) {
402
+ return new Response(
403
+ JSON.stringify({ error: "Invalid token" }),
404
+ { status: 403, headers: { "Content-Type": "application/json" } }
405
+ );
406
+ }
407
+
408
+ return new Response(
409
+ JSON.stringify(user),
410
+ { status: 200, headers: { "Content-Type": "application/json" } }
411
+ );
412
+ }),
413
+ });
414
+
415
+ export default http;
416
+ ```
417
+
418
+ ### Calling Mutations and Queries
419
+
420
+ ```typescript
421
+ // convex/http.ts
422
+ import { httpRouter } from "convex/server";
423
+ import { httpAction } from "./_generated/server";
424
+ import { api, internal } from "./_generated/api";
425
+
426
+ const http = httpRouter();
427
+
428
+ http.route({
429
+ path: "/api/items",
430
+ method: "POST",
431
+ handler: httpAction(async (ctx, request) => {
432
+ const body = await request.json();
433
+
434
+ // Call a mutation
435
+ const itemId = await ctx.runMutation(internal.items.create, {
436
+ name: body.name,
437
+ description: body.description,
438
+ });
439
+
440
+ // Query the created item
441
+ const item = await ctx.runQuery(internal.items.get, { id: itemId });
442
+
443
+ return new Response(
444
+ JSON.stringify(item),
445
+ { status: 201, headers: { "Content-Type": "application/json" } }
446
+ );
447
+ }),
448
+ });
449
+
450
+ http.route({
451
+ path: "/api/items",
452
+ method: "GET",
453
+ handler: httpAction(async (ctx, request) => {
454
+ const url = new URL(request.url);
455
+ const limit = parseInt(url.searchParams.get("limit") ?? "10");
456
+
457
+ const items = await ctx.runQuery(internal.items.list, { limit });
458
+
459
+ return new Response(
460
+ JSON.stringify(items),
461
+ { status: 200, headers: { "Content-Type": "application/json" } }
462
+ );
463
+ }),
464
+ });
465
+
466
+ export default http;
467
+ ```
468
+
469
+ ### Error Handling
470
+
471
+ ```typescript
472
+ // convex/http.ts
473
+ import { httpRouter } from "convex/server";
474
+ import { httpAction } from "./_generated/server";
475
+
476
+ const http = httpRouter();
477
+
478
+ // Helper for JSON responses
479
+ function jsonResponse(data: unknown, status = 200) {
480
+ return new Response(JSON.stringify(data), {
481
+ status,
482
+ headers: { "Content-Type": "application/json" },
483
+ });
484
+ }
485
+
486
+ // Helper for error responses
487
+ function errorResponse(message: string, status: number) {
488
+ return jsonResponse({ error: message }, status);
489
+ }
490
+
491
+ http.route({
492
+ path: "/api/process",
493
+ method: "POST",
494
+ handler: httpAction(async (ctx, request) => {
495
+ try {
496
+ // Validate content type
497
+ const contentType = request.headers.get("Content-Type");
498
+ if (!contentType?.includes("application/json")) {
499
+ return errorResponse("Content-Type must be application/json", 415);
500
+ }
501
+
502
+ // Parse body
503
+ let body;
504
+ try {
505
+ body = await request.json();
506
+ } catch {
507
+ return errorResponse("Invalid JSON body", 400);
508
+ }
509
+
510
+ // Validate required fields
511
+ if (!body.data) {
512
+ return errorResponse("Missing required field: data", 400);
513
+ }
514
+
515
+ // Process request
516
+ const result = await ctx.runMutation(internal.process.handle, {
517
+ data: body.data,
518
+ });
519
+
520
+ return jsonResponse({ success: true, result }, 200);
521
+ } catch (error) {
522
+ console.error("Processing error:", error);
523
+ return errorResponse("Internal server error", 500);
524
+ }
525
+ }),
526
+ });
527
+
528
+ export default http;
529
+ ```
530
+
531
+ ### File Downloads
532
+
533
+ ```typescript
534
+ // convex/http.ts
535
+ import { httpRouter } from "convex/server";
536
+ import { httpAction } from "./_generated/server";
537
+ import { Id } from "./_generated/dataModel";
538
+
539
+ const http = httpRouter();
540
+
541
+ http.route({
542
+ pathPrefix: "/files/",
543
+ method: "GET",
544
+ handler: httpAction(async (ctx, request) => {
545
+ const url = new URL(request.url);
546
+ const fileId = url.pathname.replace("/files/", "") as Id<"_storage">;
547
+
548
+ // Get file URL from storage
549
+ const fileUrl = await ctx.storage.getUrl(fileId);
550
+
551
+ if (!fileUrl) {
552
+ return new Response("File not found", { status: 404 });
553
+ }
554
+
555
+ // Redirect to the file URL
556
+ return Response.redirect(fileUrl, 302);
557
+ }),
558
+ });
559
+
560
+ export default http;
561
+ ```
562
+
563
+ ## Examples
564
+
565
+ ### Complete Webhook Integration
566
+
567
+ ```typescript
568
+ // convex/http.ts
569
+ import { httpRouter } from "convex/server";
570
+ import { httpAction } from "./_generated/server";
571
+ import { internal } from "./_generated/api";
572
+
573
+ const http = httpRouter();
574
+
575
+ // Clerk webhook for user sync
576
+ http.route({
577
+ path: "/webhooks/clerk",
578
+ method: "POST",
579
+ handler: httpAction(async (ctx, request) => {
580
+ const svixId = request.headers.get("svix-id");
581
+ const svixTimestamp = request.headers.get("svix-timestamp");
582
+ const svixSignature = request.headers.get("svix-signature");
583
+
584
+ if (!svixId || !svixTimestamp || !svixSignature) {
585
+ return new Response("Missing Svix headers", { status: 400 });
586
+ }
587
+
588
+ const body = await request.text();
589
+
590
+ try {
591
+ await ctx.runAction(internal.clerk.verifyAndProcess, {
592
+ body,
593
+ svixId,
594
+ svixTimestamp,
595
+ svixSignature,
596
+ });
597
+ return new Response("OK", { status: 200 });
598
+ } catch (error) {
599
+ console.error("Clerk webhook error:", error);
600
+ return new Response("Webhook verification failed", { status: 400 });
601
+ }
602
+ }),
603
+ });
604
+
605
+ export default http;
606
+ ```
607
+
608
+ ```typescript
609
+ // convex/clerk.ts
610
+ "use node";
611
+
612
+ import { internalAction, internalMutation } from "./_generated/server";
613
+ import { internal } from "./_generated/api";
614
+ import { v } from "convex/values";
615
+ import { Webhook } from "svix";
616
+
617
+ export const verifyAndProcess = internalAction({
618
+ args: {
619
+ body: v.string(),
620
+ svixId: v.string(),
621
+ svixTimestamp: v.string(),
622
+ svixSignature: v.string(),
623
+ },
624
+ returns: v.null(),
625
+ handler: async (ctx, args) => {
626
+ const webhookSecret = process.env.CLERK_WEBHOOK_SECRET!;
627
+ const wh = new Webhook(webhookSecret);
628
+
629
+ const event = wh.verify(args.body, {
630
+ "svix-id": args.svixId,
631
+ "svix-timestamp": args.svixTimestamp,
632
+ "svix-signature": args.svixSignature,
633
+ }) as { type: string; data: Record<string, unknown> };
634
+
635
+ switch (event.type) {
636
+ case "user.created":
637
+ await ctx.runMutation(internal.users.create, {
638
+ clerkId: event.data.id as string,
639
+ email: (event.data.email_addresses as Array<{ email_address: string }>)[0]?.email_address,
640
+ name: `${event.data.first_name} ${event.data.last_name}`,
641
+ });
642
+ break;
643
+
644
+ case "user.updated":
645
+ await ctx.runMutation(internal.users.update, {
646
+ clerkId: event.data.id as string,
647
+ email: (event.data.email_addresses as Array<{ email_address: string }>)[0]?.email_address,
648
+ name: `${event.data.first_name} ${event.data.last_name}`,
649
+ });
650
+ break;
651
+
652
+ case "user.deleted":
653
+ await ctx.runMutation(internal.users.remove, {
654
+ clerkId: event.data.id as string,
655
+ });
656
+ break;
657
+ }
658
+
659
+ return null;
660
+ },
661
+ });
662
+ ```
663
+
664
+ ### Schema for HTTP API
665
+
666
+ ```typescript
667
+ // convex/schema.ts
668
+ import { defineSchema, defineTable } from "convex/server";
669
+ import { v } from "convex/values";
670
+
671
+ export default defineSchema({
672
+ apiKeys: defineTable({
673
+ key: v.string(),
674
+ userId: v.id("users"),
675
+ name: v.string(),
676
+ createdAt: v.number(),
677
+ lastUsedAt: v.optional(v.number()),
678
+ revokedAt: v.optional(v.number()),
679
+ })
680
+ .index("by_key", ["key"])
681
+ .index("by_user", ["userId"]),
682
+
683
+ webhookEvents: defineTable({
684
+ source: v.string(),
685
+ eventType: v.string(),
686
+ payload: v.any(),
687
+ processedAt: v.number(),
688
+ status: v.union(
689
+ v.literal("success"),
690
+ v.literal("failed")
691
+ ),
692
+ error: v.optional(v.string()),
693
+ })
694
+ .index("by_source", ["source"])
695
+ .index("by_status", ["status"]),
696
+
697
+ users: defineTable({
698
+ clerkId: v.string(),
699
+ email: v.string(),
700
+ name: v.string(),
701
+ }).index("by_clerk_id", ["clerkId"]),
702
+ });
703
+ ```
704
+
705
+ ## Best Practices
706
+
707
+ - Never run `npx convex deploy` unless explicitly instructed
708
+ - Never run any git commands unless explicitly instructed
709
+ - Always validate and sanitize incoming request data
710
+ - Use internal functions for database operations
711
+ - Implement proper error handling with appropriate status codes
712
+ - Add CORS headers for browser-accessible endpoints
713
+ - Verify webhook signatures before processing
714
+ - Log webhook events for debugging
715
+ - Use environment variables for secrets
716
+ - Handle timeouts gracefully
717
+
718
+ ## Common Pitfalls
719
+
720
+ 1. **Missing CORS preflight handler** - Browsers send OPTIONS requests first
721
+ 2. **Not validating webhook signatures** - Security vulnerability
722
+ 3. **Exposing internal functions** - Use internal functions from HTTP actions
723
+ 4. **Forgetting Content-Type headers** - Clients may not parse responses correctly
724
+ 5. **Not handling request body errors** - Invalid JSON will throw
725
+ 6. **Blocking on long operations** - Use scheduled functions for heavy processing
726
+
727
+ ## References
728
+
729
+ - Convex Documentation: https://docs.convex.dev/
730
+ - Convex LLMs.txt: https://docs.convex.dev/llms.txt
731
+ - HTTP Actions: https://docs.convex.dev/functions/http-actions
732
+ - Actions: https://docs.convex.dev/functions/actions
733
+ - Authentication: https://docs.convex.dev/auth