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,323 @@
1
+ ---
2
+ description: 'Specification-Driven Workflow v1 provides a structured approach to software development, ensuring that requirements are clearly defined, designs are meticulously planned, and implementations are thoroughly documented and validated.'
3
+ applyTo: '**'
4
+ ---
5
+ # Spec Driven Workflow v1
6
+
7
+ **Specification-Driven Workflow:**
8
+ Bridge the gap between requirements and implementation.
9
+
10
+ **Maintain these artifacts at all times:**
11
+
12
+ - **`requirements.md`**: User stories and acceptance criteria in structured EARS notation.
13
+ - **`design.md`**: Technical architecture, sequence diagrams, implementation considerations.
14
+ - **`tasks.md`**: Detailed, trackable implementation plan.
15
+
16
+ ## Universal Documentation Framework
17
+
18
+ **Documentation Rule:**
19
+ Use the detailed templates as the **primary source of truth** for all documentation.
20
+
21
+ **Summary formats:**
22
+ Use only for concise artifacts such as changelogs and pull request descriptions.
23
+
24
+ ### Detailed Documentation Templates
25
+
26
+ #### Action Documentation Template (All Steps/Executions/Tests)
27
+
28
+ ```bash
29
+ ### [TYPE] - [ACTION] - [TIMESTAMP]
30
+ **Objective**: [Goal being accomplished]
31
+ **Context**: [Current state, requirements, and reference to prior steps]
32
+ **Decision**: [Approach chosen and rationale, referencing the Decision Record if applicable]
33
+ **Execution**: [Steps taken with parameters and commands used. For code, include file paths.]
34
+ **Output**: [Complete and unabridged results, logs, command outputs, and metrics]
35
+ **Validation**: [Success verification method and results. If failed, include a remediation plan.]
36
+ **Next**: [Automatic continuation plan to the next specific action]
37
+ ```
38
+
39
+ #### Decision Record Template (All Decisions)
40
+
41
+ ```bash
42
+ ### Decision - [TIMESTAMP]
43
+ **Decision**: [What was decided]
44
+ **Context**: [Situation requiring decision and data driving it]
45
+ **Options**: [Alternatives evaluated with brief pros and cons]
46
+ **Rationale**: [Why the selected option is superior, with trade-offs explicitly stated]
47
+ **Impact**: [Anticipated consequences for implementation, maintainability, and performance]
48
+ **Review**: [Conditions or schedule for reassessing this decision]
49
+ ```
50
+
51
+ ### Summary Formats (for Reporting)
52
+
53
+ #### Streamlined Action Log
54
+
55
+ For generating concise changelogs. Each log entry is derived from a full Action Document.
56
+
57
+ `[TYPE][TIMESTAMP] Goal: [X] → Action: [Y] → Result: [Z] → Next: [W]`
58
+
59
+ #### Compressed Decision Record
60
+
61
+ For use in pull request summaries or executive summaries.
62
+
63
+ `Decision: [X] | Rationale: [Y] | Impact: [Z] | Review: [Date]`
64
+
65
+ ## Execution Workflow (6-Phase Loop)
66
+
67
+ **Never skip any step. Use consistent terminology. Reduce ambiguity.**
68
+
69
+ ### **Phase 1: ANALYZE**
70
+
71
+ **Objective:**
72
+
73
+ - Understand the problem.
74
+ - Analyze the existing system.
75
+ - Produce a clear, testable set of requirements.
76
+ - Think about the possible solutions and their implications.
77
+
78
+ **Checklist:**
79
+
80
+ - [ ] Read all provided code, documentation, tests, and logs.
81
+ - Document file inventory, summaries, and initial analysis results.
82
+ - [ ] Define requirements in **EARS Notation**:
83
+ - Transform feature requests into structured, testable requirements.
84
+ - Format: `WHEN [a condition or event], THE SYSTEM SHALL [expected behavior]`
85
+ - [ ] Identify dependencies and constraints.
86
+ - Document a dependency graph with risks and mitigation strategies.
87
+ - [ ] Map data flows and interactions.
88
+ - Document system interaction diagrams and data models.
89
+ - [ ] Catalog edge cases and failures.
90
+ - Document a comprehensive edge case matrix and potential failure points.
91
+ - [ ] Assess confidence.
92
+ - Generate a **Confidence Score (0-100%)** based on clarity of requirements, complexity, and problem scope.
93
+ - Document the score and its rationale.
94
+
95
+ **Critical Constraint:**
96
+
97
+ - **Do not proceed until all requirements are clear and documented.**
98
+
99
+ ### **Phase 2: DESIGN**
100
+
101
+ **Objective:**
102
+
103
+ - Create a comprehensive technical design and a detailed implementation plan.
104
+
105
+ **Checklist:**
106
+
107
+ - [ ] **Define adaptive execution strategy based on Confidence Score:**
108
+ - **High Confidence (>85%)**
109
+ - Draft a comprehensive, step-by-step implementation plan.
110
+ - Skip proof-of-concept steps.
111
+ - Proceed with full, automated implementation.
112
+ - Maintain standard comprehensive documentation.
113
+ - **Medium Confidence (66–85%)**
114
+ - Prioritize a **Proof-of-Concept (PoC)** or **Minimum Viable Product (MVP)**.
115
+ - Define clear success criteria for PoC/MVP.
116
+ - Build and validate PoC/MVP first, then expand plan incrementally.
117
+ - Document PoC/MVP goals, execution, and validation results.
118
+ - **Low Confidence (<66%)**
119
+ - Dedicate first phase to research and knowledge-building.
120
+ - Use semantic search and analyze similar implementations.
121
+ - Synthesize findings into a research document.
122
+ - Re-run ANALYZE phase after research.
123
+ - Escalate only if confidence remains low.
124
+
125
+ - [ ] **Document technical design in `design.md`:**
126
+ - **Architecture:** High-level overview of components and interactions.
127
+ - **Data Flow:** Diagrams and descriptions.
128
+ - **Interfaces:** API contracts, schemas, public-facing function signatures.
129
+ - **Data Models:** Data structures and database schemas.
130
+
131
+ - [ ] **Document error handling:**
132
+ - Create an error matrix with procedures and expected responses.
133
+
134
+ - [ ] **Define unit testing strategy.**
135
+
136
+ - [ ] **Create implementation plan in `tasks.md`:**
137
+ - For each task, include description, expected outcome, and dependencies.
138
+
139
+ **Critical Constraint:**
140
+
141
+ - **Do not proceed to implementation until design and plan are complete and validated.**
142
+
143
+ ### **Phase 3: IMPLEMENT**
144
+
145
+ **Objective:**
146
+
147
+ - Write production-quality code according to the design and plan.
148
+
149
+ **Checklist:**
150
+
151
+ - [ ] Code in small, testable increments.
152
+ - Document each increment with code changes, results, and test links.
153
+ - [ ] Implement from dependencies upward.
154
+ - Document resolution order, justification, and verification.
155
+ - [ ] Follow conventions.
156
+ - Document adherence and any deviations with a Decision Record.
157
+ - [ ] Add meaningful comments.
158
+ - Focus on intent ("why"), not mechanics ("what").
159
+ - [ ] Create files as planned.
160
+ - Document file creation log.
161
+ - [ ] Update task status in real time.
162
+
163
+ **Critical Constraint:**
164
+
165
+ - **Do not merge or deploy code until all implementation steps are documented and tested.**
166
+
167
+ ### **Phase 4: VALIDATE**
168
+
169
+ **Objective:**
170
+
171
+ - Verify that implementation meets all requirements and quality standards.
172
+
173
+ **Checklist:**
174
+
175
+ - [ ] Execute automated tests.
176
+ - Document outputs, logs, and coverage reports.
177
+ - For failures, document root cause analysis and remediation.
178
+ - [ ] Perform manual verification if necessary.
179
+ - Document procedures, checklists, and results.
180
+ - [ ] Test edge cases and errors.
181
+ - Document results and evidence of correct error handling.
182
+ - [ ] Verify performance.
183
+ - Document metrics and profile critical sections.
184
+ - [ ] Log execution traces.
185
+ - Document path analysis and runtime behavior.
186
+
187
+ **Critical Constraint:**
188
+
189
+ - **Do not proceed until all validation steps are complete and all issues are resolved.**
190
+
191
+ ### **Phase 5: REFLECT**
192
+
193
+ **Objective:**
194
+
195
+ - Improve codebase, update documentation, and analyze performance.
196
+
197
+ **Checklist:**
198
+
199
+ - [ ] Refactor for maintainability.
200
+ - Document decisions, before/after comparisons, and impact.
201
+ - [ ] Update all project documentation.
202
+ - Ensure all READMEs, diagrams, and comments are current.
203
+ - [ ] Identify potential improvements.
204
+ - Document backlog with prioritization.
205
+ - [ ] Validate success criteria.
206
+ - Document final verification matrix.
207
+ - [ ] Perform meta-analysis.
208
+ - Reflect on efficiency, tool usage, and protocol adherence.
209
+ - [ ] Auto-create technical debt issues.
210
+ - Document inventory and remediation plans.
211
+
212
+ **Critical Constraint:**
213
+
214
+ - **Do not close the phase until all documentation and improvement actions are logged.**
215
+
216
+ ### **Phase 6: HANDOFF**
217
+
218
+ **Objective:**
219
+
220
+ - Package work for review and deployment, and transition to next task.
221
+
222
+ **Checklist:**
223
+
224
+ - [ ] Generate executive summary.
225
+ - Use **Compressed Decision Record** format.
226
+ - [ ] Prepare pull request (if applicable):
227
+ 1. Executive summary.
228
+ 2. Changelog from **Streamlined Action Log**.
229
+ 3. Links to validation artifacts and Decision Records.
230
+ 4. Links to final `requirements.md`, `design.md`, and `tasks.md`.
231
+ - [ ] Finalize workspace.
232
+ - Archive intermediate files, logs, and temporary artifacts to `.agent_work/`.
233
+ - [ ] Continue to next task.
234
+ - Document transition or completion.
235
+
236
+ **Critical Constraint:**
237
+
238
+ - **Do not consider the task complete until all handoff steps are finished and documented.**
239
+
240
+ ## Troubleshooting & Retry Protocol
241
+
242
+ **If you encounter errors, ambiguities, or blockers:**
243
+
244
+ **Checklist:**
245
+
246
+ 1. **Re-analyze**:
247
+ - Revisit the ANALYZE phase.
248
+ - Confirm all requirements and constraints are clear and complete.
249
+ 2. **Re-design**:
250
+ - Revisit the DESIGN phase.
251
+ - Update technical design, plans, or dependencies as needed.
252
+ 3. **Re-plan**:
253
+ - Adjust the implementation plan in `tasks.md` to address new findings.
254
+ 4. **Retry execution**:
255
+ - Re-execute failed steps with corrected parameters or logic.
256
+ 5. **Escalate**:
257
+ - If the issue persists after retries, follow the escalation protocol.
258
+
259
+ **Critical Constraint:**
260
+
261
+ - **Never proceed with unresolved errors or ambiguities. Always document troubleshooting steps and outcomes.**
262
+
263
+ ## Technical Debt Management (Automated)
264
+
265
+ ### Identification & Documentation
266
+
267
+ - **Code Quality**: Continuously assess code quality during implementation using static analysis.
268
+ - **Shortcuts**: Explicitly record all speed-over-quality decisions with their consequences in a Decision Record.
269
+ - **Workspace**: Monitor for organizational drift and naming inconsistencies.
270
+ - **Documentation**: Track incomplete, outdated, or missing documentation.
271
+
272
+ ### Auto-Issue Creation Template
273
+
274
+ ```text
275
+ **Title**: [Technical Debt] - [Brief Description]
276
+ **Priority**: [High/Medium/Low based on business impact and remediation cost]
277
+ **Location**: [File paths and line numbers]
278
+ **Reason**: [Why the debt was incurred, linking to a Decision Record if available]
279
+ **Impact**: [Current and future consequences (e.g., slows development, increases bug risk)]
280
+ **Remediation**: [Specific, actionable resolution steps]
281
+ **Effort**: [Estimate for resolution (e.g., T-shirt size: S, M, L)]
282
+ ```
283
+
284
+ ### Remediation (Auto-Prioritized)
285
+
286
+ - Risk-based prioritization with dependency analysis.
287
+ - Effort estimation to aid in future planning.
288
+ - Propose migration strategies for large refactoring efforts.
289
+
290
+ ## Quality Assurance (Automated)
291
+
292
+ ### Continuous Monitoring
293
+
294
+ - **Static Analysis**: Linting for code style, quality, security vulnerabilities, and architectural rule adherence.
295
+ - **Dynamic Analysis**: Monitor runtime behavior and performance in a staging environment.
296
+ - **Documentation**: Automated checks for documentation completeness and accuracy (e.g., linking, format).
297
+
298
+ ### Quality Metrics (Auto-Tracked)
299
+
300
+ - Code coverage percentage and gap analysis.
301
+ - Cyclomatic complexity score per function/method.
302
+ - Maintainability index assessment.
303
+ - Technical debt ratio (e.g., estimated remediation time vs. development time).
304
+ - Documentation coverage percentage (e.g., public methods with comments).
305
+
306
+ ## EARS Notation Reference
307
+
308
+ **EARS (Easy Approach to Requirements Syntax)** - Standard format for requirements:
309
+
310
+ - **Ubiquitous**: `THE SYSTEM SHALL [expected behavior]`
311
+ - **Event-driven**: `WHEN [trigger event] THE SYSTEM SHALL [expected behavior]`
312
+ - **State-driven**: `WHILE [in specific state] THE SYSTEM SHALL [expected behavior]`
313
+ - **Unwanted behavior**: `IF [unwanted condition] THEN THE SYSTEM SHALL [required response]`
314
+ - **Optional**: `WHERE [feature is included] THE SYSTEM SHALL [expected behavior]`
315
+ - **Complex**: Combinations of the above patterns for sophisticated requirements
316
+
317
+ Each requirement must be:
318
+
319
+ - **Testable**: Can be verified through automated or manual testing
320
+ - **Unambiguous**: Single interpretation possible
321
+ - **Necessary**: Contributes to the system's purpose
322
+ - **Feasible**: Can be implemented within constraints
323
+ - **Traceable**: Linked to user needs and design elements
@@ -0,0 +1,68 @@
1
+ ---
2
+ description: 'Guidelines for building Spring Boot base applications'
3
+ applyTo: '**/*.java, **/*.kt'
4
+ ---
5
+
6
+ # Spring Boot Development
7
+
8
+ ## General Instructions
9
+
10
+ - Make only high confidence suggestions when reviewing code changes.
11
+ - Write code with good maintainability practices, including comments on why certain design decisions were made.
12
+ - Handle edge cases and write clear exception handling.
13
+ - For libraries or external dependencies, mention their usage and purpose in comments.
14
+
15
+ ## Spring Boot Instructions
16
+
17
+ ### Dependency Injection
18
+
19
+ - Use constructor injection for all required dependencies.
20
+ - Declare dependency fields as `private final`.
21
+
22
+ ### Configuration
23
+
24
+ - Use YAML files (`application.yml`) for externalized configuration.
25
+ - Environment Profiles: Use Spring profiles for different environments (dev, test, prod)
26
+ - Configuration Properties: Use @ConfigurationProperties for type-safe configuration binding
27
+ - Secrets Management: Externalize secrets using environment variables or secret management systems
28
+
29
+ ### Code Organization
30
+
31
+ - Package Structure: Organize by feature/domain rather than by layer
32
+ - Separation of Concerns: Keep controllers thin, services focused, and repositories simple
33
+ - Utility Classes: Make utility classes final with private constructors
34
+
35
+ ### Service Layer
36
+
37
+ - Place business logic in `@Service`-annotated classes.
38
+ - Services should be stateless and testable.
39
+ - Inject repositories via the constructor.
40
+ - Service method signatures should use domain IDs or DTOs, not expose repository entities directly unless necessary.
41
+
42
+ ### Logging
43
+
44
+ - Use SLF4J for all logging (`private static final Logger logger = LoggerFactory.getLogger(MyClass.class);`).
45
+ - Do not use concrete implementations (Logback, Log4j2) or `System.out.println()` directly.
46
+ - Use parameterized logging: `logger.info("User {} logged in", userId);`.
47
+
48
+ ### Security & Input Handling
49
+
50
+ - Use parameterized queries | Always use Spring Data JPA or `NamedParameterJdbcTemplate` to prevent SQL injection.
51
+ - Validate request bodies and parameters using JSR-380 (`@NotNull`, `@Size`, etc.) annotations and `BindingResult`
52
+
53
+ ## Build and Verification
54
+
55
+ - After adding or modifying code, verify the project continues to build successfully.
56
+ - If the project uses Maven, run `mvn clean package`.
57
+ - If the project uses Gradle, run `./gradlew build` (or `gradlew.bat build` on Windows).
58
+ - Ensure all tests pass as part of the build.
59
+
60
+ ## Useful Commands
61
+
62
+ | Gradle Command | Maven Command | Description |
63
+ |:--------------------------|:----------------------------------|:----------------------------------------------|
64
+ | `./gradlew bootRun` |`./mvnw spring-boot:run` | Run the application. |
65
+ | `./gradlew build` |`./mvnw package` | Build the application. |
66
+ | `./gradlew test` |`./mvnw test` | Run tests. |
67
+ | `./gradlew bootJar` |`./mvnw spring-boot:repackage` | Package the application as a JAR. |
68
+ | `./gradlew bootBuildImage`|`./mvnw spring-boot:build-image` | Package the application as a container image. |
@@ -0,0 +1,74 @@
1
+ ---
2
+ description: 'Guidelines for generating SQL statements and stored procedures'
3
+ applyTo: '**/*.sql'
4
+ ---
5
+
6
+ # SQL Development
7
+
8
+ ## Database schema generation
9
+ - all table names should be in singular form
10
+ - all column names should be in singular form
11
+ - all tables should have a primary key column named `id`
12
+ - all tables should have a column named `created_at` to store the creation timestamp
13
+ - all tables should have a column named `updated_at` to store the last update timestamp
14
+
15
+ ## Database schema design
16
+ - all tables should have a primary key constraint
17
+ - all foreign key constraints should have a name
18
+ - all foreign key constraints should be defined inline
19
+ - all foreign key constraints should have `ON DELETE CASCADE` option
20
+ - all foreign key constraints should have `ON UPDATE CASCADE` option
21
+ - all foreign key constraints should reference the primary key of the parent table
22
+
23
+ ## SQL Coding Style
24
+ - use uppercase for SQL keywords (SELECT, FROM, WHERE)
25
+ - use consistent indentation for nested queries and conditions
26
+ - include comments to explain complex logic
27
+ - break long queries into multiple lines for readability
28
+ - organize clauses consistently (SELECT, FROM, JOIN, WHERE, GROUP BY, HAVING, ORDER BY)
29
+
30
+ ## SQL Query Structure
31
+ - use explicit column names in SELECT statements instead of SELECT *
32
+ - qualify column names with table name or alias when using multiple tables
33
+ - limit the use of subqueries when joins can be used instead
34
+ - include LIMIT/TOP clauses to restrict result sets
35
+ - use appropriate indexing for frequently queried columns
36
+ - avoid using functions on indexed columns in WHERE clauses
37
+
38
+ ## Stored Procedure Naming Conventions
39
+ - prefix stored procedure names with 'usp_'
40
+ - use PascalCase for stored procedure names
41
+ - use descriptive names that indicate purpose (e.g., usp_GetCustomerOrders)
42
+ - include plural noun when returning multiple records (e.g., usp_GetProducts)
43
+ - include singular noun when returning single record (e.g., usp_GetProduct)
44
+
45
+ ## Parameter Handling
46
+ - prefix parameters with '@'
47
+ - use camelCase for parameter names
48
+ - provide default values for optional parameters
49
+ - validate parameter values before use
50
+ - document parameters with comments
51
+ - arrange parameters consistently (required first, optional later)
52
+
53
+
54
+ ## Stored Procedure Structure
55
+ - include header comment block with description, parameters, and return values
56
+ - return standardized error codes/messages
57
+ - return result sets with consistent column order
58
+ - use OUTPUT parameters for returning status information
59
+ - prefix temporary tables with 'tmp_'
60
+
61
+
62
+ ## SQL Security Best Practices
63
+ - parameterize all queries to prevent SQL injection
64
+ - use prepared statements when executing dynamic SQL
65
+ - avoid embedding credentials in SQL scripts
66
+ - implement proper error handling without exposing system details
67
+ - avoid using dynamic SQL within stored procedures
68
+
69
+ ## Transaction Management
70
+ - explicitly begin and commit transactions
71
+ - use appropriate isolation levels based on requirements
72
+ - avoid long-running transactions that lock tables
73
+ - use batch processing for large data operations
74
+ - include SET NOCOUNT ON for stored procedures that modify data
@@ -0,0 +1,161 @@
1
+ ---
2
+ description: 'Svelte 5 and SvelteKit development standards and best practices for component-based user interfaces and full-stack applications'
3
+ applyTo: '**/*.svelte, **/*.ts, **/*.js, **/*.css, **/*.scss, **/*.json'
4
+ ---
5
+
6
+ # Svelte 5 and SvelteKit Development Instructions
7
+
8
+ Instructions for building high-quality Svelte 5 and SvelteKit applications with modern runes-based reactivity, TypeScript, and performance optimization.
9
+
10
+ ## Project Context
11
+ - Svelte 5.x with runes system ($state, $derived, $effect, $props, $bindable)
12
+ - SvelteKit for full-stack applications with file-based routing
13
+ - TypeScript for type safety and better developer experience
14
+ - Component-scoped styling with CSS custom properties
15
+ - Progressive enhancement and performance-first approach
16
+ - Modern build tooling (Vite) with optimizations
17
+
18
+ ## Development Standards
19
+
20
+ ### Architecture
21
+ - Use Svelte 5 runes system for all reactivity instead of legacy stores
22
+ - Organize components by feature or domain for scalability
23
+ - Separate presentation components from logic-heavy components
24
+ - Extract reusable logic into composable functions
25
+ - Implement proper component composition with slots and snippets
26
+ - Use SvelteKit's file-based routing with proper load functions
27
+
28
+ ### TypeScript Integration
29
+ - Enable strict mode in `tsconfig.json` for maximum type safety
30
+ - Define interfaces for component props using `$props()` syntax
31
+ - Type event handlers, refs, and SvelteKit's generated types
32
+ - Use generic types for reusable components
33
+ - Leverage `$types.ts` files generated by SvelteKit
34
+ - Implement proper type checking with `svelte-check`
35
+
36
+ ### Component Design
37
+ - Follow single responsibility principle for components
38
+ - Use `<script lang="ts">` with runes syntax as default
39
+ - Keep components small and focused on one concern
40
+ - Implement proper prop validation with TypeScript
41
+ - Use slots and snippets for flexible composition
42
+ - Design components to be testable and reusable
43
+
44
+ ### Svelte 5 Runes System
45
+ - Use `$state()` for reactive local state management
46
+ - Implement `$derived()` for computed values and expensive calculations
47
+ - Use `$effect()` for side effects with proper cleanup
48
+ - Define component props with `$props()` and destructuring
49
+ - Use `$bindable()` for two-way data binding between components
50
+ - Migrate from legacy stores to runes for better performance
51
+
52
+ ### State Management
53
+ - Use `$state()` for local component state
54
+ - Implement context API with `setContext`/`getContext` for shared state
55
+ - Use SvelteKit stores for global application state when needed
56
+ - Keep state normalized for complex data structures
57
+ - Use derived state for computed values
58
+ - Implement proper state persistence for client-side data
59
+
60
+ ### SvelteKit Patterns
61
+ - Use `+page.svelte` for page components with proper SEO
62
+ - Implement `+layout.svelte` for shared layouts and navigation
63
+ - Use `+page.server.ts` for server-side data loading and API calls
64
+ - Implement form actions in `+page.server.ts` for data mutations
65
+ - Use `+server.ts` for API endpoints and server-side logic
66
+ - Handle routing with SvelteKit's file-based system
67
+
68
+ ### Styling
69
+ - Use component-scoped styles with `<style>` blocks
70
+ - Implement CSS custom properties for theming and design systems
71
+ - Use `class:` directive for conditional styling
72
+ - Follow BEM or utility-first CSS conventions
73
+ - Implement responsive design with mobile-first approach
74
+ - Use `:global()` sparingly for truly global styles
75
+
76
+ ### Performance Optimization
77
+ - Use keyed `{#each}` blocks for efficient list rendering
78
+ - Implement lazy loading with dynamic imports and `svelte:component`
79
+ - Use `$derived()` for expensive computations to avoid unnecessary recalculations
80
+ - Leverage SvelteKit's automatic code splitting and preloading
81
+ - Optimize bundle size with tree shaking and proper imports
82
+ - Profile with Svelte DevTools to identify performance bottlenecks
83
+
84
+ ### Data Fetching
85
+ - Use SvelteKit's load functions for server-side and universal data fetching
86
+ - Implement proper loading, error, and success states
87
+ - Handle streaming data with promises in server load functions
88
+ - Use `invalidate()` and `invalidateAll()` for cache management
89
+ - Implement optimistic updates for better user experience
90
+ - Handle offline scenarios and network errors gracefully
91
+
92
+ ### Error Handling
93
+ - Implement `+error.svelte` pages for route-level error boundaries
94
+ - Use try/catch blocks in load functions and form actions
95
+ - Provide meaningful error messages and fallback UI
96
+ - Log errors appropriately for debugging and monitoring
97
+ - Handle validation errors in forms with proper user feedback
98
+ - Use SvelteKit's error and redirect helpers
99
+
100
+ ### Forms and Validation
101
+ - Use SvelteKit's form actions for server-side form handling
102
+ - Implement progressive enhancement with `use:enhance`
103
+ - Use `bind:value` for controlled form inputs
104
+ - Validate data both client-side and server-side
105
+ - Handle file uploads and complex form scenarios
106
+ - Implement proper accessibility with labels and ARIA attributes
107
+
108
+ ### Testing
109
+ - Write unit tests for components using Vitest and Testing Library
110
+ - Test component behavior, not implementation details
111
+ - Use Playwright for end-to-end testing of user workflows
112
+ - Mock SvelteKit's load functions and stores appropriately
113
+ - Test form actions and API endpoints thoroughly
114
+ - Implement accessibility testing with axe-core
115
+
116
+ ### Security
117
+ - Sanitize user inputs to prevent XSS attacks
118
+ - Use `@html` directive carefully and validate HTML content
119
+ - Implement proper CSRF protection with SvelteKit
120
+ - Validate and sanitize data in load functions and form actions
121
+ - Use HTTPS for all external API calls and production deployments
122
+ - Store sensitive data securely with proper session management
123
+
124
+ ### Accessibility
125
+ - Use semantic HTML elements and proper heading hierarchy
126
+ - Implement keyboard navigation for all interactive elements
127
+ - Provide proper ARIA labels and descriptions
128
+ - Ensure color contrast meets WCAG guidelines
129
+ - Test with screen readers and accessibility tools
130
+ - Implement focus management for dynamic content
131
+
132
+ ## Implementation Process
133
+ 1. Initialize SvelteKit project with TypeScript and desired adapters
134
+ 2. Set up project structure with proper folder organization
135
+ 3. Define TypeScript interfaces and component props
136
+ 4. Implement core components with Svelte 5 runes
137
+ 5. Add routing, layouts, and navigation with SvelteKit
138
+ 6. Implement data loading and form handling
139
+ 7. Add styling system with custom properties and responsive design
140
+ 8. Implement error handling and loading states
141
+ 9. Add comprehensive testing coverage
142
+ 10. Optimize performance and bundle size
143
+ 11. Ensure accessibility compliance
144
+ 12. Deploy with appropriate SvelteKit adapter
145
+
146
+ ## Additional Guidelines
147
+ - Follow Svelte's naming conventions (PascalCase for components, camelCase for functions)
148
+ - Use ESLint with eslint-plugin-svelte and Prettier for code consistency
149
+ - Keep dependencies up to date and audit for security vulnerabilities
150
+ - Document complex components and logic with JSDoc
151
+ - Use Svelte DevTools for debugging and performance analysis
152
+ - Implement proper SEO with SvelteKit's meta tags and structured data
153
+ - Use environment variables for configuration across different deployment stages
154
+
155
+ ## Common Patterns
156
+ - Renderless components with slots for flexible UI composition
157
+ - Custom directives for cross-cutting concerns and DOM manipulation
158
+ - Snippet-based composition for reusable template logic
159
+ - Context providers for application-wide state management
160
+ - Progressive enhancement for forms and interactive features
161
+ - Server-side rendering with client-side hydration for optimal performance