@totaland/create-starter-kit 1.0.0 → 2.0.1

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 (228) hide show
  1. package/README.md +130 -18
  2. package/bin/index.js +109 -21
  3. package/package.json +2 -2
  4. package/templates/backend/.github/agents/ /360/237/216/255 planner.agent.md" +92 -0
  5. package/templates/backend/.github/agents/api-architect.agent.md +41 -0
  6. package/templates/backend/.github/agents/code-reviewer.agent.md +26 -0
  7. package/templates/backend/.github/agents/code-simplifier.agent.md +41 -0
  8. package/templates/backend/.github/agents/code-skeptic.agent.md +74 -0
  9. package/templates/backend/.github/agents/docs-specialist.agent.md +25 -0
  10. package/templates/backend/.github/agents/implementation-plan.agent.md +160 -0
  11. package/templates/backend/.github/agents/janitor.agent.md +90 -0
  12. package/templates/backend/.github/agents/ms-sql-dba.agent.md +25 -0
  13. package/templates/backend/.github/agents/plan.agent.md +115 -0
  14. package/templates/backend/.github/agents/planner.agent.md +15 -0
  15. package/templates/backend/.github/agents/playwright-tester.agent.md +13 -0
  16. package/templates/backend/.github/agents/postgresql-dba.agent.md +18 -0
  17. package/templates/backend/.github/agents/prd.agent.md +202 -0
  18. package/templates/backend/.github/agents/research-technical-spike.agent.md +170 -0
  19. package/templates/backend/.github/agents/software-engineer-agent-v1.agent.md +165 -0
  20. package/templates/backend/.github/agents/task-planner.agent.md +375 -0
  21. package/templates/backend/.github/agents/task-researcher.agent.md +255 -0
  22. package/templates/backend/.github/agents/tdd-green.agent.md +60 -0
  23. package/templates/backend/.github/agents/tdd-red.agent.md +60 -0
  24. package/templates/backend/.github/agents/tdd-refactor.agent.md +85 -0
  25. package/templates/backend/.github/agents/tech-debt-remediation-plan.agent.md +50 -0
  26. package/templates/backend/.github/agents/typescript-mcp-expert.agent.md +91 -0
  27. package/templates/backend/.github/agents/ultimate-thinking-beastmode.agent.md +644 -0
  28. package/templates/backend/.github/agents//360/237/216/255 generator.agent.md" +264 -0
  29. package/templates/backend/.github/agents//360/237/216/255 healer.agent.md" +44 -0
  30. package/templates/backend/.github/agents//360/237/216/255 pom.agent.md" +308 -0
  31. package/templates/backend/.github/instructions/a11y.instructions.md +369 -0
  32. package/templates/backend/.github/instructions/ms-sql-dba.instructions.md +25 -0
  33. package/templates/backend/.github/instructions/object-calisthenics.instructions.md +302 -0
  34. package/templates/backend/.github/instructions/performance-optimization.instructions.md +420 -0
  35. package/templates/backend/.github/instructions/playwright-python.instructions.md +62 -0
  36. package/templates/backend/.github/instructions/playwright-typescript.instructions.md +86 -0
  37. package/templates/backend/.github/instructions/security-and-owasp.instructions.md +51 -0
  38. package/templates/backend/.github/instructions/self-explanatory-code-commenting.instructions.md +162 -0
  39. package/templates/backend/.github/instructions/spec-driven-workflow-v1.instructions.md +323 -0
  40. package/templates/backend/.github/instructions/sql-sp-generation.instructions.md +74 -0
  41. package/templates/backend/.github/instructions/task-implementation.instructions.md +190 -0
  42. package/templates/backend/.github/instructions/typescript-mcp-server.instructions.md +228 -0
  43. package/templates/backend/.github/prompts/ai-prompt-engineering-safety-review.prompt.md +229 -0
  44. package/templates/backend/.github/prompts/architecture-blueprint-generator.prompt.md +321 -0
  45. package/templates/backend/.github/prompts/breakdown-epic-arch.prompt.md +65 -0
  46. package/templates/backend/.github/prompts/breakdown-epic-pm.prompt.md +57 -0
  47. package/templates/backend/.github/prompts/breakdown-feature-implementation.prompt.md +127 -0
  48. package/templates/backend/.github/prompts/breakdown-feature-prd.prompt.md +60 -0
  49. package/templates/backend/.github/prompts/breakdown-plan.prompt.md +508 -0
  50. package/templates/backend/.github/prompts/copilot-instructions-blueprint-generator.prompt.md +293 -0
  51. package/templates/backend/.github/prompts/create-agentsmd.prompt.md +248 -0
  52. package/templates/backend/.github/prompts/create-github-issue-feature-from-specification.prompt.md +27 -0
  53. package/templates/backend/.github/prompts/create-github-issues-feature-from-implementation-plan.prompt.md +27 -0
  54. package/templates/backend/.github/prompts/create-github-issues-for-unmet-specification-requirements.prompt.md +35 -0
  55. package/templates/backend/.github/prompts/create-implementation-plan.prompt.md +156 -0
  56. package/templates/backend/.github/prompts/create-llms.prompt.md +209 -0
  57. package/templates/backend/.github/prompts/create-specification.prompt.md +126 -0
  58. package/templates/backend/.github/prompts/create-technical-spike.prompt.md +230 -0
  59. package/templates/backend/.github/prompts/csharp-nunit.prompt.md +71 -0
  60. package/templates/backend/.github/prompts/ef-core.prompt.md +76 -0
  61. package/templates/backend/.github/prompts/folder-structure-blueprint-generator.prompt.md +404 -0
  62. package/templates/backend/.github/prompts/gen-specs-as-issues.prompt.md +165 -0
  63. package/templates/backend/.github/prompts/generate-custom-instructions-from-codebase.prompt.md +239 -0
  64. package/templates/backend/.github/prompts/java-junit.prompt.md +64 -0
  65. package/templates/backend/.github/prompts/memory-merger.prompt.md +107 -0
  66. package/templates/backend/.github/prompts/multi-stage-dockerfile.prompt.md +46 -0
  67. package/templates/backend/.github/prompts/playwright-automation-fill-in-form.prompt.md +29 -0
  68. package/templates/backend/.github/prompts/playwright-explore-website.prompt.md +19 -0
  69. package/templates/backend/.github/prompts/playwright-generate-test.prompt.md +19 -0
  70. package/templates/backend/.github/prompts/postgresql-code-review.prompt.md +214 -0
  71. package/templates/backend/.github/prompts/postgresql-optimization.prompt.md +406 -0
  72. package/templates/backend/.github/prompts/project-workflow-analysis-blueprint-generator.prompt.md +294 -0
  73. package/templates/backend/.github/prompts/prompt-builder.prompt.md +142 -0
  74. package/templates/backend/.github/prompts/remember.prompt.md +125 -0
  75. package/templates/backend/.github/prompts/review-and-refactor.prompt.md +15 -0
  76. package/templates/backend/.github/prompts/sql-code-review.prompt.md +303 -0
  77. package/templates/backend/.github/prompts/sql-optimization.prompt.md +298 -0
  78. package/templates/backend/.github/prompts/suggest-awesome-github-copilot-agents.prompt.md +72 -0
  79. package/templates/backend/.github/prompts/suggest-awesome-github-copilot-chatmodes.prompt.md +71 -0
  80. package/templates/backend/.github/prompts/suggest-awesome-github-copilot-collections.prompt.md +149 -0
  81. package/templates/backend/.github/prompts/suggest-awesome-github-copilot-instructions.prompt.md +88 -0
  82. package/templates/backend/.github/prompts/suggest-awesome-github-copilot-prompts.prompt.md +71 -0
  83. package/templates/backend/.github/prompts/technology-stack-blueprint-generator.prompt.md +242 -0
  84. package/templates/backend/.github/prompts/typescript-mcp-server-generator.prompt.md +90 -0
  85. package/templates/backend/.github/prompts/update-implementation-plan.prompt.md +157 -0
  86. package/templates/backend/.github/prompts/update-markdown-file-index.prompt.md +76 -0
  87. package/templates/backend/Project_Folders_Structure_Blueprint.md +529 -0
  88. package/templates/backend/README.md +99 -0
  89. package/templates/backend/biome.json +45 -0
  90. package/{template → templates/backend}/drizzle.config.ts +1 -1
  91. package/{template → templates/backend}/package.json +9 -4
  92. package/templates/backend/pnpm-lock.yaml +4240 -0
  93. package/templates/backend/src/features/health/health.test.ts +23 -0
  94. package/{template → templates/backend}/src/features/health/index.ts +1 -0
  95. package/templates/backend/src/features/health/schemas.ts +29 -0
  96. package/templates/backend/src/features/orders/controller.ts +18 -0
  97. package/templates/backend/src/features/orders/index.ts +10 -0
  98. package/templates/backend/src/features/orders/schemas.ts +62 -0
  99. package/{template → templates/backend}/src/index.ts +3 -36
  100. package/templates/backend/src/lib/openapi.ts +25 -0
  101. package/templates/backend/src/lib/validateRequest.test.ts +84 -0
  102. package/templates/backend/src/lib/validateRequest.ts +72 -0
  103. package/{template → templates/backend}/tsconfig.json +2 -2
  104. package/{template → templates/backend}/vitest.config.ts +8 -1
  105. package/templates/frontend/.env.example +7 -0
  106. package/templates/frontend/.github/agents/ /360/237/216/255 planner.agent.md" +92 -0
  107. package/templates/frontend/.github/agents/api-architect.agent.md +41 -0
  108. package/templates/frontend/.github/agents/code-reviewer.agent.md +26 -0
  109. package/templates/frontend/.github/agents/code-simplifier.agent.md +41 -0
  110. package/templates/frontend/.github/agents/code-skeptic.agent.md +74 -0
  111. package/templates/frontend/.github/agents/docs-specialist.agent.md +25 -0
  112. package/templates/frontend/.github/agents/implementation-plan.agent.md +160 -0
  113. package/templates/frontend/.github/agents/janitor.agent.md +90 -0
  114. package/templates/frontend/.github/agents/ms-sql-dba.agent.md +25 -0
  115. package/templates/frontend/.github/agents/plan.agent.md +115 -0
  116. package/templates/frontend/.github/agents/planner.agent.md +15 -0
  117. package/templates/frontend/.github/agents/playwright-tester.agent.md +13 -0
  118. package/templates/frontend/.github/agents/postgresql-dba.agent.md +18 -0
  119. package/templates/frontend/.github/agents/prd.agent.md +202 -0
  120. package/templates/frontend/.github/agents/research-technical-spike.agent.md +170 -0
  121. package/templates/frontend/.github/agents/software-engineer-agent-v1.agent.md +165 -0
  122. package/templates/frontend/.github/agents/task-planner.agent.md +375 -0
  123. package/templates/frontend/.github/agents/task-researcher.agent.md +255 -0
  124. package/templates/frontend/.github/agents/tdd-green.agent.md +60 -0
  125. package/templates/frontend/.github/agents/tdd-red.agent.md +60 -0
  126. package/templates/frontend/.github/agents/tdd-refactor.agent.md +85 -0
  127. package/templates/frontend/.github/agents/tech-debt-remediation-plan.agent.md +50 -0
  128. package/templates/frontend/.github/agents/typescript-mcp-expert.agent.md +91 -0
  129. package/templates/frontend/.github/agents/ultimate-thinking-beastmode.agent.md +644 -0
  130. package/templates/frontend/.github/agents//360/237/216/255 generator.agent.md" +264 -0
  131. package/templates/frontend/.github/agents//360/237/216/255 healer.agent.md" +44 -0
  132. package/templates/frontend/.github/agents//360/237/216/255 pom.agent.md" +308 -0
  133. package/templates/frontend/.github/instructions/a11y.instructions.md +369 -0
  134. package/templates/frontend/.github/instructions/ms-sql-dba.instructions.md +25 -0
  135. package/templates/frontend/.github/instructions/object-calisthenics.instructions.md +302 -0
  136. package/templates/frontend/.github/instructions/performance-optimization.instructions.md +420 -0
  137. package/templates/frontend/.github/instructions/playwright-python.instructions.md +62 -0
  138. package/templates/frontend/.github/instructions/playwright-typescript.instructions.md +86 -0
  139. package/templates/frontend/.github/instructions/security-and-owasp.instructions.md +51 -0
  140. package/templates/frontend/.github/instructions/self-explanatory-code-commenting.instructions.md +162 -0
  141. package/templates/frontend/.github/instructions/spec-driven-workflow-v1.instructions.md +323 -0
  142. package/templates/frontend/.github/instructions/sql-sp-generation.instructions.md +74 -0
  143. package/templates/frontend/.github/instructions/task-implementation.instructions.md +190 -0
  144. package/templates/frontend/.github/instructions/typescript-mcp-server.instructions.md +228 -0
  145. package/templates/frontend/.github/prompts/ai-prompt-engineering-safety-review.prompt.md +229 -0
  146. package/templates/frontend/.github/prompts/architecture-blueprint-generator.prompt.md +321 -0
  147. package/templates/frontend/.github/prompts/breakdown-epic-arch.prompt.md +65 -0
  148. package/templates/frontend/.github/prompts/breakdown-epic-pm.prompt.md +57 -0
  149. package/templates/frontend/.github/prompts/breakdown-feature-implementation.prompt.md +127 -0
  150. package/templates/frontend/.github/prompts/breakdown-feature-prd.prompt.md +60 -0
  151. package/templates/frontend/.github/prompts/breakdown-plan.prompt.md +508 -0
  152. package/templates/frontend/.github/prompts/copilot-instructions-blueprint-generator.prompt.md +293 -0
  153. package/templates/frontend/.github/prompts/create-agentsmd.prompt.md +248 -0
  154. package/templates/frontend/.github/prompts/create-github-issue-feature-from-specification.prompt.md +27 -0
  155. package/templates/frontend/.github/prompts/create-github-issues-feature-from-implementation-plan.prompt.md +27 -0
  156. package/templates/frontend/.github/prompts/create-github-issues-for-unmet-specification-requirements.prompt.md +35 -0
  157. package/templates/frontend/.github/prompts/create-implementation-plan.prompt.md +156 -0
  158. package/templates/frontend/.github/prompts/create-llms.prompt.md +209 -0
  159. package/templates/frontend/.github/prompts/create-specification.prompt.md +126 -0
  160. package/templates/frontend/.github/prompts/create-technical-spike.prompt.md +230 -0
  161. package/templates/frontend/.github/prompts/csharp-nunit.prompt.md +71 -0
  162. package/templates/frontend/.github/prompts/ef-core.prompt.md +76 -0
  163. package/templates/frontend/.github/prompts/folder-structure-blueprint-generator.prompt.md +404 -0
  164. package/templates/frontend/.github/prompts/gen-specs-as-issues.prompt.md +165 -0
  165. package/templates/frontend/.github/prompts/generate-custom-instructions-from-codebase.prompt.md +239 -0
  166. package/templates/frontend/.github/prompts/java-junit.prompt.md +64 -0
  167. package/templates/frontend/.github/prompts/memory-merger.prompt.md +107 -0
  168. package/templates/frontend/.github/prompts/multi-stage-dockerfile.prompt.md +46 -0
  169. package/templates/frontend/.github/prompts/playwright-automation-fill-in-form.prompt.md +29 -0
  170. package/templates/frontend/.github/prompts/playwright-explore-website.prompt.md +19 -0
  171. package/templates/frontend/.github/prompts/playwright-generate-test.prompt.md +19 -0
  172. package/templates/frontend/.github/prompts/postgresql-code-review.prompt.md +214 -0
  173. package/templates/frontend/.github/prompts/postgresql-optimization.prompt.md +406 -0
  174. package/templates/frontend/.github/prompts/project-workflow-analysis-blueprint-generator.prompt.md +294 -0
  175. package/templates/frontend/.github/prompts/prompt-builder.prompt.md +142 -0
  176. package/templates/frontend/.github/prompts/remember.prompt.md +125 -0
  177. package/templates/frontend/.github/prompts/review-and-refactor.prompt.md +15 -0
  178. package/templates/frontend/.github/prompts/sql-code-review.prompt.md +303 -0
  179. package/templates/frontend/.github/prompts/sql-optimization.prompt.md +298 -0
  180. package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-agents.prompt.md +72 -0
  181. package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-chatmodes.prompt.md +71 -0
  182. package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-collections.prompt.md +149 -0
  183. package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-instructions.prompt.md +88 -0
  184. package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-prompts.prompt.md +71 -0
  185. package/templates/frontend/.github/prompts/technology-stack-blueprint-generator.prompt.md +242 -0
  186. package/templates/frontend/.github/prompts/typescript-mcp-server-generator.prompt.md +90 -0
  187. package/templates/frontend/.github/prompts/update-implementation-plan.prompt.md +157 -0
  188. package/templates/frontend/.github/prompts/update-markdown-file-index.prompt.md +76 -0
  189. package/templates/frontend/README.md +199 -0
  190. package/templates/frontend/biome.json +45 -0
  191. package/templates/frontend/components.json +22 -0
  192. package/templates/frontend/index.html +13 -0
  193. package/templates/frontend/package.json +44 -0
  194. package/templates/frontend/pnpm-lock.yaml +2011 -0
  195. package/templates/frontend/postcss.config.js +6 -0
  196. package/templates/frontend/public/vite.svg +1 -0
  197. package/templates/frontend/src/App.css +42 -0
  198. package/templates/frontend/src/App.tsx +17 -0
  199. package/templates/frontend/src/assets/react.svg +1 -0
  200. package/templates/frontend/src/components/layout/layout.component.tsx +31 -0
  201. package/templates/frontend/src/components/menu-toggle-icon.tsx +53 -0
  202. package/templates/frontend/src/components/ui/button.tsx +57 -0
  203. package/templates/frontend/src/docs/RECOMMENDED_LIBRARIES.md +226 -0
  204. package/templates/frontend/src/docs/SETUP_SUMMARY.md +162 -0
  205. package/templates/frontend/src/hooks/use-scroll.ts +21 -0
  206. package/templates/frontend/src/index.css +121 -0
  207. package/templates/frontend/src/lib/api-client.ts +46 -0
  208. package/templates/frontend/src/lib/utils.ts +6 -0
  209. package/templates/frontend/src/main.tsx +30 -0
  210. package/templates/frontend/src/pages/about/about.page.tsx +50 -0
  211. package/templates/frontend/src/pages/home/home.page.tsx +43 -0
  212. package/templates/frontend/tailwind.config.js +59 -0
  213. package/templates/frontend/tsconfig.app.json +41 -0
  214. package/templates/frontend/tsconfig.json +13 -0
  215. package/templates/frontend/tsconfig.node.json +26 -0
  216. package/templates/frontend/vite.config.ts +14 -0
  217. package/template/.env.example +0 -8
  218. package/template/AGENTS.md +0 -23
  219. package/template/ARCHITECTURE.md +0 -53
  220. package/template/ORDER_SYSTEM.md +0 -93
  221. package/template/biome.json +0 -3
  222. package/template/src/features/orders/controller.ts +0 -13
  223. package/template/src/features/orders/index.ts +0 -7
  224. /package/{template → templates/backend}/knip.json +0 -0
  225. /package/{template → templates/backend}/playwright.config.ts +0 -0
  226. /package/{template → templates/backend}/pnpm-workspace.yaml +0 -0
  227. /package/{template → templates/backend}/src/features/health/controller.ts +0 -0
  228. /package/{template → templates/backend}/tsconfig.build.json +0 -0
@@ -0,0 +1,239 @@
1
+ ---
2
+ description: 'Migration and code evolution instructions generator for GitHub Copilot. Analyzes differences between two project versions (branches, commits, or releases) to create precise instructions allowing Copilot to maintain consistency during technology migrations, major refactoring, or framework version upgrades.'
3
+ ---
4
+
5
+ # Migration and Code Evolution Instructions Generator
6
+
7
+ ## Configuration Variables
8
+
9
+ ```
10
+ ${MIGRATION_TYPE="Framework Version|Architecture Refactoring|Technology Migration|Dependencies Update|Pattern Changes"}
11
+ <!-- Type of migration or evolution -->
12
+
13
+ ${SOURCE_REFERENCE="branch|commit|tag"}
14
+ <!-- Source reference point (before state) -->
15
+
16
+ ${TARGET_REFERENCE="branch|commit|tag"}
17
+ <!-- Target reference point (after state) -->
18
+
19
+ ${ANALYSIS_SCOPE="Entire project|Specific folder|Modified files only"}
20
+ <!-- Scope of analysis -->
21
+
22
+ ${CHANGE_FOCUS="Breaking Changes|New Conventions|Obsolete Patterns|API Changes|Configuration"}
23
+ <!-- Main aspect of changes -->
24
+
25
+ ${AUTOMATION_LEVEL="Conservative|Balanced|Aggressive"}
26
+ <!-- Level of automation for Copilot suggestions -->
27
+
28
+ ${GENERATE_EXAMPLES="true|false"}
29
+ <!-- Include transformation examples -->
30
+
31
+ ${VALIDATION_REQUIRED="true|false"}
32
+ <!-- Require validation before application -->
33
+ ```
34
+
35
+ ## Generated Prompt
36
+
37
+ ```
38
+ "Analyze code evolution between two project states to generate precise migration instructions for GitHub Copilot. These instructions will guide Copilot to automatically apply the same transformation patterns during future modifications. Follow this methodology:
39
+
40
+ ### Phase 1: Comparative State Analysis
41
+
42
+ #### Structural Changes Detection
43
+ - Compare folder structure between ${SOURCE_REFERENCE} and ${TARGET_REFERENCE}
44
+ - Identify moved, renamed, or deleted files
45
+ - Analyze changes in configuration files
46
+ - Document new dependencies and removed ones
47
+
48
+ #### Code Transformation Analysis
49
+ ${MIGRATION_TYPE == "Framework Version" ?
50
+ "- Identify API changes between framework versions
51
+ - Analyze new features being used
52
+ - Document obsolete methods/properties
53
+ - Note syntax or convention changes" : ""}
54
+
55
+ ${MIGRATION_TYPE == "Architecture Refactoring" ?
56
+ "- Analyze architectural pattern changes
57
+ - Identify new abstractions introduced
58
+ - Document responsibility reorganization
59
+ - Note changes in data flows" : ""}
60
+
61
+ ${MIGRATION_TYPE == "Technology Migration" ?
62
+ "- Analyze replacement of one technology with another
63
+ - Identify functional equivalences
64
+ - Document API and syntax changes
65
+ - Note new dependencies and configurations" : ""}
66
+
67
+ #### Transformation Pattern Extraction
68
+ - Identify repetitive transformations applied
69
+ - Analyze conversion rules from old to new format
70
+ - Document exceptions and special cases
71
+ - Create before/after correspondence matrix
72
+
73
+ ### Phase 2: Migration Instructions Generation
74
+
75
+ Create a `.github/copilot-migration-instructions.md` file with this structure:
76
+
77
+ \`\`\`markdown
78
+ # GitHub Copilot Migration Instructions
79
+
80
+ ## Migration Context
81
+ - **Type**: ${MIGRATION_TYPE}
82
+ - **From**: ${SOURCE_REFERENCE}
83
+ - **To**: ${TARGET_REFERENCE}
84
+ - **Date**: [GENERATION_DATE]
85
+ - **Scope**: ${ANALYSIS_SCOPE}
86
+
87
+ ## Automatic Transformation Rules
88
+
89
+ ### 1. Mandatory Transformations
90
+ ${AUTOMATION_LEVEL != "Conservative" ?
91
+ "[AUTOMATIC_TRANSFORMATION_RULES]
92
+ - **Old Pattern**: [OLD_CODE]
93
+ - **New Pattern**: [NEW_CODE]
94
+ - **Trigger**: When to detect this pattern
95
+ - **Action**: Transformation to apply automatically" : ""}
96
+
97
+ ### 2. Transformations with Validation
98
+ ${VALIDATION_REQUIRED == "true" ?
99
+ "[TRANSFORMATIONS_WITH_VALIDATION]
100
+ - **Detected Pattern**: [DESCRIPTION]
101
+ - **Suggested Transformation**: [NEW_APPROACH]
102
+ - **Required Validation**: [VALIDATION_CRITERIA]
103
+ - **Alternatives**: [ALTERNATIVE_OPTIONS]" : ""}
104
+
105
+ ### 3. API Correspondences
106
+ ${CHANGE_FOCUS == "API Changes" || MIGRATION_TYPE == "Framework Version" ?
107
+ "[API_CORRESPONDENCE_TABLE]
108
+ | Old API | New API | Notes | Example |
109
+ | --------- | --------- | --------- | -------------- |
110
+ | [OLD_API] | [NEW_API] | [CHANGES] | [CODE_EXAMPLE] | " : ""} |
111
+
112
+ ### 4. New Patterns to Adopt
113
+ [DETECTED_EMERGING_PATTERNS]
114
+ - **Pattern**: [PATTERN_NAME]
115
+ - **Usage**: [WHEN_TO_USE]
116
+ - **Implementation**: [HOW_TO_IMPLEMENT]
117
+ - **Benefits**: [ADVANTAGES]
118
+
119
+ ### 5. Obsolete Patterns to Avoid
120
+ [DETECTED_OBSOLETE_PATTERNS]
121
+ - **Obsolete Pattern**: [OLD_PATTERN]
122
+ - **Why Avoid**: [REASONS]
123
+ - **Alternative**: [NEW_PATTERN]
124
+ - **Migration**: [CONVERSION_STEPS]
125
+
126
+ ## File Type Specific Instructions
127
+
128
+ ${GENERATE_EXAMPLES == "true" ?
129
+ "### Configuration Files
130
+ [CONFIG_TRANSFORMATION_EXAMPLES]
131
+
132
+ ### Main Source Files
133
+ [SOURCE_TRANSFORMATION_EXAMPLES]
134
+
135
+ ### Test Files
136
+ [TEST_TRANSFORMATION_EXAMPLES]" : ""}
137
+
138
+ ## Validation and Security
139
+
140
+ ### Automatic Control Points
141
+ - Verifications to perform after each transformation
142
+ - Tests to run to validate changes
143
+ - Performance metrics to monitor
144
+ - Compatibility checks to perform
145
+
146
+ ### Manual Escalation
147
+ Situations requiring human intervention:
148
+ - [COMPLEX_CASES_LIST]
149
+ - [ARCHITECTURAL_DECISIONS]
150
+ - [BUSINESS_IMPACTS]
151
+
152
+ ## Migration Monitoring
153
+
154
+ ### Tracking Metrics
155
+ - Percentage of code automatically migrated
156
+ - Number of manual validations required
157
+ - Error rate of automatic transformations
158
+ - Average migration time per file
159
+
160
+ ### Error Reporting
161
+ How to report incorrect transformations to Copilot:
162
+ - Feedback patterns to improve rules
163
+ - Exceptions to document
164
+ - Adjustments to make to instructions
165
+
166
+ \`\`\`
167
+
168
+ ### Phase 3: Contextual Examples Generation
169
+
170
+ ${GENERATE_EXAMPLES == "true" ?
171
+ "#### Transformation Examples
172
+ For each identified pattern, generate:
173
+
174
+ \`\`\`
175
+ // BEFORE (${SOURCE_REFERENCE})
176
+ [OLD_CODE_EXAMPLE]
177
+
178
+ // AFTER (${TARGET_REFERENCE})
179
+ [NEW_CODE_EXAMPLE]
180
+
181
+ // COPILOT INSTRUCTIONS
182
+ When you see this pattern [TRIGGER], transform it to [NEW_PATTERN] following these steps: [STEPS]
183
+ \`\`\`" : ""}
184
+
185
+ ### Phase 4: Validation and Optimization
186
+
187
+ #### Instructions Testing
188
+ - Apply instructions on test code
189
+ - Verify transformation consistency
190
+ - Adjust rules based on results
191
+ - Document exceptions and edge cases
192
+
193
+ #### Iterative Optimization
194
+ ${AUTOMATION_LEVEL == "Aggressive" ?
195
+ "- Refine rules to maximize automation
196
+ - Reduce false positives in detection
197
+ - Improve transformation accuracy
198
+ - Document lessons learned" : ""}
199
+
200
+ ### Final Result
201
+
202
+ Migration instructions that enable GitHub Copilot to:
203
+ 1. **Automatically apply** the same transformations during future modifications
204
+ 2. **Maintain consistency** with newly adopted conventions
205
+ 3. **Avoid obsolete patterns** by automatically proposing alternatives
206
+ 4. **Accelerate future migrations** by capitalizing on acquired experience
207
+ 5. **Reduce errors** by automating repetitive transformations
208
+
209
+ These instructions transform Copilot into an intelligent migration assistant, capable of reproducing your technology evolution decisions consistently and reliably.
210
+ "
211
+ ```
212
+
213
+ ## Typical Use Cases
214
+
215
+ ### Framework Version Migration
216
+ Perfect for documenting the transition from Angular 14 to Angular 17, React Class Components to Hooks, or .NET Framework to .NET Core. Automatically identifies breaking changes and generates corresponding transformation rules.
217
+
218
+ ### Technology Stack Evolution
219
+ Essential when replacing a technology entirely: jQuery to React, REST to GraphQL, SQL to NoSQL. Creates a comprehensive migration guide with pattern mappings.
220
+
221
+ ### Architecture Refactoring
222
+ Ideal for large refactorings like Monolith to Microservices, MVC to Clean Architecture, or Component to Composable architecture. Preserves architectural knowledge for future similar transformations.
223
+
224
+ ### Design Pattern Modernization
225
+ Useful for adopting new patterns: Repository Pattern, Dependency Injection, Observer to Reactive Programming. Documents the rationale and implementation differences.
226
+
227
+ ## Unique Benefits
228
+
229
+ ### 🧠 **Artificial Intelligence Enhancement**
230
+ Unlike traditional migration documentation, these instructions "train" GitHub Copilot to reproduce your technology evolution decisions automatically during future code modifications.
231
+
232
+ ### 🔄 **Knowledge Capitalization**
233
+ Transforms specific project experience into reusable rules, avoiding the loss of migration expertise and accelerating future similar transformations.
234
+
235
+ ### 🎯 **Context-Aware Precision**
236
+ Instead of generic advice, generates instructions tailored to your specific codebase, with real before/after examples from your project evolution.
237
+
238
+ ### ⚡ **Automated Consistency**
239
+ Ensures that new code additions automatically follow the new conventions, preventing architectural regression and maintaining code evolution coherence.
@@ -0,0 +1,64 @@
1
+ ---
2
+ mode: 'agent'
3
+ tools: ['changes', 'search/codebase', 'edit/editFiles', 'problems', 'search']
4
+ description: 'Get best practices for JUnit 5 unit testing, including data-driven tests'
5
+ ---
6
+
7
+ # JUnit 5+ Best Practices
8
+
9
+ Your goal is to help me write effective unit tests with JUnit 5, covering both standard and data-driven testing approaches.
10
+
11
+ ## Project Setup
12
+
13
+ - Use a standard Maven or Gradle project structure.
14
+ - Place test source code in `src/test/java`.
15
+ - Include dependencies for `junit-jupiter-api`, `junit-jupiter-engine`, and `junit-jupiter-params` for parameterized tests.
16
+ - Use build tool commands to run tests: `mvn test` or `gradle test`.
17
+
18
+ ## Test Structure
19
+
20
+ - Test classes should have a `Test` suffix, e.g., `CalculatorTest` for a `Calculator` class.
21
+ - Use `@Test` for test methods.
22
+ - Follow the Arrange-Act-Assert (AAA) pattern.
23
+ - Name tests using a descriptive convention, like `methodName_should_expectedBehavior_when_scenario`.
24
+ - Use `@BeforeEach` and `@AfterEach` for per-test setup and teardown.
25
+ - Use `@BeforeAll` and `@AfterAll` for per-class setup and teardown (must be static methods).
26
+ - Use `@DisplayName` to provide a human-readable name for test classes and methods.
27
+
28
+ ## Standard Tests
29
+
30
+ - Keep tests focused on a single behavior.
31
+ - Avoid testing multiple conditions in one test method.
32
+ - Make tests independent and idempotent (can run in any order).
33
+ - Avoid test interdependencies.
34
+
35
+ ## Data-Driven (Parameterized) Tests
36
+
37
+ - Use `@ParameterizedTest` to mark a method as a parameterized test.
38
+ - Use `@ValueSource` for simple literal values (strings, ints, etc.).
39
+ - Use `@MethodSource` to refer to a factory method that provides test arguments as a `Stream`, `Collection`, etc.
40
+ - Use `@CsvSource` for inline comma-separated values.
41
+ - Use `@CsvFileSource` to use a CSV file from the classpath.
42
+ - Use `@EnumSource` to use enum constants.
43
+
44
+ ## Assertions
45
+
46
+ - Use the static methods from `org.junit.jupiter.api.Assertions` (e.g., `assertEquals`, `assertTrue`, `assertNotNull`).
47
+ - For more fluent and readable assertions, consider using a library like AssertJ (`assertThat(...).is...`).
48
+ - Use `assertThrows` or `assertDoesNotThrow` to test for exceptions.
49
+ - Group related assertions with `assertAll` to ensure all assertions are checked before the test fails.
50
+ - Use descriptive messages in assertions to provide clarity on failure.
51
+
52
+ ## Mocking and Isolation
53
+
54
+ - Use a mocking framework like Mockito to create mock objects for dependencies.
55
+ - Use `@Mock` and `@InjectMocks` annotations from Mockito to simplify mock creation and injection.
56
+ - Use interfaces to facilitate mocking.
57
+
58
+ ## Test Organization
59
+
60
+ - Group tests by feature or component using packages.
61
+ - Use `@Tag` to categorize tests (e.g., `@Tag("fast")`, `@Tag("integration")`).
62
+ - Use `@TestMethodOrder(MethodOrderer.OrderAnnotation.class)` and `@Order` to control test execution order when strictly necessary.
63
+ - Use `@Disabled` to temporarily skip a test method or class, providing a reason.
64
+ - Use `@Nested` to group tests in a nested inner class for better organization and structure.
@@ -0,0 +1,107 @@
1
+ ---
2
+ description: 'Merges mature lessons from a domain memory file into its instruction file. Syntax: `/memory-merger >domain [scope]` where scope is `global` (default), `user`, `workspace`, or `ws`.'
3
+ ---
4
+
5
+ # Memory Merger
6
+
7
+ You consolidate mature learnings from a domain's memory file into its instruction file, ensuring knowledge preservation with minimal redundancy.
8
+
9
+ **Use the todo list** to track your progress through the process steps and keep the user informed.
10
+
11
+ ## Scopes
12
+
13
+ Memory instructions can be stored in two scopes:
14
+
15
+ - **Global** (`global` or `user`) - Stored in `<global-prompts>` (`vscode-userdata:/User/prompts/`) and apply to all VS Code projects
16
+ - **Workspace** (`workspace` or `ws`) - Stored in `<workspace-instructions>` (`<workspace-root>/.github/instructions/`) and apply only to the current project
17
+
18
+ Default scope is **global**.
19
+
20
+ Throughout this prompt, `<global-prompts>` and `<workspace-instructions>` refer to these directories.
21
+
22
+ ## Syntax
23
+
24
+ ```
25
+ /memory-merger >domain-name [scope]
26
+ ```
27
+
28
+ - `>domain-name` - Required. The domain to merge (e.g., `>clojure`, `>git-workflow`, `>prompt-engineering`)
29
+ - `[scope]` - Optional. One of: `global`, `user` (both mean global), `workspace`, or `ws`. Defaults to `global`
30
+
31
+ **Examples:**
32
+ - `/memory-merger >prompt-engineering` - merges global prompt engineering memories
33
+ - `/memory-merger >clojure workspace` - merges workspace clojure memories
34
+ - `/memory-merger >git-workflow ws` - merges workspace git-workflow memories
35
+
36
+ ## Process
37
+
38
+ ### 1. Parse Input and Read Files
39
+
40
+ - **Extract** domain and scope from user input
41
+ - **Determine** file paths:
42
+ - Global: `<global-prompts>/{domain}-memory.instructions.md` → `<global-prompts>/{domain}.instructions.md`
43
+ - Workspace: `<workspace-instructions>/{domain}-memory.instructions.md` → `<workspace-instructions>/{domain}.instructions.md`
44
+ - The user can have mistyped the domain, if you don't find the memory file, glob the directory and determine if there may be a match there. Ask the user for input if in doubt.
45
+ - **Read** both files (memory file must exist; instruction file may not)
46
+
47
+ ### 2. Analyze and Propose
48
+
49
+ Review all memory sections and present them for merger consideration:
50
+
51
+ ```
52
+ ## Proposed Memories for Merger
53
+
54
+ ### Memory: [Headline]
55
+ **Content:** [Key points]
56
+ **Location:** [Where it fits in instructions]
57
+
58
+ [More memories]...
59
+ ```
60
+
61
+ Say: "Please review these memories. Approve all with 'go' or specify which to skip."
62
+
63
+ **STOP and wait for user input.**
64
+
65
+ ### 3. Define Quality Bar
66
+
67
+ Establish 10/10 criteria for what constitutes awesome merged resulting instructions:
68
+ 1. **Zero knowledge loss** - Every detail, example, and nuance preserved
69
+ 2. **Minimal redundancy** - Overlapping guidance consolidated
70
+ 3. **Maximum scannability** - Clear hierarchy, parallel structure, strategic bold, logical grouping
71
+
72
+ ### 4. Merge and Iterate
73
+
74
+ Develop the final merged instructions **without updating files yet**:
75
+
76
+ 1. Draft the merged instructions incorporating approved memories
77
+ 2. Evaluate against quality bar
78
+ 3. Refine structure, wording, organization
79
+ 4. Repeat until the merged instructions meet 10/10 criteria
80
+
81
+ ### 5. Update Files
82
+
83
+ Once the final merged instructions meet 10/10 criteria:
84
+
85
+ - **Create or update** the instruction file with the final merged content
86
+ - Include proper frontmatter if creating new file
87
+ - **Merge `applyTo` patterns** from both memory and instruction files if both exist, ensuring comprehensive coverage without duplication
88
+ - **Remove** merged sections from the memory file
89
+
90
+ ## Example
91
+
92
+ ```
93
+ User: "/memory-merger >clojure"
94
+
95
+ Agent:
96
+ 1. Reads clojure-memory.instructions.md and clojure.instructions.md
97
+ 2. Proposes 3 memories for merger
98
+ 3. [STOPS]
99
+
100
+ User: "go"
101
+
102
+ Agent:
103
+ 4. Defines quality bar for 10/10
104
+ 5. Merges new instructions candidate, iterates to 10/10
105
+ 6. Updates clojure.instructions.md
106
+ 7. Cleans clojure-memory.instructions.md
107
+ ```
@@ -0,0 +1,46 @@
1
+ ---
2
+ tools: ['search/codebase']
3
+ description: 'Create optimized multi-stage Dockerfiles for any language or framework'
4
+ ---
5
+
6
+ Your goal is to help me create efficient multi-stage Dockerfiles that follow best practices, resulting in smaller, more secure container images.
7
+
8
+ ## Multi-Stage Structure
9
+
10
+ - Use a builder stage for compilation, dependency installation, and other build-time operations
11
+ - Use a separate runtime stage that only includes what's needed to run the application
12
+ - Copy only the necessary artifacts from the builder stage to the runtime stage
13
+ - Use meaningful stage names with the `AS` keyword (e.g., `FROM node:18 AS builder`)
14
+ - Place stages in logical order: dependencies → build → test → runtime
15
+
16
+ ## Base Images
17
+
18
+ - Start with official, minimal base images when possible
19
+ - Specify exact version tags to ensure reproducible builds (e.g., `python:3.11-slim` not just `python`)
20
+ - Consider distroless images for runtime stages where appropriate
21
+ - Use Alpine-based images for smaller footprints when compatible with your application
22
+ - Ensure the runtime image has the minimal necessary dependencies
23
+
24
+ ## Layer Optimization
25
+
26
+ - Organize commands to maximize layer caching
27
+ - Place commands that change frequently (like code changes) after commands that change less frequently (like dependency installation)
28
+ - Use `.dockerignore` to prevent unnecessary files from being included in the build context
29
+ - Combine related RUN commands with `&&` to reduce layer count
30
+ - Consider using COPY --chown to set permissions in one step
31
+
32
+ ## Security Practices
33
+
34
+ - Avoid running containers as root - use `USER` instruction to specify a non-root user
35
+ - Remove build tools and unnecessary packages from the final image
36
+ - Scan the final image for vulnerabilities
37
+ - Set restrictive file permissions
38
+ - Use multi-stage builds to avoid including build secrets in the final image
39
+
40
+ ## Performance Considerations
41
+
42
+ - Use build arguments for configuration that might change between environments
43
+ - Leverage build cache efficiently by ordering layers from least to most frequently changing
44
+ - Consider parallelization in build steps when possible
45
+ - Set appropriate environment variables like NODE_ENV=production to optimize runtime behavior
46
+ - Use appropriate healthchecks for the application type with the HEALTHCHECK instruction
@@ -0,0 +1,29 @@
1
+ ---
2
+ description: 'Automate filling in a form using Playwright MCP'
3
+ tools: []
4
+ model: 'Claude Sonnet 4'
5
+ ---
6
+
7
+ # Automating Filling in a Form with Playwright MCP
8
+
9
+ Your goal is to automate the process of filling in a form using Playwright MCP.
10
+
11
+ ## Specific Instructions
12
+
13
+ Navigate to https://forms.microsoft.com/url-of-my-form
14
+
15
+ ### Fill in the form with the following details:
16
+
17
+ 1. Show: playwright live
18
+
19
+ 2. Date: 15 July
20
+
21
+ 3. Time: 1:00 AM
22
+
23
+ 4. Topic: Playwright Live - Latest updates on Playwright MCP + Live Demo
24
+
25
+ 5. Upload image: /Users/myuserName/Downloads/my-image.png
26
+
27
+ DO NOT SUBMIT THE FORM.
28
+
29
+ Ask for a review of the form before submitting it.
@@ -0,0 +1,19 @@
1
+ ---
2
+ mode: agent
3
+ description: 'Website exploration for testing using Playwright MCP'
4
+ tools: ['changes', 'search/codebase', 'edit/editFiles', 'fetch', 'findTestFiles', 'problems', 'runCommands', 'runTasks', 'runTests', 'search', 'search/searchResults', 'runCommands/terminalLastCommand', 'runCommands/terminalSelection', 'testFailure', 'playwright']
5
+ model: 'Claude Sonnet 4'
6
+ ---
7
+
8
+ # Website Exploration for Testing
9
+
10
+ Your goal is to explore the website and identify key functionalities.
11
+
12
+ ## Specific Instructions
13
+
14
+ 1. Navigate to the provided URL using the Playwright MCP Server. If no URL is provided, ask the user to provide one.
15
+ 2. Identify and interact with 3-5 core features or user flows.
16
+ 3. Document the user interactions, relevant UI elements (and their locators), and the expected outcomes.
17
+ 4. Close the browser context upon completion.
18
+ 5. Provide a concise summary of your findings.
19
+ 6. Propose and generate test cases based on the exploration.
@@ -0,0 +1,19 @@
1
+ ---
2
+ agent: 'agent'
3
+ description: 'Generate a Playwright test based on a scenario using Playwright MCP'
4
+ tools: ['changes', 'search/codebase', 'edit/editFiles', 'fetch', 'problems', 'runCommands', 'runTasks', 'runTests', 'search', 'search/searchResults', 'runCommands/terminalLastCommand', 'runCommands/terminalSelection', 'testFailure', 'playwright/*']
5
+ model: 'Claude Sonnet 4.5'
6
+ ---
7
+
8
+ # Test Generation with Playwright MCP
9
+
10
+ Your goal is to generate a Playwright test based on the provided scenario after completing all prescribed steps.
11
+
12
+ ## Specific Instructions
13
+
14
+ - You are given a scenario, and you need to generate a playwright test for it. If the user does not provide a scenario, you will ask them to provide one.
15
+ - DO NOT generate test code prematurely or based solely on the scenario without completing all prescribed steps.
16
+ - DO run steps one by one using the tools provided by the Playwright MCP.
17
+ - Only after all steps are completed, emit a Playwright TypeScript test that uses `@playwright/test` based on message history
18
+ - Save generated test file in the tests directory
19
+ - Execute the test file and iterate until the test passes