@totaland/create-starter-kit 2.0.1 → 2.0.2
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.
- package/README.md +27 -3
- package/bin/index.js +88 -30
- package/package.json +1 -1
- package/templates/backend/.github/agents/ /360/237/216/255 planner.agent.md" +0 -92
- package/templates/backend/.github/agents/api-architect.agent.md +0 -41
- package/templates/backend/.github/agents/code-reviewer.agent.md +0 -26
- package/templates/backend/.github/agents/code-simplifier.agent.md +0 -41
- package/templates/backend/.github/agents/code-skeptic.agent.md +0 -74
- package/templates/backend/.github/agents/docs-specialist.agent.md +0 -25
- package/templates/backend/.github/agents/implementation-plan.agent.md +0 -160
- package/templates/backend/.github/agents/janitor.agent.md +0 -90
- package/templates/backend/.github/agents/ms-sql-dba.agent.md +0 -25
- package/templates/backend/.github/agents/plan.agent.md +0 -115
- package/templates/backend/.github/agents/planner.agent.md +0 -15
- package/templates/backend/.github/agents/playwright-tester.agent.md +0 -13
- package/templates/backend/.github/agents/postgresql-dba.agent.md +0 -18
- package/templates/backend/.github/agents/prd.agent.md +0 -202
- package/templates/backend/.github/agents/research-technical-spike.agent.md +0 -170
- package/templates/backend/.github/agents/software-engineer-agent-v1.agent.md +0 -165
- package/templates/backend/.github/agents/task-planner.agent.md +0 -375
- package/templates/backend/.github/agents/task-researcher.agent.md +0 -255
- package/templates/backend/.github/agents/tdd-green.agent.md +0 -60
- package/templates/backend/.github/agents/tdd-red.agent.md +0 -60
- package/templates/backend/.github/agents/tdd-refactor.agent.md +0 -85
- package/templates/backend/.github/agents/tech-debt-remediation-plan.agent.md +0 -50
- package/templates/backend/.github/agents/typescript-mcp-expert.agent.md +0 -91
- package/templates/backend/.github/agents/ultimate-thinking-beastmode.agent.md +0 -644
- package/templates/backend/.github/agents//360/237/216/255 generator.agent.md" +0 -264
- package/templates/backend/.github/agents//360/237/216/255 healer.agent.md" +0 -44
- package/templates/backend/.github/agents//360/237/216/255 pom.agent.md" +0 -308
- package/templates/backend/.github/instructions/a11y.instructions.md +0 -369
- package/templates/backend/.github/instructions/ms-sql-dba.instructions.md +0 -25
- package/templates/backend/.github/instructions/object-calisthenics.instructions.md +0 -302
- package/templates/backend/.github/instructions/performance-optimization.instructions.md +0 -420
- package/templates/backend/.github/instructions/playwright-python.instructions.md +0 -62
- package/templates/backend/.github/instructions/playwright-typescript.instructions.md +0 -86
- package/templates/backend/.github/instructions/security-and-owasp.instructions.md +0 -51
- package/templates/backend/.github/instructions/self-explanatory-code-commenting.instructions.md +0 -162
- package/templates/backend/.github/instructions/spec-driven-workflow-v1.instructions.md +0 -323
- package/templates/backend/.github/instructions/sql-sp-generation.instructions.md +0 -74
- package/templates/backend/.github/instructions/task-implementation.instructions.md +0 -190
- package/templates/backend/.github/instructions/typescript-mcp-server.instructions.md +0 -228
- package/templates/backend/.github/prompts/ai-prompt-engineering-safety-review.prompt.md +0 -229
- package/templates/backend/.github/prompts/architecture-blueprint-generator.prompt.md +0 -321
- package/templates/backend/.github/prompts/breakdown-epic-arch.prompt.md +0 -65
- package/templates/backend/.github/prompts/breakdown-epic-pm.prompt.md +0 -57
- package/templates/backend/.github/prompts/breakdown-feature-implementation.prompt.md +0 -127
- package/templates/backend/.github/prompts/breakdown-feature-prd.prompt.md +0 -60
- package/templates/backend/.github/prompts/breakdown-plan.prompt.md +0 -508
- package/templates/backend/.github/prompts/copilot-instructions-blueprint-generator.prompt.md +0 -293
- package/templates/backend/.github/prompts/create-agentsmd.prompt.md +0 -248
- package/templates/backend/.github/prompts/create-github-issue-feature-from-specification.prompt.md +0 -27
- package/templates/backend/.github/prompts/create-github-issues-feature-from-implementation-plan.prompt.md +0 -27
- package/templates/backend/.github/prompts/create-github-issues-for-unmet-specification-requirements.prompt.md +0 -35
- package/templates/backend/.github/prompts/create-implementation-plan.prompt.md +0 -156
- package/templates/backend/.github/prompts/create-llms.prompt.md +0 -209
- package/templates/backend/.github/prompts/create-specification.prompt.md +0 -126
- package/templates/backend/.github/prompts/create-technical-spike.prompt.md +0 -230
- package/templates/backend/.github/prompts/csharp-nunit.prompt.md +0 -71
- package/templates/backend/.github/prompts/ef-core.prompt.md +0 -76
- package/templates/backend/.github/prompts/folder-structure-blueprint-generator.prompt.md +0 -404
- package/templates/backend/.github/prompts/gen-specs-as-issues.prompt.md +0 -165
- package/templates/backend/.github/prompts/generate-custom-instructions-from-codebase.prompt.md +0 -239
- package/templates/backend/.github/prompts/java-junit.prompt.md +0 -64
- package/templates/backend/.github/prompts/memory-merger.prompt.md +0 -107
- package/templates/backend/.github/prompts/multi-stage-dockerfile.prompt.md +0 -46
- package/templates/backend/.github/prompts/playwright-automation-fill-in-form.prompt.md +0 -29
- package/templates/backend/.github/prompts/playwright-explore-website.prompt.md +0 -19
- package/templates/backend/.github/prompts/playwright-generate-test.prompt.md +0 -19
- package/templates/backend/.github/prompts/postgresql-code-review.prompt.md +0 -214
- package/templates/backend/.github/prompts/postgresql-optimization.prompt.md +0 -406
- package/templates/backend/.github/prompts/project-workflow-analysis-blueprint-generator.prompt.md +0 -294
- package/templates/backend/.github/prompts/prompt-builder.prompt.md +0 -142
- package/templates/backend/.github/prompts/remember.prompt.md +0 -125
- package/templates/backend/.github/prompts/review-and-refactor.prompt.md +0 -15
- package/templates/backend/.github/prompts/sql-code-review.prompt.md +0 -303
- package/templates/backend/.github/prompts/sql-optimization.prompt.md +0 -298
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-agents.prompt.md +0 -72
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-chatmodes.prompt.md +0 -71
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-collections.prompt.md +0 -149
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-instructions.prompt.md +0 -88
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-prompts.prompt.md +0 -71
- package/templates/backend/.github/prompts/technology-stack-blueprint-generator.prompt.md +0 -242
- package/templates/backend/.github/prompts/typescript-mcp-server-generator.prompt.md +0 -90
- package/templates/backend/.github/prompts/update-implementation-plan.prompt.md +0 -157
- package/templates/backend/.github/prompts/update-markdown-file-index.prompt.md +0 -76
- package/templates/backend/Project_Folders_Structure_Blueprint.md +0 -529
- package/templates/backend/README.md +0 -99
- package/templates/backend/biome.json +0 -45
- package/templates/backend/drizzle.config.ts +0 -10
- package/templates/backend/knip.json +0 -10
- package/templates/backend/package.json +0 -60
- package/templates/backend/playwright.config.ts +0 -16
- package/templates/backend/pnpm-lock.yaml +0 -4240
- package/templates/backend/pnpm-workspace.yaml +0 -3
- package/templates/backend/src/features/health/controller.ts +0 -5
- package/templates/backend/src/features/health/health.test.ts +0 -23
- package/templates/backend/src/features/health/index.ts +0 -7
- package/templates/backend/src/features/health/schemas.ts +0 -29
- package/templates/backend/src/features/orders/controller.ts +0 -18
- package/templates/backend/src/features/orders/index.ts +0 -10
- package/templates/backend/src/features/orders/schemas.ts +0 -62
- package/templates/backend/src/index.ts +0 -43
- package/templates/backend/src/lib/openapi.ts +0 -25
- package/templates/backend/src/lib/validateRequest.test.ts +0 -84
- package/templates/backend/src/lib/validateRequest.ts +0 -72
- package/templates/backend/tsconfig.build.json +0 -10
- package/templates/backend/tsconfig.json +0 -30
- package/templates/backend/vitest.config.ts +0 -31
- package/templates/frontend/.env.example +0 -7
- package/templates/frontend/.github/agents/ /360/237/216/255 planner.agent.md" +0 -92
- package/templates/frontend/.github/agents/api-architect.agent.md +0 -41
- package/templates/frontend/.github/agents/code-reviewer.agent.md +0 -26
- package/templates/frontend/.github/agents/code-simplifier.agent.md +0 -41
- package/templates/frontend/.github/agents/code-skeptic.agent.md +0 -74
- package/templates/frontend/.github/agents/docs-specialist.agent.md +0 -25
- package/templates/frontend/.github/agents/implementation-plan.agent.md +0 -160
- package/templates/frontend/.github/agents/janitor.agent.md +0 -90
- package/templates/frontend/.github/agents/ms-sql-dba.agent.md +0 -25
- package/templates/frontend/.github/agents/plan.agent.md +0 -115
- package/templates/frontend/.github/agents/planner.agent.md +0 -15
- package/templates/frontend/.github/agents/playwright-tester.agent.md +0 -13
- package/templates/frontend/.github/agents/postgresql-dba.agent.md +0 -18
- package/templates/frontend/.github/agents/prd.agent.md +0 -202
- package/templates/frontend/.github/agents/research-technical-spike.agent.md +0 -170
- package/templates/frontend/.github/agents/software-engineer-agent-v1.agent.md +0 -165
- package/templates/frontend/.github/agents/task-planner.agent.md +0 -375
- package/templates/frontend/.github/agents/task-researcher.agent.md +0 -255
- package/templates/frontend/.github/agents/tdd-green.agent.md +0 -60
- package/templates/frontend/.github/agents/tdd-red.agent.md +0 -60
- package/templates/frontend/.github/agents/tdd-refactor.agent.md +0 -85
- package/templates/frontend/.github/agents/tech-debt-remediation-plan.agent.md +0 -50
- package/templates/frontend/.github/agents/typescript-mcp-expert.agent.md +0 -91
- package/templates/frontend/.github/agents/ultimate-thinking-beastmode.agent.md +0 -644
- package/templates/frontend/.github/agents//360/237/216/255 generator.agent.md" +0 -264
- package/templates/frontend/.github/agents//360/237/216/255 healer.agent.md" +0 -44
- package/templates/frontend/.github/agents//360/237/216/255 pom.agent.md" +0 -308
- package/templates/frontend/.github/instructions/a11y.instructions.md +0 -369
- package/templates/frontend/.github/instructions/ms-sql-dba.instructions.md +0 -25
- package/templates/frontend/.github/instructions/object-calisthenics.instructions.md +0 -302
- package/templates/frontend/.github/instructions/performance-optimization.instructions.md +0 -420
- package/templates/frontend/.github/instructions/playwright-python.instructions.md +0 -62
- package/templates/frontend/.github/instructions/playwright-typescript.instructions.md +0 -86
- package/templates/frontend/.github/instructions/security-and-owasp.instructions.md +0 -51
- package/templates/frontend/.github/instructions/self-explanatory-code-commenting.instructions.md +0 -162
- package/templates/frontend/.github/instructions/spec-driven-workflow-v1.instructions.md +0 -323
- package/templates/frontend/.github/instructions/sql-sp-generation.instructions.md +0 -74
- package/templates/frontend/.github/instructions/task-implementation.instructions.md +0 -190
- package/templates/frontend/.github/instructions/typescript-mcp-server.instructions.md +0 -228
- package/templates/frontend/.github/prompts/ai-prompt-engineering-safety-review.prompt.md +0 -229
- package/templates/frontend/.github/prompts/architecture-blueprint-generator.prompt.md +0 -321
- package/templates/frontend/.github/prompts/breakdown-epic-arch.prompt.md +0 -65
- package/templates/frontend/.github/prompts/breakdown-epic-pm.prompt.md +0 -57
- package/templates/frontend/.github/prompts/breakdown-feature-implementation.prompt.md +0 -127
- package/templates/frontend/.github/prompts/breakdown-feature-prd.prompt.md +0 -60
- package/templates/frontend/.github/prompts/breakdown-plan.prompt.md +0 -508
- package/templates/frontend/.github/prompts/copilot-instructions-blueprint-generator.prompt.md +0 -293
- package/templates/frontend/.github/prompts/create-agentsmd.prompt.md +0 -248
- package/templates/frontend/.github/prompts/create-github-issue-feature-from-specification.prompt.md +0 -27
- package/templates/frontend/.github/prompts/create-github-issues-feature-from-implementation-plan.prompt.md +0 -27
- package/templates/frontend/.github/prompts/create-github-issues-for-unmet-specification-requirements.prompt.md +0 -35
- package/templates/frontend/.github/prompts/create-implementation-plan.prompt.md +0 -156
- package/templates/frontend/.github/prompts/create-llms.prompt.md +0 -209
- package/templates/frontend/.github/prompts/create-specification.prompt.md +0 -126
- package/templates/frontend/.github/prompts/create-technical-spike.prompt.md +0 -230
- package/templates/frontend/.github/prompts/csharp-nunit.prompt.md +0 -71
- package/templates/frontend/.github/prompts/ef-core.prompt.md +0 -76
- package/templates/frontend/.github/prompts/folder-structure-blueprint-generator.prompt.md +0 -404
- package/templates/frontend/.github/prompts/gen-specs-as-issues.prompt.md +0 -165
- package/templates/frontend/.github/prompts/generate-custom-instructions-from-codebase.prompt.md +0 -239
- package/templates/frontend/.github/prompts/java-junit.prompt.md +0 -64
- package/templates/frontend/.github/prompts/memory-merger.prompt.md +0 -107
- package/templates/frontend/.github/prompts/multi-stage-dockerfile.prompt.md +0 -46
- package/templates/frontend/.github/prompts/playwright-automation-fill-in-form.prompt.md +0 -29
- package/templates/frontend/.github/prompts/playwright-explore-website.prompt.md +0 -19
- package/templates/frontend/.github/prompts/playwright-generate-test.prompt.md +0 -19
- package/templates/frontend/.github/prompts/postgresql-code-review.prompt.md +0 -214
- package/templates/frontend/.github/prompts/postgresql-optimization.prompt.md +0 -406
- package/templates/frontend/.github/prompts/project-workflow-analysis-blueprint-generator.prompt.md +0 -294
- package/templates/frontend/.github/prompts/prompt-builder.prompt.md +0 -142
- package/templates/frontend/.github/prompts/remember.prompt.md +0 -125
- package/templates/frontend/.github/prompts/review-and-refactor.prompt.md +0 -15
- package/templates/frontend/.github/prompts/sql-code-review.prompt.md +0 -303
- package/templates/frontend/.github/prompts/sql-optimization.prompt.md +0 -298
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-agents.prompt.md +0 -72
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-chatmodes.prompt.md +0 -71
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-collections.prompt.md +0 -149
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-instructions.prompt.md +0 -88
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-prompts.prompt.md +0 -71
- package/templates/frontend/.github/prompts/technology-stack-blueprint-generator.prompt.md +0 -242
- package/templates/frontend/.github/prompts/typescript-mcp-server-generator.prompt.md +0 -90
- package/templates/frontend/.github/prompts/update-implementation-plan.prompt.md +0 -157
- package/templates/frontend/.github/prompts/update-markdown-file-index.prompt.md +0 -76
- package/templates/frontend/README.md +0 -199
- package/templates/frontend/biome.json +0 -45
- package/templates/frontend/components.json +0 -22
- package/templates/frontend/index.html +0 -13
- package/templates/frontend/package.json +0 -44
- package/templates/frontend/pnpm-lock.yaml +0 -2011
- package/templates/frontend/postcss.config.js +0 -6
- package/templates/frontend/public/vite.svg +0 -1
- package/templates/frontend/src/App.css +0 -42
- package/templates/frontend/src/App.tsx +0 -17
- package/templates/frontend/src/assets/react.svg +0 -1
- package/templates/frontend/src/components/layout/layout.component.tsx +0 -31
- package/templates/frontend/src/components/menu-toggle-icon.tsx +0 -53
- package/templates/frontend/src/components/ui/button.tsx +0 -57
- package/templates/frontend/src/docs/RECOMMENDED_LIBRARIES.md +0 -226
- package/templates/frontend/src/docs/SETUP_SUMMARY.md +0 -162
- package/templates/frontend/src/hooks/use-scroll.ts +0 -21
- package/templates/frontend/src/index.css +0 -121
- package/templates/frontend/src/lib/api-client.ts +0 -46
- package/templates/frontend/src/lib/utils.ts +0 -6
- package/templates/frontend/src/main.tsx +0 -30
- package/templates/frontend/src/pages/about/about.page.tsx +0 -50
- package/templates/frontend/src/pages/home/home.page.tsx +0 -43
- package/templates/frontend/tailwind.config.js +0 -59
- package/templates/frontend/tsconfig.app.json +0 -41
- package/templates/frontend/tsconfig.json +0 -13
- package/templates/frontend/tsconfig.node.json +0 -26
- package/templates/frontend/vite.config.ts +0 -14
package/templates/frontend/.github/prompts/generate-custom-instructions-from-codebase.prompt.md
DELETED
|
@@ -1,239 +0,0 @@
|
|
|
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.
|
|
@@ -1,64 +0,0 @@
|
|
|
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.
|
|
@@ -1,107 +0,0 @@
|
|
|
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
|
-
```
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
|
@@ -1,29 +0,0 @@
|
|
|
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.
|
|
@@ -1,19 +0,0 @@
|
|
|
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.
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|