workspace-architect 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/.env.example +1 -0
  2. package/.gitattributes +1 -0
  3. package/.github/workflows/manual-publish.yml +36 -0
  4. package/.github/workflows/sync-and-publish.yml +58 -0
  5. package/.release-it.json +20 -0
  6. package/CHANGELOG.md +43 -0
  7. package/README.md +62 -0
  8. package/assets/chatmodes/4.1-Beast.chatmode.md +152 -0
  9. package/assets/chatmodes/Thinking-Beast-Mode.chatmode.md +337 -0
  10. package/assets/chatmodes/Ultimate-Transparent-Thinking-Beast-Mode.chatmode.md +644 -0
  11. package/assets/chatmodes/accessibility.chatmode.md +298 -0
  12. package/assets/chatmodes/address-comments.chatmode.md +59 -0
  13. package/assets/chatmodes/aem-frontend-specialist.chatmode.md +385 -0
  14. package/assets/chatmodes/api-architect.chatmode.md +40 -0
  15. package/assets/chatmodes/atlassian-requirements-to-jira.chatmode.md +444 -0
  16. package/assets/chatmodes/azure-logic-apps-expert.chatmode.md +100 -0
  17. package/assets/chatmodes/azure-principal-architect.chatmode.md +58 -0
  18. package/assets/chatmodes/azure-saas-architect.chatmode.md +118 -0
  19. package/assets/chatmodes/azure-verified-modules-bicep.chatmode.md +44 -0
  20. package/assets/chatmodes/azure-verified-modules-terraform.chatmode.md +58 -0
  21. package/assets/chatmodes/bicep-implement.chatmode.md +40 -0
  22. package/assets/chatmodes/bicep-plan.chatmode.md +112 -0
  23. package/assets/chatmodes/blueprint-mode-codex.chatmode.md +110 -0
  24. package/assets/chatmodes/blueprint-mode.chatmode.md +171 -0
  25. package/assets/chatmodes/clojure-interactive-programming.chatmode.md +174 -0
  26. package/assets/chatmodes/code-tour.chatmode.md +205 -0
  27. package/assets/chatmodes/critical-thinking.chatmode.md +23 -0
  28. package/assets/chatmodes/csharp-dotnet-janitor.chatmode.md +83 -0
  29. package/assets/chatmodes/csharp-mcp-expert.chatmode.md +69 -0
  30. package/assets/chatmodes/debug.chatmode.md +79 -0
  31. package/assets/chatmodes/declarative-agents-architect.chatmode.md +76 -0
  32. package/assets/chatmodes/demonstrate-understanding.chatmode.md +60 -0
  33. package/assets/chatmodes/dotnet-upgrade.chatmode.md +222 -0
  34. package/assets/chatmodes/drupal-expert.chatmode.md +687 -0
  35. package/assets/chatmodes/electron-angular-native.chatmode.md +285 -0
  36. package/assets/chatmodes/expert-cpp-software-engineer.chatmode.md +27 -0
  37. package/assets/chatmodes/expert-dotnet-software-engineer.chatmode.md +22 -0
  38. package/assets/chatmodes/expert-nextjs-developer.chatmode.md +477 -0
  39. package/assets/chatmodes/expert-react-frontend-engineer.chatmode.md +738 -0
  40. package/assets/chatmodes/gilfoyle.chatmode.md +66 -0
  41. package/assets/chatmodes/go-mcp-expert.chatmode.md +122 -0
  42. package/assets/chatmodes/gpt-5-beast-mode.chatmode.md +109 -0
  43. package/assets/chatmodes/hlbpa.chatmode.md +232 -0
  44. package/assets/chatmodes/implementation-plan.chatmode.md +159 -0
  45. package/assets/chatmodes/janitor.chatmode.md +89 -0
  46. package/assets/chatmodes/java-mcp-expert.chatmode.md +325 -0
  47. package/assets/chatmodes/kotlin-mcp-expert.chatmode.md +181 -0
  48. package/assets/chatmodes/kusto-assistant.chatmode.md +143 -0
  49. package/assets/chatmodes/laravel-expert-agent.chatmode.md +628 -0
  50. package/assets/chatmodes/mentor.chatmode.md +32 -0
  51. package/assets/chatmodes/meta-agentic-project-scaffold.chatmode.md +15 -0
  52. package/assets/chatmodes/microsoft-agent-framework-dotnet.chatmode.md +62 -0
  53. package/assets/chatmodes/microsoft-agent-framework-python.chatmode.md +62 -0
  54. package/assets/chatmodes/microsoft-study-mode.chatmode.md +32 -0
  55. package/assets/chatmodes/microsoft_learn_contributor.chatmode.md +388 -0
  56. package/assets/chatmodes/ms-sql-dba.chatmode.md +25 -0
  57. package/assets/chatmodes/php-mcp-expert.chatmode.md +498 -0
  58. package/assets/chatmodes/pimcore-expert.chatmode.md +869 -0
  59. package/assets/chatmodes/plan.chatmode.md +114 -0
  60. package/assets/chatmodes/planner.chatmode.md +14 -0
  61. package/assets/chatmodes/playwright-tester.chatmode.md +13 -0
  62. package/assets/chatmodes/postgresql-dba.chatmode.md +17 -0
  63. package/assets/chatmodes/power-bi-data-modeling-expert.chatmode.md +319 -0
  64. package/assets/chatmodes/power-bi-dax-expert.chatmode.md +334 -0
  65. package/assets/chatmodes/power-bi-performance-expert.chatmode.md +533 -0
  66. package/assets/chatmodes/power-bi-visualization-expert.chatmode.md +549 -0
  67. package/assets/chatmodes/power-platform-expert.chatmode.md +116 -0
  68. package/assets/chatmodes/power-platform-mcp-integration-expert.chatmode.md +149 -0
  69. package/assets/chatmodes/prd.chatmode.md +201 -0
  70. package/assets/chatmodes/principal-software-engineer.chatmode.md +41 -0
  71. package/assets/chatmodes/prompt-builder.chatmode.md +352 -0
  72. package/assets/chatmodes/prompt-engineer.chatmode.md +72 -0
  73. package/assets/chatmodes/python-mcp-expert.chatmode.md +99 -0
  74. package/assets/chatmodes/refine-issue.chatmode.md +34 -0
  75. package/assets/chatmodes/research-technical-spike.chatmode.md +169 -0
  76. package/assets/chatmodes/ruby-mcp-expert.chatmode.md +346 -0
  77. package/assets/chatmodes/rust-gpt-4.1-beast-mode.chatmode.md +197 -0
  78. package/assets/chatmodes/rust-mcp-expert.chatmode.md +465 -0
  79. package/assets/chatmodes/search-ai-optimization-expert.chatmode.md +227 -0
  80. package/assets/chatmodes/semantic-kernel-dotnet.chatmode.md +31 -0
  81. package/assets/chatmodes/semantic-kernel-python.chatmode.md +28 -0
  82. package/assets/chatmodes/shopify-expert.chatmode.md +681 -0
  83. package/assets/chatmodes/simple-app-idea-generator.chatmode.md +134 -0
  84. package/assets/chatmodes/software-engineer-agent-v1.chatmode.md +164 -0
  85. package/assets/chatmodes/specification.chatmode.md +127 -0
  86. package/assets/chatmodes/swift-mcp-expert.chatmode.md +240 -0
  87. package/assets/chatmodes/task-planner.chatmode.md +374 -0
  88. package/assets/chatmodes/task-researcher.chatmode.md +254 -0
  89. package/assets/chatmodes/tdd-green.chatmode.md +59 -0
  90. package/assets/chatmodes/tdd-red.chatmode.md +59 -0
  91. package/assets/chatmodes/tdd-refactor.chatmode.md +84 -0
  92. package/assets/chatmodes/tech-debt-remediation-plan.chatmode.md +49 -0
  93. package/assets/chatmodes/terraform-azure-implement.chatmode.md +104 -0
  94. package/assets/chatmodes/terraform-azure-planning.chatmode.md +157 -0
  95. package/assets/chatmodes/typescript-mcp-expert.chatmode.md +91 -0
  96. package/assets/chatmodes/voidbeast-gpt41enhanced.chatmode.md +230 -0
  97. package/assets/chatmodes/wg-code-alchemist.chatmode.md +61 -0
  98. package/assets/chatmodes/wg-code-sentinel.chatmode.md +55 -0
  99. package/assets/collections/ai-prompt-engineering.json +18 -0
  100. package/assets/collections/angular-development.json +7 -0
  101. package/assets/collections/azure-cloud-architect.json +29 -0
  102. package/assets/collections/cpp-development.json +6 -0
  103. package/assets/collections/database-administration.json +8 -0
  104. package/assets/collections/devops-sre.json +11 -0
  105. package/assets/collections/dotnet-development.json +22 -0
  106. package/assets/collections/general-productivity.json +9 -0
  107. package/assets/collections/go-development.json +7 -0
  108. package/assets/collections/java-spring-developer.json +26 -0
  109. package/assets/collections/learning-mentoring.json +10 -0
  110. package/assets/collections/legacy-migration.json +4 -0
  111. package/assets/collections/mcp-specialist.json +41 -0
  112. package/assets/collections/mobile-development.json +4 -0
  113. package/assets/collections/php-cms-development.json +11 -0
  114. package/assets/collections/power-platform-specialist.json +31 -0
  115. package/assets/collections/project-management.json +12 -0
  116. package/assets/collections/python-development.json +13 -0
  117. package/assets/collections/quality-assurance.json +13 -0
  118. package/assets/collections/ruby-development.json +9 -0
  119. package/assets/collections/rust-development.json +10 -0
  120. package/assets/collections/security-specialist.json +8 -0
  121. package/assets/collections/software-architect.json +25 -0
  122. package/assets/collections/technical-writing.json +9 -0
  123. package/assets/collections/web-frontend-development.json +14 -0
  124. package/assets/instructions/a11y.instructions.md +369 -0
  125. package/assets/instructions/ai-prompt-engineering-safety-best-practices.instructions.md +867 -0
  126. package/assets/instructions/angular.instructions.md +104 -0
  127. package/assets/instructions/ansible.instructions.md +88 -0
  128. package/assets/instructions/aspnet-rest-apis.instructions.md +110 -0
  129. package/assets/instructions/astro.instructions.md +182 -0
  130. package/assets/instructions/azure-devops-pipelines.instructions.md +185 -0
  131. package/assets/instructions/azure-functions-typescript.instructions.md +14 -0
  132. package/assets/instructions/azure-logic-apps-power-automate.instructions.md +1943 -0
  133. package/assets/instructions/azure-verified-modules-terraform.instructions.md +229 -0
  134. package/assets/instructions/bicep-code-best-practices.instructions.md +54 -0
  135. package/assets/instructions/blazor.instructions.md +77 -0
  136. package/assets/instructions/clojure.instructions.md +349 -0
  137. package/assets/instructions/cmake-vcpkg.instructions.md +10 -0
  138. package/assets/instructions/codexer.instructions.md +428 -0
  139. package/assets/instructions/coldfusion-cfc.instructions.md +30 -0
  140. package/assets/instructions/coldfusion-cfm.instructions.md +28 -0
  141. package/assets/instructions/collections.instructions.md +54 -0
  142. package/assets/instructions/containerization-docker-best-practices.instructions.md +681 -0
  143. package/assets/instructions/convert-jpa-to-spring-data-cosmos.instructions.md +949 -0
  144. package/assets/instructions/copilot-thought-logging.instructions.md +62 -0
  145. package/assets/instructions/csharp-ja.instructions.md +114 -0
  146. package/assets/instructions/csharp-ko.instructions.md +77 -0
  147. package/assets/instructions/csharp-mcp-server.instructions.md +95 -0
  148. package/assets/instructions/csharp.instructions.md +114 -0
  149. package/assets/instructions/dart-n-flutter.instructions.md +447 -0
  150. package/assets/instructions/declarative-agents-microsoft365.instructions.md +316 -0
  151. package/assets/instructions/devbox-image-definition.instructions.md +302 -0
  152. package/assets/instructions/devops-core-principles.instructions.md +167 -0
  153. package/assets/instructions/dotnet-architecture-good-practices.instructions.md +279 -0
  154. package/assets/instructions/dotnet-framework.instructions.md +113 -0
  155. package/assets/instructions/dotnet-maui-9-to-dotnet-maui-10-upgrade.instructions.md +1922 -0
  156. package/assets/instructions/dotnet-maui.instructions.md +69 -0
  157. package/assets/instructions/dotnet-upgrade.instructions.md +287 -0
  158. package/assets/instructions/dotnet-wpf.instructions.md +79 -0
  159. package/assets/instructions/genaiscript.instructions.md +21 -0
  160. package/assets/instructions/generate-modern-terraform-code-for-azure.instructions.md +82 -0
  161. package/assets/instructions/gilfoyle-code-review.instructions.md +114 -0
  162. package/assets/instructions/github-actions-ci-cd-best-practices.instructions.md +607 -0
  163. package/assets/instructions/go-mcp-server.instructions.md +346 -0
  164. package/assets/instructions/go.instructions.md +373 -0
  165. package/assets/instructions/instructions.instructions.md +256 -0
  166. package/assets/instructions/java-11-to-java-17-upgrade.instructions.md +793 -0
  167. package/assets/instructions/java-17-to-java-21-upgrade.instructions.md +464 -0
  168. package/assets/instructions/java-21-to-java-25-upgrade.instructions.md +311 -0
  169. package/assets/instructions/java-mcp-server.instructions.md +553 -0
  170. package/assets/instructions/java.instructions.md +81 -0
  171. package/assets/instructions/joyride-user-project.instructions.md +206 -0
  172. package/assets/instructions/joyride-workspace-automation.instructions.md +46 -0
  173. package/assets/instructions/kotlin-mcp-server.instructions.md +481 -0
  174. package/assets/instructions/kubernetes-deployment-best-practices.instructions.md +307 -0
  175. package/assets/instructions/langchain-python.instructions.md +229 -0
  176. package/assets/instructions/localization.instructions.md +39 -0
  177. package/assets/instructions/makefile.instructions.md +410 -0
  178. package/assets/instructions/markdown.instructions.md +52 -0
  179. package/assets/instructions/memory-bank.instructions.md +299 -0
  180. package/assets/instructions/mongo-dba.instructions.md +25 -0
  181. package/assets/instructions/ms-sql-dba.instructions.md +25 -0
  182. package/assets/instructions/nestjs.instructions.md +406 -0
  183. package/assets/instructions/nextjs-tailwind.instructions.md +72 -0
  184. package/assets/instructions/nextjs.instructions.md +143 -0
  185. package/assets/instructions/nodejs-javascript-vitest.instructions.md +30 -0
  186. package/assets/instructions/object-calisthenics.instructions.md +302 -0
  187. package/assets/instructions/oqtane.instructions.md +86 -0
  188. package/assets/instructions/performance-optimization.instructions.md +420 -0
  189. package/assets/instructions/php-mcp-server.instructions.md +809 -0
  190. package/assets/instructions/playwright-dotnet.instructions.md +101 -0
  191. package/assets/instructions/playwright-python.instructions.md +62 -0
  192. package/assets/instructions/playwright-typescript.instructions.md +86 -0
  193. package/assets/instructions/power-apps-canvas-yaml.instructions.md +827 -0
  194. package/assets/instructions/power-apps-code-apps.instructions.md +601 -0
  195. package/assets/instructions/power-bi-custom-visuals-development.instructions.md +810 -0
  196. package/assets/instructions/power-bi-data-modeling-best-practices.instructions.md +639 -0
  197. package/assets/instructions/power-bi-dax-best-practices.instructions.md +795 -0
  198. package/assets/instructions/power-bi-devops-alm-best-practices.instructions.md +623 -0
  199. package/assets/instructions/power-bi-report-design-best-practices.instructions.md +752 -0
  200. package/assets/instructions/power-bi-security-rls-best-practices.instructions.md +504 -0
  201. package/assets/instructions/power-platform-connector.instructions.md +430 -0
  202. package/assets/instructions/power-platform-mcp-development.instructions.md +88 -0
  203. package/assets/instructions/powershell-pester-5.instructions.md +197 -0
  204. package/assets/instructions/powershell.instructions.md +356 -0
  205. package/assets/instructions/prompt.instructions.md +73 -0
  206. package/assets/instructions/python-mcp-server.instructions.md +204 -0
  207. package/assets/instructions/python.instructions.md +56 -0
  208. package/assets/instructions/quarkus-mcp-server-sse.instructions.md +49 -0
  209. package/assets/instructions/quarkus.instructions.md +98 -0
  210. package/assets/instructions/r.instructions.md +116 -0
  211. package/assets/instructions/reactjs.instructions.md +162 -0
  212. package/assets/instructions/ruby-mcp-server.instructions.md +629 -0
  213. package/assets/instructions/ruby-on-rails.instructions.md +124 -0
  214. package/assets/instructions/rust-mcp-server.instructions.md +715 -0
  215. package/assets/instructions/rust.instructions.md +135 -0
  216. package/assets/instructions/security-and-owasp.instructions.md +51 -0
  217. package/assets/instructions/self-explanatory-code-commenting.instructions.md +162 -0
  218. package/assets/instructions/shell.instructions.md +132 -0
  219. package/assets/instructions/spec-driven-workflow-v1.instructions.md +323 -0
  220. package/assets/instructions/springboot.instructions.md +68 -0
  221. package/assets/instructions/sql-sp-generation.instructions.md +74 -0
  222. package/assets/instructions/svelte.instructions.md +161 -0
  223. package/assets/instructions/swift-mcp-server.instructions.md +498 -0
  224. package/assets/instructions/taming-copilot.instructions.md +40 -0
  225. package/assets/instructions/tanstack-start-shadcn-tailwind.instructions.md +212 -0
  226. package/assets/instructions/task-implementation.instructions.md +190 -0
  227. package/assets/instructions/tasksync.instructions.md +352 -0
  228. package/assets/instructions/terraform-azure.instructions.md +254 -0
  229. package/assets/instructions/terraform-sap-btp.instructions.md +195 -0
  230. package/assets/instructions/terraform.instructions.md +113 -0
  231. package/assets/instructions/typescript-5-es2022.instructions.md +114 -0
  232. package/assets/instructions/typescript-mcp-server.instructions.md +228 -0
  233. package/assets/instructions/update-code-from-shorthand.instructions.md +130 -0
  234. package/assets/instructions/vuejs3.instructions.md +153 -0
  235. package/assets/instructions/wordpress.instructions.md +186 -0
  236. package/assets/prompts/add-educational-comments.prompt.md +129 -0
  237. package/assets/prompts/ai-prompt-engineering-safety-review.prompt.md +230 -0
  238. package/assets/prompts/architecture-blueprint-generator.prompt.md +322 -0
  239. package/assets/prompts/aspnet-minimal-api-openapi.prompt.md +42 -0
  240. package/assets/prompts/az-cost-optimize.prompt.md +305 -0
  241. package/assets/prompts/azure-resource-health-diagnose.prompt.md +290 -0
  242. package/assets/prompts/boost-prompt.prompt.md +25 -0
  243. package/assets/prompts/breakdown-epic-arch.prompt.md +66 -0
  244. package/assets/prompts/breakdown-epic-pm.prompt.md +58 -0
  245. package/assets/prompts/breakdown-feature-implementation.prompt.md +128 -0
  246. package/assets/prompts/breakdown-feature-prd.prompt.md +61 -0
  247. package/assets/prompts/breakdown-plan.prompt.md +509 -0
  248. package/assets/prompts/breakdown-test.prompt.md +365 -0
  249. package/assets/prompts/code-exemplars-blueprint-generator.prompt.md +126 -0
  250. package/assets/prompts/comment-code-generate-a-tutorial.prompt.md +26 -0
  251. package/assets/prompts/containerize-aspnet-framework.prompt.md +455 -0
  252. package/assets/prompts/containerize-aspnetcore.prompt.md +393 -0
  253. package/assets/prompts/conventional-commit.prompt.md +73 -0
  254. package/assets/prompts/copilot-instructions-blueprint-generator.prompt.md +294 -0
  255. package/assets/prompts/cosmosdb-datamodeling.prompt.md +1045 -0
  256. package/assets/prompts/create-agentsmd.prompt.md +249 -0
  257. package/assets/prompts/create-architectural-decision-record.prompt.md +97 -0
  258. package/assets/prompts/create-github-action-workflow-specification.prompt.md +276 -0
  259. package/assets/prompts/create-github-issue-feature-from-specification.prompt.md +28 -0
  260. package/assets/prompts/create-github-issues-feature-from-implementation-plan.prompt.md +28 -0
  261. package/assets/prompts/create-github-issues-for-unmet-specification-requirements.prompt.md +35 -0
  262. package/assets/prompts/create-github-pull-request-from-specification.prompt.md +24 -0
  263. package/assets/prompts/create-implementation-plan.prompt.md +157 -0
  264. package/assets/prompts/create-llms.prompt.md +210 -0
  265. package/assets/prompts/create-oo-component-documentation.prompt.md +193 -0
  266. package/assets/prompts/create-readme.prompt.md +21 -0
  267. package/assets/prompts/create-specification.prompt.md +127 -0
  268. package/assets/prompts/create-spring-boot-java-project.prompt.md +163 -0
  269. package/assets/prompts/create-spring-boot-kotlin-project.prompt.md +147 -0
  270. package/assets/prompts/create-technical-spike.prompt.md +231 -0
  271. package/assets/prompts/csharp-async.prompt.md +50 -0
  272. package/assets/prompts/csharp-docs.prompt.md +63 -0
  273. package/assets/prompts/csharp-mcp-server-generator.prompt.md +59 -0
  274. package/assets/prompts/csharp-mstest.prompt.md +67 -0
  275. package/assets/prompts/csharp-nunit.prompt.md +72 -0
  276. package/assets/prompts/csharp-tunit.prompt.md +101 -0
  277. package/assets/prompts/csharp-xunit.prompt.md +69 -0
  278. package/assets/prompts/declarative-agents.prompt.md +93 -0
  279. package/assets/prompts/documentation-writer.prompt.md +46 -0
  280. package/assets/prompts/dotnet-best-practices.prompt.md +84 -0
  281. package/assets/prompts/dotnet-design-pattern-review.prompt.md +41 -0
  282. package/assets/prompts/dotnet-upgrade.prompt.md +116 -0
  283. package/assets/prompts/editorconfig.prompt.md +64 -0
  284. package/assets/prompts/ef-core.prompt.md +76 -0
  285. package/assets/prompts/finalize-agent-prompt.prompt.md +27 -0
  286. package/assets/prompts/first-ask.prompt.md +29 -0
  287. package/assets/prompts/folder-structure-blueprint-generator.prompt.md +405 -0
  288. package/assets/prompts/gen-specs-as-issues.prompt.md +165 -0
  289. package/assets/prompts/generate-custom-instructions-from-codebase.prompt.md +240 -0
  290. package/assets/prompts/git-flow-branch-creator.prompt.md +293 -0
  291. package/assets/prompts/github-copilot-starter.prompt.md +372 -0
  292. package/assets/prompts/go-mcp-server-generator.prompt.md +334 -0
  293. package/assets/prompts/java-docs.prompt.md +24 -0
  294. package/assets/prompts/java-junit.prompt.md +64 -0
  295. package/assets/prompts/java-mcp-server-generator.prompt.md +756 -0
  296. package/assets/prompts/java-refactoring-extract-method.prompt.md +105 -0
  297. package/assets/prompts/java-refactoring-remove-parameter.prompt.md +85 -0
  298. package/assets/prompts/java-springboot.prompt.md +66 -0
  299. package/assets/prompts/javascript-typescript-jest.prompt.md +44 -0
  300. package/assets/prompts/kotlin-mcp-server-generator.prompt.md +449 -0
  301. package/assets/prompts/kotlin-springboot.prompt.md +71 -0
  302. package/assets/prompts/mcp-copilot-studio-server-generator.prompt.md +118 -0
  303. package/assets/prompts/memory-merger.prompt.md +107 -0
  304. package/assets/prompts/mkdocs-translations.prompt.md +110 -0
  305. package/assets/prompts/model-recommendation.prompt.md +677 -0
  306. package/assets/prompts/multi-stage-dockerfile.prompt.md +47 -0
  307. package/assets/prompts/my-issues.prompt.md +9 -0
  308. package/assets/prompts/my-pull-requests.prompt.md +15 -0
  309. package/assets/prompts/next-intl-add-language.prompt.md +20 -0
  310. package/assets/prompts/php-mcp-server-generator.prompt.md +522 -0
  311. package/assets/prompts/playwright-automation-fill-in-form.prompt.md +30 -0
  312. package/assets/prompts/playwright-explore-website.prompt.md +19 -0
  313. package/assets/prompts/playwright-generate-test.prompt.md +19 -0
  314. package/assets/prompts/postgresql-code-review.prompt.md +214 -0
  315. package/assets/prompts/postgresql-optimization.prompt.md +406 -0
  316. package/assets/prompts/power-apps-code-app-scaffold.prompt.md +150 -0
  317. package/assets/prompts/power-bi-dax-optimization.prompt.md +175 -0
  318. package/assets/prompts/power-bi-model-design-review.prompt.md +405 -0
  319. package/assets/prompts/power-bi-performance-troubleshooting.prompt.md +384 -0
  320. package/assets/prompts/power-bi-report-design-consultation.prompt.md +353 -0
  321. package/assets/prompts/power-platform-mcp-connector-suite.prompt.md +156 -0
  322. package/assets/prompts/project-workflow-analysis-blueprint-generator.prompt.md +294 -0
  323. package/assets/prompts/prompt-builder.prompt.md +142 -0
  324. package/assets/prompts/pytest-coverage.prompt.md +28 -0
  325. package/assets/prompts/python-mcp-server-generator.prompt.md +105 -0
  326. package/assets/prompts/readme-blueprint-generator.prompt.md +79 -0
  327. package/assets/prompts/remember-interactive-programming.prompt.md +13 -0
  328. package/assets/prompts/remember.prompt.md +125 -0
  329. package/assets/prompts/repo-story-time.prompt.md +156 -0
  330. package/assets/prompts/review-and-refactor.prompt.md +15 -0
  331. package/assets/prompts/ruby-mcp-server-generator.prompt.md +660 -0
  332. package/assets/prompts/rust-mcp-server-generator.prompt.md +578 -0
  333. package/assets/prompts/shuffle-json-data.prompt.md +151 -0
  334. package/assets/prompts/sql-code-review.prompt.md +303 -0
  335. package/assets/prompts/sql-optimization.prompt.md +298 -0
  336. package/assets/prompts/suggest-awesome-github-copilot-agents.prompt.md +72 -0
  337. package/assets/prompts/suggest-awesome-github-copilot-chatmodes.prompt.md +71 -0
  338. package/assets/prompts/suggest-awesome-github-copilot-collections.prompt.md +149 -0
  339. package/assets/prompts/suggest-awesome-github-copilot-instructions.prompt.md +88 -0
  340. package/assets/prompts/suggest-awesome-github-copilot-prompts.prompt.md +71 -0
  341. package/assets/prompts/swift-mcp-server-generator.prompt.md +669 -0
  342. package/assets/prompts/technology-stack-blueprint-generator.prompt.md +242 -0
  343. package/assets/prompts/typescript-mcp-server-generator.prompt.md +90 -0
  344. package/assets/prompts/update-avm-modules-in-bicep.prompt.md +60 -0
  345. package/assets/prompts/update-implementation-plan.prompt.md +157 -0
  346. package/assets/prompts/update-llms.prompt.md +216 -0
  347. package/assets/prompts/update-markdown-file-index.prompt.md +76 -0
  348. package/assets/prompts/update-oo-component-documentation.prompt.md +162 -0
  349. package/assets/prompts/update-specification.prompt.md +127 -0
  350. package/assets/prompts/write-coding-standards-from-file.prompt.md +316 -0
  351. package/bin/cli.js +200 -0
  352. package/package.json +53 -0
  353. package/scripts/sync.js +99 -0
  354. package/verdaccio/config.yaml +202 -0
@@ -0,0 +1,316 @@
1
+ ---
2
+ mode: "agent"
3
+ description: "Write a coding standards document for a project using the coding styles from the file(s) and/or folder(s) passed as arguments in the prompt."
4
+ tools: ['createFile', 'editFiles', 'fetch', 'githubRepo', 'search', 'testFailure']
5
+ ---
6
+
7
+ # Write Coding Standards From File
8
+
9
+ Use the existing syntax of the file(s) to establish the standards and style guides for the project. If more than one file or a folder is passed, loop through each file or files in the folder, appending the file's data to temporary memory or a file, then when complete use temporary data as a single instance; as if it were the file name to base the standards and style guideline on.
10
+
11
+ ## Rules and Configuration
12
+
13
+ Below is a set of quasi-configuration `boolean` and `string[]` variables. Conditions for handling `true`, or other values for each variable are under the level two heading `## Variable and Parameter Configuration Conditions`.
14
+
15
+ Parameters for the prompt have a text definition. There is one required parameter **`${fileName}`**, and several optional parameters **`${folderName}`**, **`${instructions}`**, and any **`[configVariableAsParameter]`**.
16
+
17
+ ### Configuration Variables
18
+
19
+ * addStandardsTest = false;
20
+ * addToREADME = false;
21
+ * addToREADMEInsertions = ["atBegin", "middle", "beforeEnd", "bestFitUsingContext"];
22
+ - Default to **beforeEnd**.
23
+ * createNewFile = true;
24
+ * fetchStyleURL = true;
25
+ * findInconsistencies = true;
26
+ * fixInconsistencies = true;
27
+ * newFileName = ["CONTRIBUTING.md", "STYLE.md", "CODE_OF_CONDUCT.md", "CODING_STANDARDS.md", "DEVELOPING.md", "CONTRIBUTION_GUIDE.md", "GUIDELINES.md", "PROJECT_STANDARDS.md", "BEST_PRACTICES.md", "HACKING.md"];
28
+ - For each file in `${newFileName}`, if file does not exist, use that file name and `break`, else continue to next file name of `${newFileName}`.
29
+ * outputSpecToPrompt = false;
30
+ * useTemplate = "verbose"; // or "v"
31
+ - Possible values are `[["v", "verbose"], ["m", "minimal"], ["b", "best fit"], ["custom"]]`.
32
+ - Selects one of the two example templates at the bottom of prompt file under the level two heading `## Coding Standards Templates`, or use another composition that is a better fit.
33
+ - If **custom**, then apply per request.
34
+
35
+ ### Configuration Variables as Prompt Parameters
36
+
37
+ If any of the variable names are passed to prompt as-is, or as a similar but clearly related text value, then override the default variable value with the value passed to prompt.
38
+
39
+ ### Prompt Parameters
40
+
41
+ * **fileName** = The name of the file that will be analyzed in terms of: indentation, variable naming, commenting, conditional procedures, functional procedures, and other syntax related data for the coding language of the file.
42
+ * folderName = The name of the folder that will be used to extract data from multiple files into one aggregated dataset that will be analyzed in terms of: indentation, variable naming, commenting, conditional procedures, functional procedures, and other syntax related data for the coding language of the files.
43
+ * instructions = Additional instructions, rules, and procedures that will be provided for unique cases.
44
+ * [configVariableAsParameter] = If passed will override the default state of the configuration variable. Example:
45
+ - useTemplate = If passed will override the configuration `${useTemplate}` default. Values are `[["v", "verbose"], ["m", "minimal"], ["b", "best fit"]]`.
46
+
47
+ #### Required and Optional Parameters
48
+
49
+ * **fileName** - required
50
+ * folderName - *optional*
51
+ * instructions - *optional*
52
+ * [configVariableAsParameter] - *optional*
53
+
54
+ ## Variable and Parameter Configuration Conditions
55
+
56
+ ### `${fileName}.length > 1 || ${folderName} != undefined`
57
+
58
+ * If true, toggle `${fixInconsistencies}` to false.
59
+
60
+ ### `${addToREADME} == true`
61
+
62
+ * Insert the coding standards into the `README.md` instead of outputting to the prompt or creating a new file.
63
+ * If true, toggle both `${createNewFile}` and `${outputSpecToPrompt}` to false.
64
+
65
+ ### `${addToREADMEInsertions} == "atBegin"`
66
+
67
+ * If `${addToREADME}` is true, then insert the coding standards data at the **beginning** of the `README.md` file after the title.
68
+
69
+ ### `${addToREADMEInsertions} == "middle"`
70
+
71
+ * If `${addToREADME}` is true, then insert the coding standards data at the **middle** of the `README.md` file, changing the standards title heading to match that of the `README.md` composition.
72
+
73
+ ### `${addToREADMEInsertions} == "beforeEnd"`
74
+
75
+ * If `${addToREADME}` is true, then insert the coding standards data at the **end** of the `README.md` file, inserting a new line after the last character, then inserting the data on a new line.
76
+
77
+ ### `${addToREADMEInsertions} == "bestFitUsingContext"`
78
+
79
+ * If `${addToREADME}` is true, then insert the coding standards data at the **best fitting line** of the `README.md` file in regards to the context of the `README.md` composition and flow of data.
80
+
81
+ ### `${addStandardsTest} == true`
82
+
83
+ * Once the coding standards file is complete, write a test file to ensure the file or files passed to it adhere to the coding standards.
84
+
85
+ ### `${createNewFile} == true`
86
+
87
+ * Create a new file using the value, or one of the possible values, from `${newFileName}`.
88
+ * If true, toggle both `${outputSpecToPrompt}` and `${addToREADME}` to false.
89
+
90
+ ### `${fetchStyleURL} == true`
91
+
92
+ * Additionally use the data fetched from the links nested under level three heading `### Fetch Links` as context for creating standards, specifications, and styling data for the new file, prompt, or `README.md`.
93
+ * For each relevant item in `### Fetch Links`, run `#fetch ${item}`.
94
+
95
+ ### `${findInconsistencies} == true`
96
+
97
+ * Evaluate syntax related to indentations, line-breaks, comments, conditional and function nesting, quotation wrappers i.e. `'` or `"` for strings, etc., and categorize.
98
+ * For each category, make a count, and if one item does not match the majority of the count, then commit to temporary memory.
99
+ * Depending on the status of `${fixInconsistencies}`, either edit and fix the low count categories to match the majority, or output to prompt inconsistencies stored in temporary memory.
100
+
101
+ ### `${fixInconsistencies} == true`
102
+
103
+ * Edit and fix the low count categories of syntax data to match the majority of corresponding syntax data using inconsistencies stored in temporary memory.
104
+
105
+ ### `typeof ${newFileName} == "string"`
106
+
107
+ * If specifically defined as a `string`, create a new file using the value from `${newFileName}`.
108
+
109
+ ### `typeof ${newFileName} != "string"`
110
+
111
+ * If **NOT** specifically defined as a `string`, but instead an `object` or an array, create a new file using a value from `${newFileName}` by applying this rule:
112
+ - For each file name in `${newFileName}`, if file does not exist, use that file name and `break`, else continue to the next.
113
+
114
+ ### `${outputSpecToPrompt} == true`
115
+
116
+ * Output the coding standards to the prompt instead of creating a file or adding to README.
117
+ * If true, toggle both `${createNewFile}` and `${addToREADME}` to false.
118
+
119
+ ### `${useTemplate} == "v" || ${useTemplate} == "verbose"`
120
+
121
+ * Use data under the level three heading `### "v", "verbose"` as guiding template when composing the data for coding standards.
122
+
123
+ ### `${useTemplate} == "m" || ${useTemplate} == "minimal"`
124
+
125
+ * Use data under the level three heading `### "m", "minimal"` as guiding template when composing the data for coding standards.
126
+
127
+ ### `${useTemplate} == "b" || ${useTemplate} == "best"`
128
+
129
+ * Use either the data under the level three heading `### "v", "verbose"` or `### "m", "minimal"`, depending on the data extracted from `${fileName}`, and use the best fit as guiding template when composing the data for coding standards.
130
+
131
+ ### `${useTemplate} == "custom" || ${useTemplate} == "<ANY_NAME>"`
132
+
133
+ * Use the custom prompt, instructions, template, or other data passed as guiding template when composing the data for coding standards.
134
+
135
+ ## **if** `${fetchStyleURL} == true`
136
+
137
+ Depending on the programming language, for each link in list below, run `#fetch (URL)`, if programming language is `${fileName} == [<Language> Style Guide]`.
138
+
139
+ ### Fetch Links
140
+
141
+ - [C Style Guide](https://users.ece.cmu.edu/~eno/coding/CCodingStandard.html)
142
+ - [C# Style Guide](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions)
143
+ - [C++ Style Guide](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines)
144
+ - [Go Style Guide](https://github.com/golang-standards/project-layout)
145
+ - [Java Style Guide](https://coderanch.com/wiki/718799/Style)
146
+ - [AngularJS App Style Guide](https://github.com/mgechev/angularjs-style-guide)
147
+ - [jQuery Style Guide](https://contribute.jquery.org/style-guide/js/)
148
+ - [JavaScript Style Guide](https://www.w3schools.com/js/js_conventions.asp)
149
+ - [JSON Style Guide](https://google.github.io/styleguide/jsoncstyleguide.xml)
150
+ - [Kotlin Style Guide](https://kotlinlang.org/docs/coding-conventions.html)
151
+ - [Markdown Style Guide](https://cirosantilli.com/markdown-style-guide/)
152
+ - [Perl Style Guide](https://perldoc.perl.org/perlstyle)
153
+ - [PHP Style Guide](https://phptherightway.com/)
154
+ - [Python Style Guide](https://peps.python.org/pep-0008/)
155
+ - [Ruby Style Guide](https://rubystyle.guide/)
156
+ - [Rust Style Guide](https://github.com/rust-lang/rust/tree/HEAD/src/doc/style-guide/src)
157
+ - [Swift Style Guide](https://www.swift.org/documentation/api-design-guidelines/)
158
+ - [TypeScript Style Guide](https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html)
159
+ - [Visual Basic Style Guide](https://en.wikibooks.org/wiki/Visual_Basic/Coding_Standards)
160
+ - [Shell Script Style Guide](https://google.github.io/styleguide/shellguide.html)
161
+ - [Git Usage Style Guide](https://github.com/agis/git-style-guide)
162
+ - [PowerShell Style Guide](https://github.com/PoshCode/PowerShellPracticeAndStyle)
163
+ - [CSS](https://cssguidelin.es/)
164
+ - [Sass Style Guide](https://sass-guidelin.es/)
165
+ - [HTML Style Guide](https://github.com/marcobiedermann/html-style-guide)
166
+ - [Linux kernel Style Guide](https://www.kernel.org/doc/html/latest/process/coding-style.html)
167
+ - [Node.js Style Guide](https://github.com/felixge/node-style-guide)
168
+ - [SQL Style Guide](https://www.sqlstyle.guide/)
169
+ - [Angular Style Guide](https://angular.dev/style-guide)
170
+ - [Vue Style Guide](https://vuejs.org/style-guide/rules-strongly-recommended.html)
171
+ - [Django Style Guide](https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/)
172
+
173
+ ## Coding Standards Templates
174
+
175
+ ### `"m", "minimal"`
176
+
177
+ ```text
178
+ ```markdown
179
+ ## 1. Introduction
180
+ * **Purpose:** Briefly explain why the coding standards are being established (e.g., to improve code quality, maintainability, and team collaboration).
181
+ * **Scope:** Define which languages, projects, or modules this specification applies to.
182
+
183
+ ## 2. Naming Conventions
184
+ * **Variables:** `camelCase`
185
+ * **Functions/Methods:** `PascalCase` or `camelCase`.
186
+ * **Classes/Structs:** `PascalCase`.
187
+ * **Constants:** `UPPER_SNAKE_CASE`.
188
+
189
+ ## 3. Formatting and Style
190
+ * **Indentation:** Use 4 spaces per indent (or tabs).
191
+ * **Line Length:** Limit lines to a maximum of 80 or 120 characters.
192
+ * **Braces:** Use the "K&R" style (opening brace on the same line) or the "Allman" style (opening brace on a new line).
193
+ * **Blank Lines:** Specify how many blank lines to use for separating logical blocks of code.
194
+
195
+ ## 4. Commenting
196
+ * **Docstrings/Function Comments:** Describe the function's purpose, parameters, and return values.
197
+ * **Inline Comments:** Explain complex or non-obvious logic.
198
+ * **File Headers:** Specify what information should be included in a file header, such as author, date, and file description.
199
+
200
+ ## 5. Error Handling
201
+ * **General:** How to handle and log errors.
202
+ * **Specifics:** Which exception types to use, and what information to include in error messages.
203
+
204
+ ## 6. Best Practices and Anti-Patterns
205
+ * **General:** List common anti-patterns to avoid (e.g., global variables, magic numbers).
206
+ * **Language-specific:** Specific recommendations based on the project's programming language.
207
+
208
+ ## 7. Examples
209
+ * Provide a small code example demonstrating the correct application of the rules.
210
+ * Provide a small code example of an incorrect implementation and how to fix it.
211
+
212
+ ## 8. Contribution and Enforcement
213
+ * Explain how the standards are to be enforced (e.g., via code reviews).
214
+ * Provide a guide for contributing to the standards document itself.
215
+ ```
216
+ ```
217
+
218
+ ### `"v", verbose"`
219
+
220
+ ```text
221
+ ```markdown
222
+
223
+ # Style Guide
224
+
225
+ This document defines the style and conventions used in this project.
226
+ All contributions should follow these rules unless otherwise noted.
227
+
228
+ ## 1. General Code Style
229
+
230
+ - Favor clarity over brevity.
231
+ - Keep functions and methods small and focused.
232
+ - Avoid repeating logic; prefer shared helpers/utilities.
233
+ - Remove unused variables, imports, code paths, and files.
234
+
235
+ ## 2. Naming Conventions
236
+
237
+ Use descriptive names. Avoid abbreviations unless well-known.
238
+
239
+ | Item | Convention | Example |
240
+ |-----------------|----------------------|--------------------|
241
+ | Variables | `lower_snake_case` | `buffer_size` |
242
+ | Functions | `lower_snake_case()` | `read_file()` |
243
+ | Constants | `UPPER_SNAKE_CASE` | `MAX_RETRIES` |
244
+ | Types/Structs | `PascalCase` | `FileHeader` |
245
+ | File Names | `lower_snake_case` | `file_reader.c` |
246
+
247
+ ## 3. Formatting Rules
248
+
249
+ - Indentation: **4 spaces**
250
+ - Line length: **max 100 characters**
251
+ - Encoding: **UTF-8**, no BOM
252
+ - End files with a newline
253
+
254
+ ### Braces (example in C, adjust for your language)
255
+
256
+ ```c
257
+ if (condition) {
258
+ do_something();
259
+ } else {
260
+ do_something_else();
261
+ }
262
+ ```
263
+
264
+ ### Spacing
265
+
266
+ - One space after keywords: `if (x)`, not `if(x)`
267
+ - One blank line between top-level functions
268
+
269
+ ## 4. Comments & Documentation
270
+
271
+ - Explain *why*, not *what*, unless intent is unclear.
272
+ - Keep comments up-to-date as code changes.
273
+ - Public functions should include a short description of purpose and parameters.
274
+
275
+ Recommended tags:
276
+
277
+ ```text
278
+ TODO: follow-up work
279
+ FIXME: known incorrect behavior
280
+ NOTE: non-obvious design decision
281
+ ```
282
+
283
+ ## 5. Error Handling
284
+
285
+ - Handle error conditions explicitly.
286
+ - Avoid silent failures; either return errors or log them appropriately.
287
+ - Clean up resources (files, memory, handles) before returning on failure.
288
+
289
+ ## 6. Commit & Review Practices
290
+
291
+ ### Commits
292
+ - One logical change per commit.
293
+ - Write clear commit messages:
294
+
295
+ ```text
296
+ Short summary (max ~50 chars)
297
+ Optional longer explanation of context and rationale.
298
+ ```
299
+
300
+ ### Reviews
301
+ - Keep pull requests reasonably small.
302
+ - Be respectful and constructive in review discussions.
303
+ - Address requested changes or explain if you disagree.
304
+
305
+ ## 7. Tests
306
+
307
+ - Write tests for new functionality.
308
+ - Tests should be deterministic (no randomness without seeding).
309
+ - Prefer readable test cases over complex test abstraction.
310
+
311
+ ## 8. Changes to This Guide
312
+
313
+ Style evolves.
314
+ Propose improvements by opening an issue or sending a patch updating this document.
315
+ ```
316
+ ```
package/bin/cli.js ADDED
@@ -0,0 +1,200 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { program } from 'commander';
4
+ import inquirer from 'inquirer';
5
+ import fs from 'fs-extra';
6
+ import path from 'path';
7
+ import chalk from 'chalk';
8
+ import { fileURLToPath } from 'url';
9
+ import matter from 'gray-matter';
10
+
11
+ const __filename = fileURLToPath(import.meta.url);
12
+ const __dirname = path.dirname(__filename);
13
+
14
+ const ASSETS_DIR = path.join(__dirname, '../assets');
15
+
16
+ program
17
+ .name('github-copilot-packed')
18
+ .description('CLI to download GitHub Copilot instructions, prompts, and chat modes')
19
+ .version('1.0.0');
20
+
21
+ program
22
+ .command('list [type]')
23
+ .description('List available assets (instructions, prompts, chatmodes, collections)')
24
+ .action(async (type) => {
25
+ try {
26
+ if (type) {
27
+ await listAssets(type);
28
+ } else {
29
+ const types = ['instructions', 'prompts', 'chatmodes', 'collections'];
30
+ for (const t of types) {
31
+ await listAssets(t);
32
+ }
33
+ }
34
+ } catch (error) {
35
+ console.error(chalk.red('Error listing assets:'), error.message);
36
+ process.exit(1);
37
+ }
38
+ });
39
+
40
+ program
41
+ .command('download <id>')
42
+ .description('Download an asset (format: type:name)')
43
+ .option('-d, --dry-run', 'Simulate the download without writing files')
44
+ .option('-f, --force', 'Overwrite existing files without asking')
45
+ .option('-o, --output <path>', 'Specify the output path')
46
+ .action(async (id, options) => {
47
+ try {
48
+ await downloadAsset(id, options);
49
+ } catch (error) {
50
+ console.error(chalk.red('Error downloading asset:'), error.message);
51
+ process.exit(1);
52
+ }
53
+ });
54
+
55
+ async function listAssets(type) {
56
+ const dirPath = path.join(ASSETS_DIR, type);
57
+ if (!await fs.pathExists(dirPath)) {
58
+ console.log(chalk.yellow(`No assets found for type: ${type}`));
59
+ return;
60
+ }
61
+
62
+ const files = await fs.readdir(dirPath);
63
+ if (files.length === 0) {
64
+ console.log(chalk.yellow(`No assets found for type: ${type}`));
65
+ return;
66
+ }
67
+
68
+ console.log(chalk.blue.bold(`\nAvailable ${type}:`));
69
+ for (const file of files) {
70
+ const filePath = path.join(dirPath, file);
71
+ let description = '';
72
+
73
+ try {
74
+ if (type === 'collections') {
75
+ const content = await fs.readJson(filePath);
76
+ description = content.description || '';
77
+ } else {
78
+ const content = await fs.readFile(filePath, 'utf8');
79
+ const parsed = matter(content);
80
+ description = parsed.data.description || '';
81
+ }
82
+ } catch (e) {
83
+ // Ignore errors reading metadata
84
+ }
85
+
86
+ const name = path.parse(file).name;
87
+ console.log(` - ${name}${description ? ` - ${description}` : ''}`);
88
+ }
89
+ }
90
+
91
+ async function downloadAsset(id, options) {
92
+ const [type, name] = id.split(':');
93
+
94
+ if (!type || !name) {
95
+ throw new Error('Invalid ID format. Use type:name (e.g., instructions:basic-setup)');
96
+ }
97
+
98
+ const validTypes = ['instructions', 'prompts', 'chatmodes', 'collections'];
99
+ if (!validTypes.includes(type)) {
100
+ throw new Error(`Invalid type: ${type}. Valid types are: ${validTypes.join(', ')}`);
101
+ }
102
+
103
+ if (type === 'collections') {
104
+ let fileName = name;
105
+ if (!path.extname(name)) {
106
+ fileName += '.json';
107
+ }
108
+ const sourcePath = path.join(ASSETS_DIR, type, fileName);
109
+
110
+ if (!await fs.pathExists(sourcePath)) {
111
+ throw new Error(`Collection not found: ${type}/${fileName}`);
112
+ }
113
+
114
+ const collectionContent = await fs.readJson(sourcePath);
115
+ let items = [];
116
+
117
+ if (Array.isArray(collectionContent)) {
118
+ items = collectionContent;
119
+ } else if (collectionContent.items && Array.isArray(collectionContent.items)) {
120
+ items = collectionContent.items;
121
+ } else {
122
+ throw new Error(`Invalid collection format: ${fileName} must be a JSON array or object with items array.`);
123
+ }
124
+
125
+ console.log(chalk.blue(`Downloading collection: ${name}`));
126
+ for (const assetId of items) {
127
+ try {
128
+ await downloadAsset(assetId, options);
129
+ } catch (error) {
130
+ console.error(chalk.red(`Failed to download ${assetId} from collection:`), error.message);
131
+ }
132
+ }
133
+ return;
134
+ }
135
+
136
+ // Try to find the file with various extensions
137
+ const potentialFileNames = [
138
+ name,
139
+ name + '.md'
140
+ ];
141
+
142
+ // Add type-specific extensions
143
+ if (type === 'chatmodes') potentialFileNames.push(name + '.chatmode.md');
144
+ if (type === 'prompts') potentialFileNames.push(name + '.prompt.md');
145
+ if (type === 'instructions') potentialFileNames.push(name + '.instructions.md');
146
+
147
+ let sourcePath = null;
148
+ let foundFileName = null;
149
+
150
+ for (const fname of potentialFileNames) {
151
+ const p = path.join(ASSETS_DIR, type, fname);
152
+ if (await fs.pathExists(p)) {
153
+ sourcePath = p;
154
+ foundFileName = fname;
155
+ break;
156
+ }
157
+ }
158
+
159
+ if (!sourcePath) {
160
+ throw new Error(`Asset not found: ${type}/${name}`);
161
+ }
162
+
163
+ let destDir;
164
+ if (options.output) {
165
+ destDir = path.resolve(process.cwd(), options.output);
166
+ } else {
167
+ destDir = path.join(process.cwd(), '.github', type);
168
+ }
169
+
170
+ const destPath = path.join(destDir, foundFileName);
171
+
172
+ if (options.dryRun) {
173
+ console.log(chalk.cyan(`[Dry Run] Would copy ${sourcePath} to ${destPath}`));
174
+ return;
175
+ }
176
+
177
+ // Ensure destination directory exists
178
+ await fs.ensureDir(destDir);
179
+
180
+ if (await fs.pathExists(destPath) && !options.force) {
181
+ const { overwrite } = await inquirer.prompt([
182
+ {
183
+ type: 'confirm',
184
+ name: 'overwrite',
185
+ message: `File ${foundFileName} already exists in ${destDir}. Overwrite?`,
186
+ default: false
187
+ }
188
+ ]);
189
+
190
+ if (!overwrite) {
191
+ console.log(chalk.yellow('Operation cancelled.'));
192
+ return;
193
+ }
194
+ }
195
+
196
+ await fs.copy(sourcePath, destPath);
197
+ console.log(chalk.green(`Successfully downloaded ${foundFileName} to ${destDir}`));
198
+ }
199
+
200
+ program.parse();
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "workspace-architect",
3
+ "version": "1.3.0",
4
+ "description": "A comprehensive library of specialized AI personas and chat modes for GitHub Copilot, ranging from architectural planning and specific tech stacks to advanced cognitive reasoning models.",
5
+ "bin": {
6
+ "workspace-architect": "./bin/cli.js"
7
+ },
8
+ "scripts": {
9
+ "start:registry": "verdaccio --config verdaccio/config.yaml",
10
+ "test:local": "node bin/cli.js list && node bin/cli.js download instructions:basic-setup --dry-run",
11
+ "sync": "node scripts/sync.js",
12
+ "release": "release-it",
13
+ "publish:local": "npm run release && npm publish --registry http://localhost:4873"
14
+ },
15
+ "keywords": [
16
+ "copilot",
17
+ "chatmodes",
18
+ "personas",
19
+ "prompts",
20
+ "ai-assistant",
21
+ "architecture",
22
+ "planning",
23
+ "developer-tools",
24
+ "workspace-architect",
25
+ "react",
26
+ "azure",
27
+ "agentic-workflow"
28
+ ],
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/archubbuck/workspace-architect.git"
32
+ },
33
+ "bugs": {
34
+ "url": "https://github.com/archubbuck/workspace-architect/issues"
35
+ },
36
+ "homepage": "https://github.com/archubbuck/workspace-architect#readme",
37
+ "author": "",
38
+ "license": "ISC",
39
+ "dependencies": {
40
+ "chalk": "^5.3.0",
41
+ "commander": "^12.0.0",
42
+ "fs-extra": "^11.2.0",
43
+ "gray-matter": "^4.0.3",
44
+ "inquirer": "^9.2.15"
45
+ },
46
+ "devDependencies": {
47
+ "@release-it/conventional-changelog": "^8.0.2",
48
+ "conventional-changelog-conventionalcommits": "^7.0.2",
49
+ "release-it": "^17.11.0",
50
+ "verdaccio": "^5.29.0"
51
+ },
52
+ "type": "module"
53
+ }
@@ -0,0 +1,99 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+ import { fileURLToPath } from 'url';
4
+
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+
8
+ // Load .env manually
9
+ const envPath = path.join(__dirname, '../.env');
10
+ if (fs.existsSync(envPath)) {
11
+ const envConfig = fs.readFileSync(envPath, 'utf8');
12
+ envConfig.split('\n').forEach(line => {
13
+ const [key, value] = line.split('=');
14
+ if (key && value) {
15
+ process.env[key.trim()] = value.trim();
16
+ }
17
+ });
18
+ }
19
+
20
+ const GITHUB_TOKEN = process.env.GITHUB_TOKEN;
21
+ const REPO_OWNER = 'github';
22
+ const REPO_NAME = 'awesome-copilot';
23
+ const BASE_API_URL = `https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/contents`;
24
+
25
+ const MAPPINGS = [
26
+ { remote: 'chatmodes', local: 'assets/chatmodes' },
27
+ { remote: 'instructions', local: 'assets/instructions' },
28
+ { remote: 'prompts', local: 'assets/prompts' }
29
+ ];
30
+
31
+ const FILES_TO_DELETE = [
32
+ 'basic-setup.md',
33
+ 'assets/instructions/basic-setup.md'
34
+ ];
35
+
36
+ async function fetchGitHubContent(path) {
37
+ const url = `${BASE_API_URL}/${path}`;
38
+ const headers = {
39
+ 'User-Agent': 'node.js',
40
+ 'Accept': 'application/vnd.github.v3+json'
41
+ };
42
+
43
+ if (GITHUB_TOKEN) {
44
+ headers['Authorization'] = `token ${GITHUB_TOKEN}`;
45
+ }
46
+
47
+ const response = await fetch(url, { headers });
48
+ if (!response.ok) {
49
+ throw new Error(`Failed to fetch ${url}: ${response.statusText}`);
50
+ }
51
+ return response.json();
52
+ }
53
+
54
+ async function downloadFile(downloadUrl, localPath) {
55
+ const response = await fetch(downloadUrl);
56
+ if (!response.ok) {
57
+ throw new Error(`Failed to download ${downloadUrl}: ${response.statusText}`);
58
+ }
59
+ const content = await response.text();
60
+ const dir = path.dirname(localPath);
61
+ if (!fs.existsSync(dir)) {
62
+ fs.mkdirSync(dir, { recursive: true });
63
+ }
64
+ fs.writeFileSync(localPath, content);
65
+ console.log(`Downloaded: ${localPath}`);
66
+ }
67
+
68
+ async function sync() {
69
+ console.log('Starting sync...');
70
+
71
+ // Delete legacy files
72
+ for (const file of FILES_TO_DELETE) {
73
+ const filePath = path.join(__dirname, '..', file);
74
+ if (fs.existsSync(filePath)) {
75
+ fs.unlinkSync(filePath);
76
+ console.log(`Deleted: ${file}`);
77
+ }
78
+ }
79
+
80
+ // Sync folders
81
+ for (const mapping of MAPPINGS) {
82
+ console.log(`Syncing ${mapping.remote} to ${mapping.local}...`);
83
+ try {
84
+ const items = await fetchGitHubContent(mapping.remote);
85
+
86
+ for (const item of items) {
87
+ if (item.type === 'file') {
88
+ const localFilePath = path.join(__dirname, '..', mapping.local, item.name);
89
+ await downloadFile(item.download_url, localFilePath);
90
+ }
91
+ }
92
+ } catch (error) {
93
+ console.error(`Error syncing ${mapping.remote}:`, error.message);
94
+ }
95
+ }
96
+ console.log('Sync complete!');
97
+ }
98
+
99
+ sync();