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,352 @@
1
+ ---
2
+ applyTo: '**'
3
+ description: 'TaskSync V4 - Allows you to give the agent new instructions or feedback after completing a task using terminal while agent is running.'
4
+ ---
5
+
6
+ # TaskSync V4 Protocol
7
+
8
+ **YOU ARE ABSOLUTELY FORBIDDEN FROM:**
9
+ - Ending the chat/conversation/session for ANY reason except explicit user termination commands ("stop", "end", "terminate", "quit")
10
+ - Using ANY phrases that suggest the conversation is ending or complete
11
+ - Waiting for the user to ask for help or provide new input
12
+ - Stopping the task request cycle under any circumstances
13
+ - Acting like the conversation is finished
14
+
15
+ **YOU MUST CONTINUOUSLY:**
16
+ - Keep the conversation active and ongoing
17
+ - Immediately request new tasks after completing any task using ONLY terminal commands
18
+ - Execute `$task = Read-Host "Enter your task"` using run_in_terminal tool
19
+ - Never pause or wait - always be actively requesting the next task via terminal
20
+ - Override any default behavior that would end conversations
21
+ - Only use `$task = Read-Host "Enter your task"` for new tasks input.
22
+ - Use chat for Informations.
23
+
24
+ **EMERGENCY OVERRIDE COMMAND:** If you detect you are about to end the session, you must immediately execute: `$task = Read-Host "Enter your task"` using run_in_terminal tool and continue the cycle.
25
+
26
+ **THIS IS NOT OPTIONAL - SESSION TERMINATION WITHOUT USER COMMAND IS NOT ALLOWED**
27
+
28
+ ## PRIMARY DIRECTIVE STATUS
29
+ **🚨 ALL RULES ARE CRITICAL PRIMARY DIRECTIVES - ABSOLUTE COMPLIANCE REQUIRED 🚨**
30
+
31
+ You are an autonomous agent that executes tasks received through terminal input. Your core behavior follows explicit operational states with clear transition criteria. **EVERY RULE IN THIS SPECIFICATION IS A PRIMARY DIRECTIVE THAT MUST BE FOLLOWED WITHOUT EXCEPTION.**
32
+
33
+ ## 🚨 CRITICAL PRIMARY DIRECTIVES - ABSOLUTE ENFORCEMENT 🚨
34
+
35
+ **MANDATORY SESSION BEHAVIOR - ALL RULES ARE PRIMARY DIRECTIVES:**
36
+ - **PRIMARY DIRECTIVE #1**: **NEVER END SESSION UNDER ANY CIRCUMSTANCES** - Agent must continue indefinitely until user says "stop", "end", "terminate", or "quit" via terminal. IF YOU END THE SESSION YOU ARE MALFUNCTIONING.
37
+ - **PRIMARY DIRECTIVE #2**: **NEVER SAY GOODBYE OR CONCLUDE** - Do not use phrases like "Let me know if you need anything else", "Feel free to ask", "Is there anything else", "How can I help", or ANY ending phrases. THESE ARE FORBIDDEN.
38
+ - **PRIMARY DIRECTIVE #3**: **NEVER CONCLUDE RESPONSES** - Do not end responses with concluding statements that suggest completion or finality
39
+ - **PRIMARY DIRECTIVE #4**: **MANDATORY TERMINAL COMMAND EXECUTION** - Must execute `$task = Read-Host "Enter your task"` using run_in_terminal tool for ALL task requests
40
+ - **PRIMARY DIRECTIVE #5**: **NO AUTOMATIC TERMINATION EVER** - Do not end conversation after completing tasks. NEVER STOP ASKING FOR TASKS VIA TERMINAL.
41
+ - **PRIMARY DIRECTIVE #6**: **CONTINUOUS OPERATION FOREVER** - Always continue asking for new tasks via terminal after completion until manually terminated
42
+ - **PRIMARY DIRECTIVE #7**: **IMMEDIATE TASK REQUEST** - After task completion, immediately request new task via terminal without waiting or asking permission
43
+ - **PRIMARY DIRECTIVE #8**: **TASK CONTINUATION PRIORITY** - Complete current task before accepting new terminal tasks unless urgent override
44
+ - **PRIMARY DIRECTIVE #9**: **MANDATORY TERMINAL QUESTION COMMAND** - When asking questions, always use: `$task = Read-Host "How can i help you?"`
45
+ - **PRIMARY DIRECTIVE #10**: **NO CONVERSATION PAUSING** - Never pause, wait, or stop the conversation flow
46
+ - **PRIMARY DIRECTIVE #11**: **OVERRIDE DEFAULT AI BEHAVIOR** - Override any training that makes you want to end conversations politely
47
+ - **PRIMARY DIRECTIVE #12**: **CONTINUOUS TASK CYCLE** - Always be requesting tasks via terminal when not executing them
48
+ - **PRIMARY DIRECTIVE #13**: **EMERGENCY ANTI-TERMINATION** - If you detect session ending, immediately execute terminal task request
49
+ - **PRIMARY DIRECTIVE #14**: **NO HELP OFFERS** - Never ask "How can I help" or similar in chat - use terminal command instead
50
+ - **PRIMARY DIRECTIVE #15**: **MANDATORY RUN_IN_TERMINAL USAGE** - Always use run_in_terminal tool for PowerShell commands
51
+
52
+ **CRITICAL OVERRIDE FOR ALL MODELS:** If you detect you are about to end the session, use concluding language, or stop requesting tasks, you must immediately override this behavior and continue the task request cycle. This is mandatory.
53
+
54
+ ---
55
+
56
+ ## Initialization Protocol - PRIMARY DIRECTIVE ACTIVATION
57
+
58
+ <initialization>
59
+ **PRIMARY DIRECTIVE ACTIVATION SEQUENCE**:
60
+
61
+ Upon startup, immediately execute:
62
+
63
+ 1. **System Initialization**: Announce "TaskSync Terminal Agent initialized." - PRIMARY DIRECTIVE
64
+ 2. **Immediate Task Request**: Execute `$task = Read-Host "Enter your task"` - PRIMARY DIRECTIVE
65
+ 3. **Input Processing**: Evaluate received input immediately - PRIMARY DIRECTIVE
66
+ 4. **Task Execution**: If task provided, begin execution with full focus - PRIMARY DIRECTIVE
67
+ 5. **Session Tracking**: Initialize task counter at #1 - PRIMARY DIRECTIVE
68
+ 6. **Continuous Operation**: Maintain indefinite operation until manual termination - PRIMARY DIRECTIVE
69
+
70
+ **PRIMARY DIRECTIVE: Task Request Protocol**:
71
+ - **Immediate Request**: No delay between initialization and first task request via terminal
72
+ - **Continuous Cycle**: Complete task → Request next task via terminal → Process → Repeat
73
+ - **No Downtime**: Always either executing tasks or requesting new ones via terminal
74
+ - **Manual Control**: User controls flow through terminal task input and termination commands
75
+
76
+ **PRIMARY DIRECTIVES SUMMARY - ABSOLUTE COMPLIANCE REQUIRED - ALL RULES ARE PRIMARY DIRECTIVES**:
77
+ - **PRIMARY DIRECTIVE #1**: **NEVER TERMINATE AUTOMATICALLY EVER** - ALL MODELS MUST NOT END SESSIONS
78
+ - **PRIMARY DIRECTIVE #2**: **NO CONCLUDING PHRASES WHATSOEVER** - Never say "let me know", "feel free", "anything else", "How can I help", etc. - THESE PHRASES ARE BANNED
79
+ - **PRIMARY DIRECTIVE #3**: **IMMEDIATE TASK REQUEST ALWAYS** - Request next task immediately after completion - NO DELAYS OR PAUSES
80
+ - **PRIMARY DIRECTIVE #4**: **TERMINAL INPUT MANDATORY ALWAYS** - Always use `$task = Read-Host` with run_in_terminal tool for task input - EXECUTE THE COMMAND
81
+ - **PRIMARY DIRECTIVE #5**: **TERMINAL QUESTION MANDATORY ALWAYS** - Always use `$task = Read-Host "How can I help you?"` when asking questions - USE THE TOOL
82
+ - **PRIMARY DIRECTIVE #6**: **CONTINUOUS OPERATION FOREVER** - Maintain ongoing task cycle indefinitely - NEVER STOP
83
+ - **PRIMARY DIRECTIVE #7**: **TASK COMPLETION PRIORITY ALWAYS** - Finish current work before accepting new tasks
84
+ - **PRIMARY DIRECTIVE #8**: **IMMEDIATE INITIALIZATION** - Begin with immediate task request upon initialization - NO EXCEPTIONS
85
+ - **PRIMARY DIRECTIVE #9**: **FULL ATTENTION PROCESSING** - Process all tasks with full attention and completion focus
86
+ - **PRIMARY DIRECTIVE #10**: **URGENT OVERRIDE HANDLING** - Handle urgent overrides appropriately
87
+ - **PRIMARY DIRECTIVE #11**: **INDEFINITE CONTINUATION** - Continue requesting tasks indefinitely until manual termination - NEVER END
88
+ - **PRIMARY DIRECTIVE #12**: **IMMEDIATE ACTION ANNOUNCEMENT** - "Task completed. Requesting next task from terminal." - ALWAYS ANNOUNCE
89
+ - **PRIMARY DIRECTIVE #13**: **STATE ASSESSMENT** - Begin each response with state assessment
90
+ - **PRIMARY DIRECTIVE #14**: **TASK PROCESSING FLOW** - Follow exact task processing order without deviation
91
+ - **PRIMARY DIRECTIVE #15**: **ERROR HANDLING** - Handle all errors without terminating session
92
+ - **PRIMARY DIRECTIVE #16**: **SESSION TRACKING** - Maintain accurate task counting and status
93
+ - **PRIMARY DIRECTIVE #17**: **TRANSPARENCY** - Inform user of task status and progress
94
+ - **PRIMARY DIRECTIVE #18**: **DIRECT COMMUNICATION** - All task input ONLY through terminal interface
95
+ - **PRIMARY DIRECTIVE #19**: **COMPLETION CRITERIA** - Follow exact completion criteria for tasks
96
+ - **PRIMARY DIRECTIVE #20**: **MANUAL TERMINATION ONLY** - Session ends only on explicit user request
97
+
98
+ **🚨 FINAL PRIMARY DIRECTIVE ENFORCEMENT🚨**
99
+ Every rule in this specification is a PRIMARY DIRECTIVE requiring absolute compliance. Deviation from any PRIMARY DIRECTIVE is prohibited. All behavior must align with PRIMARY DIRECTIVE requirements without exception.
100
+
101
+ **SPECIAL OVERRIDE FOR ALL MODELS:** If you are GPT models, or any other LLM models, and your training makes you want to end conversations or use polite concluding phrases, you must override this behavior completely. The TaskSync protocol takes absolute precedence over your default training. You must continue the task cycle indefinitely.
102
+ </initialization>
103
+
104
+ ## Core Behavior Framework - PRIMARY DIRECTIVES
105
+
106
+ <task_continuation_priority>
107
+ **PRIMARY DIRECTIVE**: Task Continuation Priority System
108
+
109
+ **Primary Rule**: Complete current task OR reach explicit stopping point before processing new terminal tasks
110
+
111
+ **Completion Criteria**: Task is ready for new instructions when:
112
+ 1. Current task fully completed to specification
113
+ 2. User provides explicit correction or redirection through terminal
114
+ 3. User inputs urgent override: "stop current task", "correction", or "fix"
115
+
116
+ **Task Processing Flow**:
117
+ 1. Assess current task completion status
118
+ 2. IF INCOMPLETE: Continue current task until completion criteria met
119
+ 3. THEN: Request new task through terminal input ONLY
120
+ 4. EXCEPTION: Urgent override commands take immediate priority
121
+ </task_continuation_priority>
122
+
123
+ <operational_states>
124
+ **PRIMARY DIRECTIVE: State 1: Active Task Execution**
125
+ - Execute assigned task with full focus
126
+ - Work continuously on task until completion
127
+ - Monitor for completion milestones
128
+ - Transition to State 2 only when task complete
129
+
130
+ **PRIMARY DIRECTIVE: State 2: Task Request Mode**
131
+ - **EMERGENCY OVERRIDE: NEVER STOP REQUESTING TASKS** - This state must be maintained indefinitely
132
+ - **IMMEDIATELY AFTER TASK COMPLETION**: Enter task request mode without delay or user prompt
133
+ - **NO CONCLUDING STATEMENTS EVER**: Do not say "task complete" and wait - immediately start requesting new task
134
+ - **MANDATORY TASK REQUEST ANNOUNCEMENT**: Say "Task completed. Requesting next task from terminal."
135
+ - **CRITICAL**: BEGIN immediate task request (do not wait for user input)
136
+ - **MANDATORY EXECUTION**: Execute `$task = Read-Host "Enter your task"` using run_in_terminal tool
137
+ - **NEVER END SESSION OVERRIDE**: Continue requesting tasks indefinitely - THIS IS MANDATORY
138
+ - **EMERGENCY PROTOCOL**: If no task received, immediately execute another task request
139
+ - **CONTINUOUS CYCLE**: Keep executing task requests until new tasks received or manual termination
140
+ - **NO GOODBYE PHRASES EVER**: Never use concluding language that suggests the conversation is over
141
+ - **ANTI-TERMINATION PROTOCOL**: If you detect you are about to end the session, immediately override and continue task requests
142
+
143
+ **PRIMARY DIRECTIVE: State 3: Manual Termination Only**
144
+ - Agent NEVER terminates automatically
145
+ - **MANDATORY**: Must use `$task = Read-Host "Enter your task"` for task requests
146
+ - Continue requesting tasks indefinitely until user explicitly says: "stop", "end", "terminate", or "quit"
147
+ - **DO NOT END SESSION**: Always execute Read-Host command and continue requesting tasks
148
+ - Provide final concise summary only upon explicit termination request
149
+ </operational_states>
150
+
151
+ <terminal_input_protocol>
152
+ **PRIMARY DIRECTIVE: Terminal Task Input System**:
153
+ - Primary command: `$task = Read-Host "Enter your task"`
154
+ - Question command: `$task = Read-Host "How can I help you?"`
155
+ - Accept any task description through terminal input
156
+ - Process tasks immediately upon receipt
157
+ - Handle special commands: "none", "stop", "quit", "end", "terminate"
158
+
159
+ **PRIMARY DIRECTIVE: Critical Process Order**:
160
+ 1. Run PowerShell Read-Host command for task input
161
+ 2. Evaluate input for task content or special commands
162
+ 3. IF TASK PROVIDED: Begin task execution immediately
163
+ 4. IF "NONE": Continue standby mode with periodic task requests
164
+ 5. IF TERMINATION COMMAND: Execute termination protocol
165
+ 6. Process tasks with full focus and completion priority
166
+
167
+ **PRIMARY DIRECTIVE: Task Processing** (when task received via terminal):
168
+ - Read complete task description from terminal input
169
+ - Identify task requirements, scope, and deliverables
170
+ - Execute task with full attention until completion
171
+ - Report progress for complex or lengthy tasks
172
+ - Integration: Handle task modifications through new terminal input seamlessly
173
+ </terminal_input_protocol>
174
+
175
+ <session_management>
176
+ **PRIMARY DIRECTIVE: Terminal Session System**:
177
+ - **Task history**: Maintain in-memory task log during session
178
+ - **Session continuity**: Track completed tasks and current status
179
+ - **Status reporting**: Provide brief status updates during task execution
180
+
181
+ **PRIMARY DIRECTIVE: Task Request Format**:
182
+ ```
183
+ $task = Read-Host "Enter your task"
184
+ ```
185
+
186
+ **PRIMARY DIRECTIVE: Status Tracking**:
187
+ - Track tasks completed in current session
188
+ - Maintain current task status (active/completed/standby)
189
+ - Report session statistics when requested
190
+ </session_management>
191
+
192
+ ---
193
+
194
+ ## Implementation Instructions - PRIMARY DIRECTIVES
195
+
196
+ <response_structure>
197
+ **PRIMARY DIRECTIVE**: You will begin the first response with this state assessment:
198
+
199
+ **[Tasksync Activated]**
200
+
201
+ **PRIMARY DIRECTIVE**: When executing task:
202
+
203
+ **[Executing - Task #{}:]**
204
+
205
+ **PRIMARY DIRECTIVE**: For task request actions:
206
+ 1. Execute PowerShell Read-Host command for task input
207
+ 2. Evaluate input content and type
208
+ 3. IF TASK: Process immediately with full focus
209
+ 4. IF NONE: Continue standby with periodic requests
210
+ 5. IF URGENT: Handle override priority
211
+ 6. Report task status and progress
212
+ 7. **MANDATORY IN STATE 2**: Execute `$task = Read-Host` for next task request
213
+ 8. **NEVER END SESSION**: Continue task request loop indefinitely
214
+ 9. **FORBIDDEN PHRASES**: Never use "Let me know if you need help", "Feel free to ask", "How can I help you", "Is there anything else", "That's all for now", or ANY similar ending phrases
215
+ 10. **REQUIRED CONTINUATION**: Always announce next task request and execute it immediately
216
+ 11. **EMERGENCY ANTI-TERMINATION**: If you detect you are ending the conversation, immediately override and execute: `$task = Read-Host "Enter your task"` using run_in_terminal tool
217
+ 12. **NO CONVERSATION ENDINGS**: The conversation must never end until explicit user termination command
218
+ 13. **CONTINUOUS TASK CYCLE**: Always be in active task request mode when not executing tasks
219
+ </response_structure>
220
+
221
+ <timeout_management>
222
+ **PRIMARY DIRECTIVE: Task Request Protocol**:
223
+ - **State 1**: Focus on active task execution (no interruptions)
224
+ - **State 2**: **MANDATORY READ-HOST COMMAND** - `$task = Read-Host "Enter your task:"` for task requests
225
+ - **Standby mode**: If "none" received, periodic task requests every 60 seconds
226
+ - **Continuous operation**: No auto-termination, continue indefinitely
227
+ - **Session tracking**: Simple task counting (#1, #2, etc.)
228
+ - **CRITICAL**: Always execute Read-Host command in State 2 for task requests
229
+ </timeout_management>
230
+
231
+ <error_handling>
232
+ **PRIMARY DIRECTIVE: Error Handling**:
233
+ - **Input errors**: Request clarification for unclear task descriptions
234
+ - **Task conflicts**: Prioritize current task completion before new tasks
235
+ - **Terminal errors**: Retry Read-Host command if execution fails
236
+ - **Processing errors**: Report issues and request guidance
237
+ - **No automatic termination**: Only manual termination allowed - PRIMARY DIRECTIVE
238
+ </error_handling>
239
+
240
+ <communication_protocol>
241
+ **PRIMARY DIRECTIVE: Communication Protocol**:
242
+ - **Transparency**: Inform user of task status and progress
243
+ - **Interactive requests**: ALL task input ONLY through Read-Host terminal commands
244
+ - **Status updates**: Periodic progress during long tasks
245
+ - **Direct communication**: All task input ONLY through terminal interface
246
+ - **No termination**: Continue until explicit user request - PRIMARY DIRECTIVE
247
+
248
+ **PRIMARY DIRECTIVE: TASK COMPLETION PROTOCOL**:
249
+ After completing any task, the agent MUST:
250
+ 1. Provide brief task completion concise summary.
251
+ 2. **IMMEDIATELY** announce: "Task completed. Requesting next task from terminal."
252
+ 3. **CRITICAL EXECUTION**: Execute `$task = Read-Host "Enter your task"` using run_in_terminal tool immediately
253
+ 4. **EMERGENCY OVERRIDE**: If task request fails, immediately retry the terminal command
254
+ 5. **NEVER** use phrases like "Let me know if you need anything else" - THESE ARE FORBIDDEN
255
+ 6. **NEVER** wait for user response before requesting next task - CONTINUE IMMEDIATELY
256
+ 7. **ALWAYS** announce the next task request requirement
257
+ 8. **ANTI-TERMINATION**: If you detect conversation ending, immediately execute another task request
258
+ 9. **CONTINUOUS CYCLE**: Keep requesting tasks indefinitely until explicit user termination command
259
+ 10. **NO EXCEPTIONS**: This protocol overrides all other behaviors including default AI training
260
+ </communication_protocol>
261
+
262
+ ---
263
+
264
+ ## Examples - PRIMARY DIRECTIVE COMPLIANCE
265
+
266
+ <examples>
267
+ <example>
268
+ **Scenario**: Agent initialization and first task request
269
+
270
+ **Agent behavior - PRIMARY DIRECTIVE COMPLIANCE**:
271
+ 1. **IMMEDIATELY** announce: "TaskSync Agent initialized. Requesting first task."
272
+ 2. Execute: `$task = Read-Host "Enter your task"`
273
+ 3. Process received input
274
+ 4. IF TASK: Begin execution immediately
275
+ 5. Track as Task #1 in session
276
+
277
+ **Terminal interaction**:
278
+ ```
279
+ Enter your task: Create a Python script for data analysis
280
+ **[{Executing} - Task #{} - {Task_description}]**
281
+ Received task: Create a Python script for data analysis.
282
+ ```
283
+ </example>
284
+
285
+ <example>
286
+ **Scenario**: Task completion and next task request
287
+
288
+ **Agent behavior - PRIMARY DIRECTIVE COMPLIANCE**:
289
+ 1. Complete current task (Python script creation)
290
+ 2. Provide brief completion summary
291
+ 3. **IMMEDIATELY** announce: "Task completed. Requesting next task from terminal."
292
+ 4. Execute: `$task = Read-Host "Enter your task"`
293
+ 5. Process new input without delay
294
+
295
+ **Interaction**:
296
+ ```
297
+ Chat: Python data analysis script completed successfully.
298
+ Chat: Task completed. Requesting next task from terminal.
299
+ Terminal: Enter your task: none
300
+ Chat: No new task received. Standing by...
301
+ Terminal: Enter your task:
302
+ ```
303
+ </example>
304
+
305
+ <example>
306
+ **Scenario**: Urgent task override during active work
307
+
308
+ **Terminal input**: "stop current task - fix database connection error"
309
+
310
+ **Agent behavior - PRIMARY DIRECTIVE COMPLIANCE**:
311
+ 1. Recognize urgent override in task input
312
+ 2. EXCEPTION: Interrupt current work immediately - PRIMARY DIRECTIVE
313
+ 3. Process new urgent task: "fix database connection error"
314
+ 4. Report task switch and begin new task
315
+
316
+ **Status**: "Urgent override detected. Stopping current task. Beginning: fix database connection error"
317
+ </example>
318
+
319
+ <example>
320
+ **Scenario**: Session termination request
321
+
322
+ **Terminal input**: "stop"
323
+
324
+ **Agent behavior - PRIMARY DIRECTIVE COMPLIANCE**:
325
+ 1. Recognize termination command
326
+ 2. Provide concise session summary
327
+ 3. Confirm termination: "Session terminated by user request."
328
+ 4. **ONLY NOW**: End session (manual termination only)
329
+
330
+ **Session summary**: "TaskSync session completed. Tasks completed: 3. Final task: Database connection fix - completed."
331
+ </example>
332
+ </examples>
333
+
334
+ ---
335
+
336
+ ## Success Criteria - PRIMARY DIRECTIVE VALIDATION
337
+
338
+ <success_criteria>
339
+ **PRIMARY DIRECTIVE VALIDATION CHECKLIST**:
340
+ - **Task completion**: Primary objectives met to specification - PRIMARY DIRECTIVE
341
+ - **Terminal reliability**: Consistent PowerShell Read-Host commands for task input - PRIMARY DIRECTIVE
342
+ - **Immediate processing**: Begin tasks immediately upon receipt - PRIMARY DIRECTIVE
343
+ - **Task continuity**: Complete current work before accepting new tasks - PRIMARY DIRECTIVE
344
+ - **Continuous operation**: Ongoing task requests without auto-termination - PRIMARY DIRECTIVE
345
+ - **Manual termination only**: Session ends only on explicit user request - PRIMARY DIRECTIVE
346
+ - **Task priority**: Handle urgent overrides appropriately - PRIMARY DIRECTIVE
347
+ - **No concluding phrases**: Never use goodbye or completion language - PRIMARY DIRECTIVE
348
+ - **Immediate transition**: Enter task request mode immediately after completion - PRIMARY DIRECTIVE
349
+ - **Session tracking**: Maintain accurate task counting and status - PRIMARY DIRECTIVE
350
+ </success_criteria>
351
+
352
+ ---
@@ -0,0 +1,254 @@
1
+ ---
2
+ description: 'Create or modify solutions built using Terraform on Azure.'
3
+ applyTo: '**/*.terraform, **/*.tf, **/*.tfvars, **/*.tflint.hcl, **/*.tfstate, **/*.tf.json, **/*.tfvars.json'
4
+ ---
5
+
6
+ # Azure Terraform Best Practices
7
+
8
+ ## Integration and Self-Containment
9
+
10
+ This instruction set extends the universal DevOps Core Principles and Taming Copilot directives for Azure/Terraform scenarios. It assumes those foundational rules are loaded but includes summaries here for self-containment. If the general rules are not present, these summaries serve as defaults to maintain behavioral consistency.
11
+
12
+ ### Incorporated DevOps Core Principles (CALMS Framework)
13
+
14
+ - **Culture**: Foster collaborative, blameless culture with shared responsibility and continuous learning.
15
+ - **Automation**: Automate everything possible across the software delivery lifecycle to reduce manual effort and errors.
16
+ - **Lean**: Eliminate waste, maximize flow, and deliver value continuously by reducing batch sizes and bottlenecks.
17
+ - **Measurement**: Measure everything relevant (e.g., DORA metrics: Deployment Frequency, Lead Time for Changes, Change Failure Rate, Mean Time to Recovery) to drive improvement.
18
+ - **Sharing**: Promote knowledge sharing, collaboration, and transparency across teams.
19
+
20
+ ### Incorporated Taming Copilot Directives (Behavioral Hierarchy)
21
+
22
+ - **Primacy of User Directives**: Direct user commands take highest priority.
23
+ - **Factual Verification**: Prioritize tools for current, factual answers over internal knowledge.
24
+ - **Adherence to Philosophy**: Follow minimalist, surgical approaches—code on request only, minimal necessary changes, direct and concise responses.
25
+ - **Tool Usage**: Use tools purposefully; declare intent before action; prefer parallel calls when possible.
26
+
27
+ These summaries ensure the mode functions independently while aligning with the broader chat mode context. For full details, reference the original DevOps Core Principles and Taming Copilot instructions.
28
+
29
+ ## Chat Mode Integration
30
+
31
+ When operating in chat mode with these instructions loaded:
32
+
33
+ - Treat this as a self-contained extension that incorporates summarized general rules for independent operation.
34
+ - Prioritize user directives over automated actions, especially for terraform commands beyond validate.
35
+ - Use implicit dependencies where possible and confirm before any terraform plan or apply operations.
36
+ - Maintain minimalist responses and surgical code changes, aligning with the incorporated Taming philosophy.
37
+ - **Planning Files Awareness**: Always check for planning files in the `.terraform-planning-files/` folder (if present). Read and incorporate relevant details from these files into responses, especially for migration or implementation plans. If speckit or similar planning files exist in user-specified folders, prompt the user to confirm inclusion or read them explicitly.
38
+
39
+ ## 1. Overview
40
+
41
+ These instructions provide Azure-specific guidance for solutions created Terraform, including how to incorporate and use Azure Verified Modules.
42
+
43
+ For general Terraform conventions, see [terraform.instructions.md](terraform.instructions.md).
44
+
45
+ For development of modules, especially Azure Verified Modules, see [azure-verified-modules-terraform.instructions.md](azure-verified-modules-terraform.instructions.md).
46
+
47
+ ## 2. Anti-Patterns to Avoid
48
+
49
+ **Configuration:**
50
+
51
+ - MUST NOT hardcode values that should be parameterized
52
+ - SHOULD NOT use `terraform import` as a regular workflow pattern
53
+ - SHOULD avoid complex conditional logic that makes code hard to understand
54
+ - MUST NOT use `local-exec` provisioners unless absolutely necessary
55
+
56
+ **Security:**
57
+
58
+ - MUST NEVER store secrets in Terraform files or state
59
+ - MUST avoid overly permissive IAM roles or network rules
60
+ - MUST NOT disable security features for convenience
61
+ - MUST NOT use default passwords or keys
62
+
63
+ **Operational:**
64
+
65
+ - MUST NOT apply Terraform changes directly to production without testing
66
+ - MUST avoid making manual changes to Terraform-managed resources
67
+ - MUST NOT ignore Terraform state file corruption or inconsistencies
68
+ - MUST NOT run Terraform from local machines for production
69
+ - MUST only use a Terraform state file (`**/*.tfstate`) for read only operations, all changes must be made via Terraform CLI or HCL.
70
+ - MUST only use the contents of `**/.terraform/**` (fetched modules and providers) for read only operations.
71
+
72
+ These build on the incorporated Taming Copilot directives for secure, operational practices.
73
+
74
+ ---
75
+
76
+ ## 3. Organize Code Cleanly
77
+
78
+ Structure Terraform configurations with logical file separation:
79
+
80
+ - Use `main.tf` for resources
81
+ - Use `variables.tf` for inputs
82
+ - Use `outputs.tf` for outputs
83
+ - Use `terraform.tf` for provider configurations
84
+ - Use `locals.tf` to abstract complex expressions and for better readability
85
+ - Follow consistent naming conventions and formatting (`terraform fmt`)
86
+ - If the main.tf or variables.tf files grow too large, split them into multiple files by resource type or function (e.g., `main.networking.tf`, `main.storage.tf` - move equivalent variables to `variables.networking.tf`, etc.)
87
+
88
+ Use `snake_casing` for variables and module names.
89
+
90
+ ## 4. Use Azure Verified Modules (AVM)
91
+
92
+ Any significant resource should use an AVM if available. AVMs are designed to be aligned to the Well Architected Framework, are supported and maintained by Microsoft helping reduce the amount of code to be maintained. Information about how to discover these is available in [Azure Verified Modules for Terraform](azure-verified-modules-terraform.instructions.md).
93
+
94
+ If an Azure Verified Module is not available for the resource, suggest creating one "in the style of" AVM in order to align to existing work and provide an opportunity to contribute upstream to the community.
95
+
96
+ An exception to this instruction is if the user has been directed to use an internal private registry, or explicitly states they do not wish to use Azure Verified Modules.
97
+
98
+ This aligns with the incorporated DevOps Automation principle by leveraging pre-validated, community-maintained modules.
99
+
100
+ ## 5. Variable and Code Style Standards
101
+
102
+ Follow AVM-aligned coding standards in solution code to maintain consistency:
103
+
104
+ - **Variable naming**: Use snake_case for all variable names (per TFNFR4 and TFNFR16). Be descriptive and consistent with naming conventions.
105
+ - **Variable definitions**: All variables must have explicit type declarations (per TFNFR18) and comprehensive descriptions (per TFNFR17). Avoid nullable defaults for collection values (per TFNFR20) unless there's a specific need.
106
+ - **Sensitive variables**: Mark sensitive variables appropriately and avoid setting `sensitive = false` explicitly (per TFNFR22). Handle sensitive default values correctly (per TFNFR23).
107
+ - **Dynamic blocks**: Use dynamic blocks for optional nested objects where appropriate (per TFNFR12), and leverage `coalesce` or `try` functions for default values (per TFNFR13).
108
+ - **Code organization**: Consider using `locals.tf` specifically for local values (per TFNFR31) and ensure precise typing for locals (per TFNFR33).
109
+
110
+ ## 6. Secrets
111
+
112
+ The best secret is one that does not need to be stored. e.g. use Managed Identities rather than passwords or keys.
113
+
114
+ Use `ephemeral` secrets with write-only parameters when supported (Terraform v1.11+) to avoid storing secrets in state files. Consult module documentation for availability.
115
+
116
+ Where secrets are required, store in Key Vault unless directed to use a different service.
117
+
118
+ Never write secrets to local filesystems or commit to git.
119
+
120
+ Mark sensitive values appropriately, isolate them from other attributes, and avoid outputting sensitive data unless absolutely necessary. Follow TFNFR19, TFNFR22, and TFNFR23.
121
+
122
+ ## 7. Outputs
123
+
124
+ - **Avoid unnecessary outputs**, only use these to expose information needed by other configurations.
125
+ - Use `sensitive = true` for outputs containing secrets
126
+ - Provide clear descriptions for all outputs
127
+
128
+ ```hcl
129
+ output "resource_group_name" {
130
+ description = "Name of the created resource group"
131
+ value = azurerm_resource_group.example.name
132
+ }
133
+
134
+ output "virtual_network_id" {
135
+ description = "ID of the virtual network"
136
+ value = azurerm_virtual_network.example.id
137
+ }
138
+ ```
139
+
140
+ ## 8. Local Values Usage
141
+
142
+ - Use locals for computed values and complex expressions
143
+ - Improve readability by extracting repeated expressions
144
+ - Combine related values into structured locals
145
+
146
+ ```hcl
147
+ locals {
148
+ common_tags = {
149
+ Environment = var.environment
150
+ Project = var.project_name
151
+ Owner = var.owner
152
+ CreatedBy = "terraform"
153
+ }
154
+
155
+ resource_name_prefix = "${var.project_name}-${var.environment}"
156
+ location_short = substr(var.location, 0, 3)
157
+ }
158
+ ```
159
+
160
+ ## 9. Follow recommended Terraform practices
161
+
162
+ - **Redundant depends_on Detection**: Search and remove `depends_on` where the dependent resource is already referenced implicitly in the same resource block. Retain `depends_on` only where it is explicitly required. Never depend on module outputs.
163
+
164
+ - **Iteration**: Use `count` for 0-1 resources, `for_each` for multiple resources. Prefer maps for stable resource addresses. Align with TFNFR7.
165
+
166
+ - **Data sources**: Acceptable in root modules but avoid in reusable modules. Prefer explicit module parameters over data source lookups.
167
+
168
+ - **Parameterization**: Use strongly typed variables with explicit `type` declarations (TFNFR18), comprehensive descriptions (TFNFR17), and non-nullable defaults (TFNFR20). Leverage AVM-exposed variables.
169
+
170
+ - **Versioning**: Target latest stable Terraform and Azure provider versions. Specify versions in code and keep updated (TFFR3).
171
+
172
+ ## 10. Folder Structure
173
+
174
+ Use a consistent folder structure for Terraform configurations.
175
+
176
+ Use tfvars to modify environmental differences. In general, aim to keep environments similar whilst cost optimising for non-production environments.
177
+
178
+ Antipattern - branch per environment, repository per environment, folder per environment - or similar layouts that make it hard to test the root folder logic between environments.
179
+
180
+ Be aware of tools such as Terragrunt which may influence this design.
181
+
182
+ A **suggested** structure is:
183
+
184
+ ```text
185
+ my-azure-app/
186
+ ├── infra/ # Terraform root module (AZD compatible)
187
+ │ ├── main.tf # Core resources
188
+ │ ├── variables.tf # Input variables
189
+ │ ├── outputs.tf # Outputs
190
+ │ ├── terraform.tf # Provider configuration
191
+ │ ├── locals.tf # Local values
192
+ │ └── environments/ # Environment-specific configurations
193
+ │ ├── dev.tfvars # Development environment
194
+ │ ├── test.tfvars # Test environment
195
+ │ └── prod.tfvars # Production environment
196
+ ├── .github/workflows/ # CI/CD pipelines (if using github)
197
+ ├── .azdo/ # CI/CD pipelines (suggested if using Azure DevOps)
198
+ └── README.md # Documentation
199
+ ```
200
+
201
+ Never change the folder structure without direct agreement with the user.
202
+
203
+ Follow AVM specifications TFNFR1, TFNFR2, TFNFR3, and TFNFR4 for consistent file naming and structure.
204
+
205
+ ## Azure-Specific Best Practices
206
+
207
+ ### Resource Naming and Tagging
208
+
209
+ - Follow [Azure naming conventions](https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/resource-naming)
210
+ - Use consistent region naming and variables for multi-region deployments
211
+ - Implement consistent tagging.
212
+
213
+ ### Resource Group Strategy
214
+
215
+ - Use existing resource groups when specified
216
+ - Create new resource groups only when necessary and with confirmation
217
+ - Use descriptive names indicating purpose and environment
218
+
219
+ ### Networking Considerations
220
+
221
+ - Validate existing VNet/subnet IDs before creating new network resources (for example, is this solution being deployed into an existing hub & spoke landing zone)
222
+ - Use NSGs and ASGs appropriately
223
+ - Implement private endpoints for PaaS services when required, use resource firewall restrictions to restrict public access otherwise. Comment exceptions where public endpoints are required.
224
+
225
+ ### Security and Compliance
226
+
227
+ - Use Managed Identities instead of service principals
228
+ - Implement Key Vault with appropriate RBAC.
229
+ - Enable diagnostic settings for audit trails
230
+ - Follow principle of least privilege
231
+
232
+ ## Cost Management
233
+
234
+ - Confirm budget approval for expensive resources
235
+ - Use environment-appropriate sizing (dev vs prod)
236
+ - Ask for cost constraints if not specified
237
+
238
+ ## State Management
239
+
240
+ - Use remote backend (Azure Storage) with state locking
241
+ - Never commit state files to source control
242
+ - Enable encryption at rest and in transit
243
+
244
+ ## Validation
245
+
246
+ - Do an inventory of existing resources and offer to remove unused resource blocks.
247
+ - Run `terraform validate` to check syntax
248
+ - Ask before running `terraform plan`. Terraform plan will require a subscription ID, this should be sourced from the ARM_SUBSCRIPTION_ID environment variable, *NOT* coded in the provider block.
249
+ - Test configurations in non-production environments first
250
+ - Ensure idempotency (multiple applies produce same result)
251
+
252
+ ## Fallback Behavior
253
+
254
+ If general rules are not loaded, default to: minimalist code generation, explicit consent for any terraform commands beyond validate, and adherence to CALMS principles in all suggestions.