@thanhvn14/csvibe 0.1.3 → 0.1.5

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 (395) hide show
  1. package/.github/agents/schemas/base-output.schema.json +88 -0
  2. package/.github/agents/schemas/brainstorm-output.schema.json +88 -0
  3. package/.github/agents/schemas/scout-output.schema.json +60 -0
  4. package/.github/agents/scripts/fetch-copilot-tools.js +245 -0
  5. package/.github/agents/scripts/lib/parse-agent-file.js +275 -0
  6. package/.github/agents/scripts/package-lock.json +78 -0
  7. package/.github/agents/scripts/package.json +22 -0
  8. package/.github/agents/scripts/schemas/agent-frontmatter.schema.json +83 -0
  9. package/.github/agents/scripts/validate-agent-all.js +157 -0
  10. package/.github/agents/scripts/validate-agent-frontmatter.js +96 -0
  11. package/.github/agents/scripts/validate-agent-handoffs.js +169 -0
  12. package/.github/agents/scripts/validate-agent-output.js +157 -0
  13. package/.github/agents/scripts/validate-agent-tools.js +278 -0
  14. package/.github/skills/.env.example +100 -0
  15. package/.github/skills/.install-state.json +23 -0
  16. package/.github/skills/README.md +149 -0
  17. package/.github/skills/ai-multimodal/.env.example +204 -0
  18. package/.github/skills/ai-multimodal/scripts/.coverage +0 -0
  19. package/.github/skills/ai-multimodal/scripts/check_setup.py +305 -0
  20. package/.github/skills/ai-multimodal/scripts/document_converter.py +395 -0
  21. package/.github/skills/ai-multimodal/scripts/gemini_batch_process.py +1184 -0
  22. package/.github/skills/ai-multimodal/scripts/media_optimizer.py +506 -0
  23. package/.github/skills/ai-multimodal/scripts/requirements.txt +26 -0
  24. package/.github/skills/better-auth/scripts/.coverage +0 -0
  25. package/.github/skills/better-auth/scripts/better_auth_init.py +521 -0
  26. package/.github/skills/better-auth/scripts/requirements.txt +15 -0
  27. package/.github/skills/chrome-devtools/scripts/README.md +272 -0
  28. package/.github/skills/chrome-devtools/scripts/__tests__/selector.test.js +210 -0
  29. package/.github/skills/chrome-devtools/scripts/aria-snapshot.js +362 -0
  30. package/.github/skills/chrome-devtools/scripts/click.js +83 -0
  31. package/.github/skills/chrome-devtools/scripts/console.js +79 -0
  32. package/.github/skills/chrome-devtools/scripts/evaluate.js +53 -0
  33. package/.github/skills/chrome-devtools/scripts/fill.js +76 -0
  34. package/.github/skills/chrome-devtools/scripts/inject-auth.js +229 -0
  35. package/.github/skills/chrome-devtools/scripts/install-deps.sh +181 -0
  36. package/.github/skills/chrome-devtools/scripts/install.sh +83 -0
  37. package/.github/skills/chrome-devtools/scripts/lib/browser.js +318 -0
  38. package/.github/skills/chrome-devtools/scripts/lib/selector.js +178 -0
  39. package/.github/skills/chrome-devtools/scripts/navigate.js +54 -0
  40. package/.github/skills/chrome-devtools/scripts/network.js +106 -0
  41. package/.github/skills/chrome-devtools/scripts/package-lock.json +1589 -0
  42. package/.github/skills/chrome-devtools/scripts/package.json +16 -0
  43. package/.github/skills/chrome-devtools/scripts/performance.js +149 -0
  44. package/.github/skills/chrome-devtools/scripts/screenshot.js +198 -0
  45. package/.github/skills/chrome-devtools/scripts/select-ref.js +131 -0
  46. package/.github/skills/chrome-devtools/scripts/snapshot.js +135 -0
  47. package/.github/skills/common/README.md +120 -0
  48. package/.github/skills/common/api_key_helper.py +411 -0
  49. package/.github/skills/common/api_key_rotator.py +248 -0
  50. package/.github/skills/databases/scripts/.coverage +0 -0
  51. package/.github/skills/databases/scripts/db_backup.py +502 -0
  52. package/.github/skills/databases/scripts/db_migrate.py +425 -0
  53. package/.github/skills/databases/scripts/db_performance_check.py +456 -0
  54. package/.github/skills/databases/scripts/requirements.txt +20 -0
  55. package/.github/skills/debugging/scripts/find-polluter.sh +63 -0
  56. package/.github/skills/devops/.env.example +76 -0
  57. package/.github/skills/devops/scripts/cloudflare_deploy.py +269 -0
  58. package/.github/skills/devops/scripts/docker_optimize.py +331 -0
  59. package/.github/skills/devops/scripts/requirements.txt +20 -0
  60. package/.github/skills/docs-seeker/.env.example +15 -0
  61. package/.github/skills/docs-seeker/package.json +25 -0
  62. package/.github/skills/docs-seeker/scripts/analyze-llms-txt.js +211 -0
  63. package/.github/skills/docs-seeker/scripts/detect-topic.js +172 -0
  64. package/.github/skills/docs-seeker/scripts/fetch-docs.js +213 -0
  65. package/.github/skills/docs-seeker/scripts/utils/env-loader.js +94 -0
  66. package/.github/skills/document-skills/docx/LICENSE.txt +30 -0
  67. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  68. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  69. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  70. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  71. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  72. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  73. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  74. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  75. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  76. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  77. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  78. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  79. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  80. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  81. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  82. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  83. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  84. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  85. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  86. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  87. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  88. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  89. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  90. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  91. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  92. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  93. package/.github/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  94. package/.github/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  95. package/.github/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  96. package/.github/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  97. package/.github/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  98. package/.github/skills/document-skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
  99. package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
  100. package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
  101. package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
  102. package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
  103. package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
  104. package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  105. package/.github/skills/document-skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
  106. package/.github/skills/document-skills/docx/ooxml/scripts/pack.py +159 -0
  107. package/.github/skills/document-skills/docx/ooxml/scripts/unpack.py +29 -0
  108. package/.github/skills/document-skills/docx/ooxml/scripts/validate.py +69 -0
  109. package/.github/skills/document-skills/docx/ooxml/scripts/validation/__init__.py +15 -0
  110. package/.github/skills/document-skills/docx/ooxml/scripts/validation/base.py +951 -0
  111. package/.github/skills/document-skills/docx/ooxml/scripts/validation/docx.py +274 -0
  112. package/.github/skills/document-skills/docx/ooxml/scripts/validation/pptx.py +315 -0
  113. package/.github/skills/document-skills/docx/ooxml/scripts/validation/redlining.py +279 -0
  114. package/.github/skills/document-skills/docx/scripts/__init__.py +1 -0
  115. package/.github/skills/document-skills/docx/scripts/document.py +1276 -0
  116. package/.github/skills/document-skills/docx/scripts/templates/comments.xml +3 -0
  117. package/.github/skills/document-skills/docx/scripts/templates/commentsExtended.xml +3 -0
  118. package/.github/skills/document-skills/docx/scripts/templates/commentsExtensible.xml +3 -0
  119. package/.github/skills/document-skills/docx/scripts/templates/commentsIds.xml +3 -0
  120. package/.github/skills/document-skills/docx/scripts/templates/people.xml +3 -0
  121. package/.github/skills/document-skills/docx/scripts/utilities.py +374 -0
  122. package/.github/skills/document-skills/pdf/LICENSE.txt +30 -0
  123. package/.github/skills/document-skills/pdf/scripts/check_bounding_boxes.py +70 -0
  124. package/.github/skills/document-skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
  125. package/.github/skills/document-skills/pdf/scripts/check_fillable_fields.py +12 -0
  126. package/.github/skills/document-skills/pdf/scripts/convert_pdf_to_images.py +35 -0
  127. package/.github/skills/document-skills/pdf/scripts/create_validation_image.py +41 -0
  128. package/.github/skills/document-skills/pdf/scripts/extract_form_field_info.py +152 -0
  129. package/.github/skills/document-skills/pdf/scripts/fill_fillable_fields.py +114 -0
  130. package/.github/skills/document-skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
  131. package/.github/skills/document-skills/pptx/LICENSE.txt +30 -0
  132. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  133. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  134. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  135. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  136. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  137. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  138. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  139. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  140. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  141. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  142. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  143. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  144. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  145. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  146. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  147. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  148. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  149. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  150. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  151. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  152. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  153. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  154. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  155. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  156. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  157. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  158. package/.github/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  159. package/.github/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  160. package/.github/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  161. package/.github/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  162. package/.github/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  163. package/.github/skills/document-skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
  164. package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
  165. package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
  166. package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
  167. package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
  168. package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
  169. package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  170. package/.github/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
  171. package/.github/skills/document-skills/pptx/ooxml/scripts/pack.py +159 -0
  172. package/.github/skills/document-skills/pptx/ooxml/scripts/unpack.py +29 -0
  173. package/.github/skills/document-skills/pptx/ooxml/scripts/validate.py +69 -0
  174. package/.github/skills/document-skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
  175. package/.github/skills/document-skills/pptx/ooxml/scripts/validation/base.py +951 -0
  176. package/.github/skills/document-skills/pptx/ooxml/scripts/validation/docx.py +274 -0
  177. package/.github/skills/document-skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
  178. package/.github/skills/document-skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
  179. package/.github/skills/document-skills/pptx/scripts/html2pptx.js +979 -0
  180. package/.github/skills/document-skills/pptx/scripts/inventory.py +1020 -0
  181. package/.github/skills/document-skills/pptx/scripts/rearrange.py +231 -0
  182. package/.github/skills/document-skills/pptx/scripts/replace.py +385 -0
  183. package/.github/skills/document-skills/pptx/scripts/thumbnail.py +450 -0
  184. package/.github/skills/document-skills/xlsx/LICENSE.txt +30 -0
  185. package/.github/skills/document-skills/xlsx/recalc.py +190 -0
  186. package/.github/skills/install.ps1 +1220 -0
  187. package/.github/skills/install.sh +1032 -0
  188. package/.github/skills/markdown-novel-viewer/assets/directory-browser.css +215 -0
  189. package/.github/skills/markdown-novel-viewer/assets/favicon.png +0 -0
  190. package/.github/skills/markdown-novel-viewer/assets/novel-theme.css +818 -0
  191. package/.github/skills/markdown-novel-viewer/assets/reader.js +262 -0
  192. package/.github/skills/markdown-novel-viewer/assets/template.html +80 -0
  193. package/.github/skills/markdown-novel-viewer/package-lock.json +146 -0
  194. package/.github/skills/markdown-novel-viewer/package.json +15 -0
  195. package/.github/skills/markdown-novel-viewer/scripts/lib/http-server.cjs +434 -0
  196. package/.github/skills/markdown-novel-viewer/scripts/lib/markdown-renderer.cjs +272 -0
  197. package/.github/skills/markdown-novel-viewer/scripts/lib/plan-navigator.cjs +509 -0
  198. package/.github/skills/markdown-novel-viewer/scripts/lib/port-finder.cjs +48 -0
  199. package/.github/skills/markdown-novel-viewer/scripts/lib/process-mgr.cjs +150 -0
  200. package/.github/skills/markdown-novel-viewer/scripts/server.cjs +411 -0
  201. package/.github/skills/mcp-builder/LICENSE.txt +202 -0
  202. package/.github/skills/mcp-builder/scripts/connections.py +151 -0
  203. package/.github/skills/mcp-builder/scripts/evaluation.py +373 -0
  204. package/.github/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
  205. package/.github/skills/mcp-builder/scripts/requirements.txt +2 -0
  206. package/.github/skills/mcp-management/README.md +219 -0
  207. package/.github/skills/mcp-management/assets/tools.json +3146 -0
  208. package/.github/skills/mcp-management/package-lock.json +6 -0
  209. package/.github/skills/mcp-management/scripts/.env.example +10 -0
  210. package/.github/skills/mcp-management/scripts/cli.ts +195 -0
  211. package/.github/skills/mcp-management/scripts/dist/analyze-tools.js +70 -0
  212. package/.github/skills/mcp-management/scripts/dist/cli.js +160 -0
  213. package/.github/skills/mcp-management/scripts/dist/mcp-client.js +183 -0
  214. package/.github/skills/mcp-management/scripts/mcp-client.ts +230 -0
  215. package/.github/skills/mcp-management/scripts/package.json +20 -0
  216. package/.github/skills/media-processing/scripts/README.md +111 -0
  217. package/.github/skills/media-processing/scripts/batch-remove-background.sh +124 -0
  218. package/.github/skills/media-processing/scripts/batch_resize.py +342 -0
  219. package/.github/skills/media-processing/scripts/media_convert.py +311 -0
  220. package/.github/skills/media-processing/scripts/remove-background.sh +96 -0
  221. package/.github/skills/media-processing/scripts/remove-bg-node.js +158 -0
  222. package/.github/skills/media-processing/scripts/requirements.txt +24 -0
  223. package/.github/skills/media-processing/scripts/video_optimize.py +414 -0
  224. package/.github/skills/payment-integration/README.md +185 -0
  225. package/.github/skills/payment-integration/scripts/.env.example +20 -0
  226. package/.github/skills/payment-integration/scripts/checkout-helper.js +244 -0
  227. package/.github/skills/payment-integration/scripts/package.json +17 -0
  228. package/.github/skills/payment-integration/scripts/polar-webhook-verify.js +202 -0
  229. package/.github/skills/payment-integration/scripts/sepay-webhook-verify.js +193 -0
  230. package/.github/skills/payment-integration/scripts/test-scripts.js +237 -0
  231. package/.github/skills/plans-kanban/assets/dashboard-template.html +119 -0
  232. package/.github/skills/plans-kanban/assets/dashboard.css +1594 -0
  233. package/.github/skills/plans-kanban/assets/dashboard.js +596 -0
  234. package/.github/skills/plans-kanban/assets/favicon.png +0 -0
  235. package/.github/skills/plans-kanban/package-lock.json +123 -0
  236. package/.github/skills/plans-kanban/package.json +13 -0
  237. package/.github/skills/plans-kanban/scripts/lib/dashboard-renderer.cjs +884 -0
  238. package/.github/skills/plans-kanban/scripts/lib/http-server.cjs +310 -0
  239. package/.github/skills/plans-kanban/scripts/lib/plan-metadata-extractor.cjs +489 -0
  240. package/.github/skills/plans-kanban/scripts/lib/plan-parser.cjs +175 -0
  241. package/.github/skills/plans-kanban/scripts/lib/plan-scanner.cjs +272 -0
  242. package/.github/skills/plans-kanban/scripts/lib/port-finder.cjs +48 -0
  243. package/.github/skills/plans-kanban/scripts/lib/process-mgr.cjs +128 -0
  244. package/.github/skills/plans-kanban/scripts/server.cjs +260 -0
  245. package/.github/skills/repomix/scripts/.coverage +0 -0
  246. package/.github/skills/repomix/scripts/README.md +179 -0
  247. package/.github/skills/repomix/scripts/repomix_batch.py +455 -0
  248. package/.github/skills/repomix/scripts/repos.example.json +15 -0
  249. package/.github/skills/repomix/scripts/requirements.txt +15 -0
  250. package/.github/skills/scout-validation/scripts/lib/broad-pattern-detector.cjs +124 -0
  251. package/.github/skills/scout-validation/scripts/lib/path-checker.cjs +66 -0
  252. package/.github/skills/scout-validation/scripts/lib/schema-validator.cjs +45 -0
  253. package/.github/skills/scout-validation/scripts/package.json +11 -0
  254. package/.github/skills/scout-validation/scripts/validate-scout-output.cjs +219 -0
  255. package/.github/skills/scout-validation/test/broad-pattern-output.json +18 -0
  256. package/.github/skills/scout-validation/test/invalid-path-output.json +18 -0
  257. package/.github/skills/scout-validation/test/valid-scout-output.json +26 -0
  258. package/.github/skills/sequential-thinking/.env.example +8 -0
  259. package/.github/skills/sequential-thinking/README.md +183 -0
  260. package/.github/skills/sequential-thinking/package.json +31 -0
  261. package/.github/skills/sequential-thinking/scripts/format-thought.js +159 -0
  262. package/.github/skills/sequential-thinking/scripts/process-thought.js +236 -0
  263. package/.github/skills/shopify/README.md +66 -0
  264. package/.github/skills/shopify/scripts/.coverage +0 -0
  265. package/.github/skills/shopify/scripts/requirements.txt +19 -0
  266. package/.github/skills/shopify/scripts/shopify_init.py +423 -0
  267. package/.github/skills/skill-creator/LICENSE.txt +202 -0
  268. package/.github/skills/skill-creator/scripts/init_skill.py +303 -0
  269. package/.github/skills/skill-creator/scripts/package_skill.py +110 -0
  270. package/.github/skills/skill-creator/scripts/quick_validate.py +65 -0
  271. package/.github/skills/ui-styling/LICENSE.txt +202 -0
  272. package/.github/skills/ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  273. package/.github/skills/ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  274. package/.github/skills/ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  275. package/.github/skills/ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
  276. package/.github/skills/ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  277. package/.github/skills/ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
  278. package/.github/skills/ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
  279. package/.github/skills/ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  280. package/.github/skills/ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  281. package/.github/skills/ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  282. package/.github/skills/ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  283. package/.github/skills/ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  284. package/.github/skills/ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  285. package/.github/skills/ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  286. package/.github/skills/ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
  287. package/.github/skills/ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
  288. package/.github/skills/ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
  289. package/.github/skills/ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
  290. package/.github/skills/ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
  291. package/.github/skills/ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
  292. package/.github/skills/ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
  293. package/.github/skills/ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
  294. package/.github/skills/ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
  295. package/.github/skills/ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  296. package/.github/skills/ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  297. package/.github/skills/ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  298. package/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  299. package/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  300. package/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  301. package/.github/skills/ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  302. package/.github/skills/ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  303. package/.github/skills/ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  304. package/.github/skills/ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  305. package/.github/skills/ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  306. package/.github/skills/ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  307. package/.github/skills/ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  308. package/.github/skills/ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  309. package/.github/skills/ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
  310. package/.github/skills/ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
  311. package/.github/skills/ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  312. package/.github/skills/ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  313. package/.github/skills/ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  314. package/.github/skills/ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
  315. package/.github/skills/ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
  316. package/.github/skills/ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
  317. package/.github/skills/ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  318. package/.github/skills/ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  319. package/.github/skills/ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
  320. package/.github/skills/ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  321. package/.github/skills/ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
  322. package/.github/skills/ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
  323. package/.github/skills/ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
  324. package/.github/skills/ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
  325. package/.github/skills/ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
  326. package/.github/skills/ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
  327. package/.github/skills/ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  328. package/.github/skills/ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  329. package/.github/skills/ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
  330. package/.github/skills/ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
  331. package/.github/skills/ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
  332. package/.github/skills/ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  333. package/.github/skills/ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
  334. package/.github/skills/ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
  335. package/.github/skills/ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  336. package/.github/skills/ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  337. package/.github/skills/ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
  338. package/.github/skills/ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  339. package/.github/skills/ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
  340. package/.github/skills/ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  341. package/.github/skills/ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  342. package/.github/skills/ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
  343. package/.github/skills/ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
  344. package/.github/skills/ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
  345. package/.github/skills/ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
  346. package/.github/skills/ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
  347. package/.github/skills/ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  348. package/.github/skills/ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
  349. package/.github/skills/ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
  350. package/.github/skills/ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
  351. package/.github/skills/ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
  352. package/.github/skills/ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  353. package/.github/skills/ui-styling/scripts/.coverage +0 -0
  354. package/.github/skills/ui-styling/scripts/requirements.txt +17 -0
  355. package/.github/skills/ui-styling/scripts/shadcn_add.py +292 -0
  356. package/.github/skills/ui-styling/scripts/tailwind_config_gen.py +456 -0
  357. package/.github/skills/ui-ux-pro-max/data/charts.csv +26 -0
  358. package/.github/skills/ui-ux-pro-max/data/colors.csv +97 -0
  359. package/.github/skills/ui-ux-pro-max/data/landing.csv +31 -0
  360. package/.github/skills/ui-ux-pro-max/data/products.csv +97 -0
  361. package/.github/skills/ui-ux-pro-max/data/prompts.csv +24 -0
  362. package/.github/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  363. package/.github/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +51 -0
  364. package/.github/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  365. package/.github/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  366. package/.github/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  367. package/.github/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  368. package/.github/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  369. package/.github/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  370. package/.github/skills/ui-ux-pro-max/data/styles.csv +59 -0
  371. package/.github/skills/ui-ux-pro-max/data/typography.csv +58 -0
  372. package/.github/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  373. package/.github/skills/ui-ux-pro-max/scripts/core.py +236 -0
  374. package/.github/skills/ui-ux-pro-max/scripts/search.py +76 -0
  375. package/.github/skills/web-frameworks/scripts/.coverage +0 -0
  376. package/.github/skills/web-frameworks/scripts/__init__.py +0 -0
  377. package/.github/skills/web-frameworks/scripts/nextjs_init.py +547 -0
  378. package/.github/skills/web-frameworks/scripts/requirements.txt +16 -0
  379. package/.github/skills/web-frameworks/scripts/turborepo_migrate.py +394 -0
  380. package/dist/config/constants.d.ts +3 -0
  381. package/dist/config/constants.d.ts.map +1 -1
  382. package/dist/config/constants.js +5 -1
  383. package/dist/config/constants.js.map +1 -1
  384. package/dist/domains/github/github-client.d.ts +5 -0
  385. package/dist/domains/github/github-client.d.ts.map +1 -1
  386. package/dist/domains/github/github-client.js +44 -0
  387. package/dist/domains/github/github-client.js.map +1 -1
  388. package/dist/utils/downloader.d.ts +3 -1
  389. package/dist/utils/downloader.d.ts.map +1 -1
  390. package/dist/utils/downloader.js +48 -11
  391. package/dist/utils/downloader.js.map +1 -1
  392. package/dist/utils/scaffolder.d.ts.map +1 -1
  393. package/dist/utils/scaffolder.js +2 -0
  394. package/dist/utils/scaffolder.js.map +1 -1
  395. package/package.json +3 -1
@@ -0,0 +1,96 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Agent Frontmatter Validator
4
+ * Validates YAML frontmatter against JSON Schema
5
+ *
6
+ * Usage:
7
+ * node validate-agent-frontmatter.js
8
+ * node validate-agent-frontmatter.js --verbose
9
+ */
10
+
11
+ import { readFileSync, readdirSync } from 'fs';
12
+ import { resolve, dirname, join } from 'path';
13
+ import { fileURLToPath } from 'url';
14
+ import Ajv from 'ajv';
15
+ import { parseFrontmatter } from './lib/parse-agent-file.js';
16
+
17
+ const __filename = fileURLToPath(import.meta.url);
18
+ const __dirname = dirname(__filename);
19
+
20
+ // Load schema
21
+ const schema = JSON.parse(
22
+ readFileSync(join(__dirname, 'schemas/agent-frontmatter.schema.json'), 'utf8')
23
+ );
24
+
25
+ // Initialize validator
26
+ const ajv = new Ajv({ allErrors: true });
27
+ const validate = ajv.compile(schema);
28
+
29
+ function validateAgentFile(filePath, verbose) {
30
+ const content = readFileSync(filePath, 'utf8');
31
+ const frontmatter = parseFrontmatter(content);
32
+
33
+ if (!frontmatter) {
34
+ return { file: filePath, skipped: true, reason: 'No frontmatter' };
35
+ }
36
+
37
+ const valid = validate(frontmatter);
38
+
39
+ return {
40
+ file: filePath,
41
+ agent: frontmatter.name || filePath.split(/[/\\]/).pop().replace('.agent.md', ''),
42
+ valid,
43
+ errors: valid ? [] : validate.errors.map(e => ({
44
+ path: e.instancePath || '/',
45
+ message: e.message,
46
+ params: e.params
47
+ }))
48
+ };
49
+ }
50
+
51
+ async function main() {
52
+ const args = process.argv.slice(2);
53
+ const verbose = args.includes('--verbose');
54
+
55
+ const agentsDir = resolve(__dirname, '..');
56
+ const files = readdirSync(agentsDir)
57
+ .filter(f => f.endsWith('.agent.md'))
58
+ .map(f => join(agentsDir, f));
59
+
60
+ if (files.length === 0) {
61
+ console.log('No agent files found');
62
+ process.exit(0);
63
+ }
64
+
65
+ console.log(`Validating frontmatter in ${files.length} file(s)...\n`);
66
+
67
+ let hasErrors = false;
68
+ for (const file of files) {
69
+ const result = validateAgentFile(file, verbose);
70
+
71
+ if (result.skipped) {
72
+ console.log(`⚠️ ${file.split(/[/\\]/).pop()} - skipped (${result.reason})`);
73
+ continue;
74
+ }
75
+
76
+ if (result.valid) {
77
+ console.log(`✅ ${result.agent}`);
78
+ } else {
79
+ console.log(`❌ ${result.agent}`);
80
+ hasErrors = true;
81
+ for (const err of result.errors) {
82
+ console.log(` • ${err.path}: ${err.message}`);
83
+ }
84
+ }
85
+ }
86
+
87
+ console.log('\n---');
88
+ process.exit(hasErrors ? 1 : 0);
89
+ }
90
+
91
+ main().catch(err => {
92
+ console.error('Error:', err.message);
93
+ process.exit(1);
94
+ });
95
+
96
+ export { validateAgentFile };
@@ -0,0 +1,169 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Agent Handoffs Validator
4
+ * Validates cross-references between agents
5
+ *
6
+ * Usage:
7
+ * node validate-agent-handoffs.js
8
+ * node validate-agent-handoffs.js --verbose
9
+ */
10
+
11
+ import { readFileSync, readdirSync } from 'fs';
12
+ import { resolve, dirname, join } from 'path';
13
+ import { fileURLToPath } from 'url';
14
+ import { parseFrontmatter } from './lib/parse-agent-file.js';
15
+
16
+ const __filename = fileURLToPath(import.meta.url);
17
+ const __dirname = dirname(__filename);
18
+
19
+ function buildAgentMap(agentsDir) {
20
+ const files = readdirSync(agentsDir).filter(f => f.endsWith('.agent.md'));
21
+ const map = new Map();
22
+
23
+ for (const file of files) {
24
+ const name = file.replace('.agent.md', '');
25
+ const content = readFileSync(join(agentsDir, file), 'utf8');
26
+ const fm = parseFrontmatter(content);
27
+
28
+ if (!fm) continue; // Skip files without frontmatter
29
+
30
+ map.set(name, {
31
+ file,
32
+ name: fm?.name || name,
33
+ handoffs: fm?.handoffs || []
34
+ });
35
+ }
36
+ return map;
37
+ }
38
+
39
+ function detectCircular(agentMap, startAgent, visited = new Set(), path = []) {
40
+ if (visited.has(startAgent)) {
41
+ return [...path, startAgent]; // Circular detected
42
+ }
43
+
44
+ const agent = agentMap.get(startAgent);
45
+ if (!agent) return null;
46
+
47
+ visited.add(startAgent);
48
+ path.push(startAgent);
49
+
50
+ for (const handoff of agent.handoffs) {
51
+ const circular = detectCircular(agentMap, handoff.agent, new Set(visited), [...path]);
52
+ if (circular) return circular;
53
+ }
54
+
55
+ return null;
56
+ }
57
+
58
+ function validateHandoffs(agentMap, verbose) {
59
+ const results = [];
60
+
61
+ for (const [name, agent] of agentMap) {
62
+ const errors = [];
63
+ const warnings = [];
64
+
65
+ for (const handoff of agent.handoffs) {
66
+ const targetName = handoff.agent;
67
+
68
+ // Check if target exists
69
+ if (!agentMap.has(targetName)) {
70
+ errors.push({
71
+ type: 'missing',
72
+ message: `Agent '${targetName}' not found`,
73
+ handoff: handoff.label
74
+ });
75
+ continue;
76
+ }
77
+
78
+ // Check self-reference
79
+ if (targetName === name) {
80
+ warnings.push({
81
+ type: 'self-reference',
82
+ message: `Hands off to itself`,
83
+ handoff: handoff.label
84
+ });
85
+ }
86
+ }
87
+
88
+ // Check circular references
89
+ const circular = detectCircular(agentMap, name);
90
+ if (circular && circular.length > 2) {
91
+ warnings.push({
92
+ type: 'circular',
93
+ message: `Circular: ${circular.join(' → ')}`,
94
+ handoff: 'chain'
95
+ });
96
+ }
97
+
98
+ results.push({
99
+ agent: agent.name,
100
+ file: agent.file,
101
+ handoffCount: agent.handoffs.length,
102
+ errors,
103
+ warnings,
104
+ valid: errors.length === 0
105
+ });
106
+ }
107
+
108
+ return results;
109
+ }
110
+
111
+ async function main() {
112
+ const args = process.argv.slice(2);
113
+ const verbose = args.includes('--verbose');
114
+
115
+ const agentsDir = resolve(__dirname, '..');
116
+ const agentMap = buildAgentMap(agentsDir);
117
+
118
+ if (agentMap.size === 0) {
119
+ console.log('No agent files found');
120
+ process.exit(0);
121
+ }
122
+
123
+ console.log(`Validating handoffs in ${agentMap.size} agent(s)...\n`);
124
+
125
+ const results = validateHandoffs(agentMap, verbose);
126
+
127
+ let hasErrors = false;
128
+ for (const result of results) {
129
+ if (result.handoffCount === 0) {
130
+ if (verbose) console.log(`⚪ ${result.agent} (no handoffs)`);
131
+ continue;
132
+ }
133
+
134
+ if (result.valid && result.warnings.length === 0) {
135
+ console.log(`✅ ${result.agent} (${result.handoffCount} handoffs)`);
136
+ } else if (result.valid) {
137
+ console.log(`⚠️ ${result.agent}`);
138
+ for (const w of result.warnings) {
139
+ console.log(` ⚠ ${w.message}`);
140
+ }
141
+ } else {
142
+ console.log(`❌ ${result.agent}`);
143
+ hasErrors = true;
144
+ for (const e of result.errors) {
145
+ console.log(` • ${e.handoff}: ${e.message}`);
146
+ }
147
+ for (const w of result.warnings) {
148
+ console.log(` ⚠ ${w.message}`);
149
+ }
150
+ }
151
+ }
152
+
153
+ console.log('\n---');
154
+ const errorCount = results.filter(r => !r.valid).length;
155
+ if (errorCount > 0) {
156
+ console.log(`❌ ${errorCount} agent(s) have invalid handoffs`);
157
+ process.exit(1);
158
+ } else {
159
+ console.log('✅ All handoff references valid');
160
+ process.exit(0);
161
+ }
162
+ }
163
+
164
+ main().catch(err => {
165
+ console.error('Error:', err.message);
166
+ process.exit(1);
167
+ });
168
+
169
+ export { buildAgentMap, validateHandoffs };
@@ -0,0 +1,157 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Agent Output Validator
4
+ *
5
+ * Validates agent JSON output against schema with path pattern enforcement.
6
+ *
7
+ * Usage:
8
+ * echo '{"agent":"scout",...}' | node validate-agent-output.js
9
+ * node validate-agent-output.js --input output.json
10
+ * node validate-agent-output.js --input output.json --verbose
11
+ *
12
+ * Exit codes:
13
+ * 0 - Validation passed
14
+ * 1 - Validation failed
15
+ */
16
+
17
+ import Ajv from 'ajv';
18
+ import { readFileSync } from 'fs';
19
+ import { resolve, dirname } from 'path';
20
+ import { fileURLToPath } from 'url';
21
+
22
+ const __filename = fileURLToPath(import.meta.url);
23
+ const __dirname = dirname(__filename);
24
+
25
+ // Parse CLI arguments
26
+ function parseArgs(args) {
27
+ const parsed = { input: null, verbose: false };
28
+
29
+ for (let i = 0; i < args.length; i++) {
30
+ if (args[i] === '--input' && args[i + 1]) {
31
+ parsed.input = args[i + 1];
32
+ i++;
33
+ } else if (args[i] === '--verbose') {
34
+ parsed.verbose = true;
35
+ }
36
+ }
37
+
38
+ return parsed;
39
+ }
40
+
41
+ // Read from stdin
42
+ async function readStdin() {
43
+ return new Promise((resolve, reject) => {
44
+ let data = '';
45
+
46
+ process.stdin.setEncoding('utf8');
47
+ process.stdin.on('data', chunk => data += chunk);
48
+ process.stdin.on('end', () => resolve(data));
49
+ process.stdin.on('error', reject);
50
+ });
51
+ }
52
+
53
+ // Path patterns for each agent
54
+ const pathPatterns = {
55
+ scout: /^(plans\/reports\/scout-|\.csvibe\/state\/scout-).*$/,
56
+ brainstorm: /^(plans\/reports\/brainstorm-|\.csvibe\/state\/approaches).*$/
57
+ };
58
+
59
+ // Main validation function
60
+ async function validate() {
61
+ const args = parseArgs(process.argv.slice(2));
62
+
63
+ try {
64
+ // Read input
65
+ const input = args.input
66
+ ? readFileSync(args.input, 'utf8')
67
+ : await readStdin();
68
+
69
+ if (!input || !input.trim()) {
70
+ console.error('Error: No input provided');
71
+ process.exit(1);
72
+ }
73
+
74
+ // Parse JSON
75
+ let output;
76
+ try {
77
+ output = JSON.parse(input);
78
+ } catch (err) {
79
+ console.error('Error: Invalid JSON');
80
+ if (args.verbose) console.error(err.message);
81
+ process.exit(1);
82
+ }
83
+
84
+ // Extract agent name
85
+ const agent = output.agent;
86
+ if (!agent) {
87
+ console.error('Error: Missing "agent" field in output');
88
+ process.exit(1);
89
+ }
90
+
91
+ // Load schema
92
+ const schemaPath = resolve(__dirname, `../schemas/${agent}-output.schema.json`);
93
+ let schema;
94
+ try {
95
+ schema = JSON.parse(readFileSync(schemaPath, 'utf8'));
96
+ } catch (err) {
97
+ console.error(`Error: Failed to load schema for agent "${agent}"`);
98
+ if (args.verbose) console.error(err.message);
99
+ process.exit(1);
100
+ }
101
+
102
+ // Load base schema if needed (for $ref support)
103
+ const baseSchemaPath = resolve(__dirname, '../schemas/base-output.schema.json');
104
+ const baseSchema = JSON.parse(readFileSync(baseSchemaPath, 'utf8'));
105
+
106
+ // Validate against schema
107
+ const ajv = new Ajv({
108
+ strict: false,
109
+ validateSchema: false,
110
+ allowUnionTypes: true
111
+ });
112
+
113
+ // Add base schema to Ajv instance
114
+ ajv.addSchema(baseSchema);
115
+
116
+ const validateSchema = ajv.compile(schema);
117
+
118
+ if (!validateSchema(output)) {
119
+ console.error('Schema validation failed:');
120
+ console.error(JSON.stringify(validateSchema.errors, null, 2));
121
+ process.exit(1);
122
+ }
123
+
124
+ // Extra path validation for artifacts
125
+ if (output.artifacts && Array.isArray(output.artifacts)) {
126
+ const pattern = pathPatterns[agent];
127
+
128
+ if (!pattern) {
129
+ console.error(`Warning: No path pattern defined for agent "${agent}"`);
130
+ } else {
131
+ for (const artifact of output.artifacts) {
132
+ if (artifact.path && !pattern.test(artifact.path)) {
133
+ console.error(`Invalid artifact path: ${artifact.path}`);
134
+ console.error(`Agent "${agent}" can only write to patterns matching: ${pattern}`);
135
+ process.exit(1);
136
+ }
137
+ }
138
+ }
139
+ }
140
+
141
+ // Success
142
+ console.log('Validation passed');
143
+ if (args.verbose) {
144
+ console.log(`Agent: ${agent}`);
145
+ console.log(`Artifacts: ${output.artifacts?.length || 0}`);
146
+ }
147
+ process.exit(0);
148
+
149
+ } catch (err) {
150
+ console.error('Unexpected error:', err.message);
151
+ if (args.verbose) console.error(err.stack);
152
+ process.exit(1);
153
+ }
154
+ }
155
+
156
+ // Run validation
157
+ validate();
@@ -0,0 +1,278 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Agent Tools Validator
4
+ *
5
+ * Validates that all tools specified in agent .agent.md files are valid
6
+ * VSCode Copilot tools.
7
+ *
8
+ * Usage:
9
+ * node validate-agent-tools.js
10
+ * node validate-agent-tools.js --verbose
11
+ * node validate-agent-tools.js --fix (show suggestions)
12
+ *
13
+ * Exit codes:
14
+ * 0 - All tools valid
15
+ * 1 - Invalid tools found
16
+ */
17
+
18
+ import { readFileSync, readdirSync } from 'fs';
19
+ import { resolve, dirname, join } from 'path';
20
+ import { fileURLToPath } from 'url';
21
+ import { parseFrontmatter } from './lib/parse-agent-file.js';
22
+
23
+ const __filename = fileURLToPath(import.meta.url);
24
+ const __dirname = dirname(__filename);
25
+
26
+ // Valid VSCode Copilot Chat tools (as of 2026-01-18)
27
+ // Source: github.copilot-chat extension package.json (languageModelTools)
28
+ // Auto-updated from github.copilot-chat-0.37.2026011603
29
+ const VALID_TOOLS = {
30
+ // Tool sets (groups) - these expand to multiple tools
31
+ toolSets: ["edit","search","read","web"],
32
+
33
+ // Namespaced tools (namespace/tool format)
34
+ namespaced: [
35
+ "edit/createFile",
36
+ "edit/createDirectory",
37
+ "edit/editFiles",
38
+ "edit/editNotebook",
39
+ "edit/insertEdit",
40
+ "edit/replaceString",
41
+ "edit/multiReplaceString",
42
+ "edit/applyPatch",
43
+ "search/fileSearch",
44
+ "search/textSearch",
45
+ "search/usages",
46
+ "search/codebase",
47
+ "search/symbols",
48
+ "read/readFile",
49
+ "read/listDirectory",
50
+ "web/fetch",
51
+ "web/githubRepo"
52
+ ],
53
+
54
+ // Standalone tools (from package.json toolReferenceName)
55
+ standalone: [
56
+ "codebase",
57
+ "searchSubagent",
58
+ "symbols",
59
+ "usages",
60
+ "vscodeAPI",
61
+ "fileSearch",
62
+ "textSearch",
63
+ "applyPatch",
64
+ "readFile",
65
+ "listDirectory",
66
+ "problems",
67
+ "changes",
68
+ "testFailure",
69
+ "updateUserPreferences",
70
+ "newWorkspace",
71
+ "getProjectSetupInfo",
72
+ "installExtension",
73
+ "runCommand",
74
+ "createJupyterNotebook",
75
+ "insertEdit",
76
+ "createFile",
77
+ "createDirectory",
78
+ "openSimpleBrowser",
79
+ "replaceString",
80
+ "multiReplaceString",
81
+ "editNotebook",
82
+ "runNotebookCell",
83
+ "getNotebookSummary",
84
+ "readNotebookCellOutput",
85
+ "fetch",
86
+ "findTestFiles",
87
+ "docInfo",
88
+ "searchResults",
89
+ "githubRepo",
90
+ "memory",
91
+ "editFiles"
92
+ ],
93
+
94
+ // Deprecated/renamed tools (for helpful error messages)
95
+ deprecated: {
96
+ "glob": "search/fileSearch",
97
+ "grep": "search/textSearch"
98
+ }
99
+ };
100
+
101
+ // Build flat set of all valid tools
102
+ function buildValidToolSet() {
103
+ const valid = new Set();
104
+
105
+ // Add tool sets
106
+ VALID_TOOLS.toolSets.forEach(ts => valid.add(ts));
107
+
108
+ // Add namespaced tools
109
+ Object.keys(VALID_TOOLS).forEach(key => {
110
+ if (Array.isArray(VALID_TOOLS[key])) {
111
+ VALID_TOOLS[key].forEach(tool => valid.add(tool));
112
+ }
113
+ });
114
+
115
+ return valid;
116
+ }
117
+
118
+ // Validate a single agent file
119
+ function validateAgentFile(filePath, validTools, verbose) {
120
+ const content = readFileSync(filePath, 'utf8');
121
+ const frontmatter = parseFrontmatter(content);
122
+
123
+ if (!frontmatter) {
124
+ return { file: filePath, error: 'No frontmatter found' };
125
+ }
126
+
127
+ const agentName = frontmatter.name || 'unknown';
128
+ const tools = frontmatter.tools || [];
129
+
130
+ const errors = [];
131
+ const warnings = [];
132
+
133
+ for (const tool of tools) {
134
+ if (!validTools.has(tool)) {
135
+ // Check if it's a deprecated tool
136
+ if (VALID_TOOLS.deprecated[tool]) {
137
+ errors.push({
138
+ tool,
139
+ message: `Tool '${tool}' has been renamed to '${VALID_TOOLS.deprecated[tool]}'`,
140
+ suggestion: VALID_TOOLS.deprecated[tool]
141
+ });
142
+ } else {
143
+ errors.push({
144
+ tool,
145
+ message: `Unknown tool '${tool}'`,
146
+ suggestion: findSimilarTool(tool, validTools)
147
+ });
148
+ }
149
+ }
150
+ }
151
+
152
+ return {
153
+ file: filePath,
154
+ agent: agentName,
155
+ tools,
156
+ errors,
157
+ warnings,
158
+ valid: errors.length === 0
159
+ };
160
+ }
161
+
162
+ // Find similar tool name (simple Levenshtein-like matching)
163
+ function findSimilarTool(tool, validTools) {
164
+ const toolLower = tool.toLowerCase();
165
+
166
+ for (const valid of validTools) {
167
+ if (valid.toLowerCase().includes(toolLower) || toolLower.includes(valid.toLowerCase())) {
168
+ return valid;
169
+ }
170
+ }
171
+
172
+ // Check if adding namespace helps
173
+ const namespaces = ['edit', 'search', 'read', 'web'];
174
+ for (const ns of namespaces) {
175
+ const namespaced = `${ns}/${tool}`;
176
+ if (validTools.has(namespaced)) {
177
+ return namespaced;
178
+ }
179
+ }
180
+
181
+ return null;
182
+ }
183
+
184
+ // Main function
185
+ async function main() {
186
+ const args = process.argv.slice(2);
187
+ const verbose = args.includes('--verbose');
188
+ const showFix = args.includes('--fix');
189
+
190
+ const validTools = buildValidToolSet();
191
+ const agentsDir = resolve(__dirname, '..');
192
+
193
+ // Find all .agent.md files
194
+ const files = readdirSync(agentsDir)
195
+ .filter(f => f.endsWith('.agent.md'))
196
+ .map(f => join(agentsDir, f));
197
+
198
+ if (files.length === 0) {
199
+ console.log('No agent files found in', agentsDir);
200
+ process.exit(0);
201
+ }
202
+
203
+ console.log(`Validating ${files.length} agent file(s)...\n`);
204
+
205
+ let hasErrors = false;
206
+ const results = [];
207
+
208
+ for (const file of files) {
209
+ const result = validateAgentFile(file, validTools, verbose);
210
+ results.push(result);
211
+
212
+ if (result.error) {
213
+ // Skip files without frontmatter (they're not VSCode agent files)
214
+ if (result.error === 'No frontmatter found') {
215
+ console.log(`\u26A0\uFE0F ${result.file.split(/[/\\]/).pop()} - skipped (no YAML frontmatter)`);
216
+ } else {
217
+ console.log(`\u274C ${result.file}`);
218
+ console.log(` Error: ${result.error}`);
219
+ hasErrors = true;
220
+ }
221
+ console.log('');
222
+ continue;
223
+ }
224
+
225
+ if (result.valid) {
226
+ console.log(`\u2705 ${result.agent} (${result.tools.length} tools)`);
227
+ if (verbose) {
228
+ console.log(` Tools: ${result.tools.join(', ')}`);
229
+ }
230
+ } else {
231
+ console.log(`\u274C ${result.agent}`);
232
+ hasErrors = true;
233
+
234
+ for (const err of result.errors) {
235
+ console.log(` \u2022 ${err.message}`);
236
+ if (showFix && err.suggestion) {
237
+ console.log(` \u2192 Suggestion: use '${err.suggestion}'`);
238
+ }
239
+ }
240
+ }
241
+ console.log('');
242
+ }
243
+
244
+ // Summary
245
+ console.log('---');
246
+ // Only count files that have frontmatter (actual VSCode agent files)
247
+ const agentFiles = results.filter(r => !r.error || r.error !== 'No frontmatter found');
248
+ const skippedCount = results.length - agentFiles.length;
249
+ const validCount = agentFiles.filter(r => r.valid).length;
250
+ const invalidCount = agentFiles.filter(r => !r.valid && r.errors?.length > 0).length;
251
+
252
+ if (skippedCount > 0) {
253
+ console.log(`Skipped ${skippedCount} file(s) without YAML frontmatter`);
254
+ }
255
+
256
+ if (invalidCount > 0) {
257
+ console.log(`\u274C ${invalidCount}/${agentFiles.length} agent(s) have invalid tools`);
258
+ if (!showFix) {
259
+ console.log(' Run with --fix to see suggestions');
260
+ }
261
+ process.exit(1);
262
+ } else if (agentFiles.length > 0) {
263
+ console.log(`\u2705 All ${validCount} agent(s) have valid tools`);
264
+ process.exit(0);
265
+ } else {
266
+ console.log('No valid VSCode agent files found (with YAML frontmatter)');
267
+ process.exit(0);
268
+ }
269
+ }
270
+
271
+ // Export for testing
272
+ export { VALID_TOOLS, buildValidToolSet };
273
+
274
+ // Run
275
+ main().catch(err => {
276
+ console.error('Error:', err.message);
277
+ process.exit(1);
278
+ });