Use the prompt
Describe the problem first, including what makes the current approach difficult. That gives you a way to judge whether the requested pattern improves the design or merely adds structure.
Apply design patterns correctly with complete implementations and usage examples.
For GitLab Duo
Implement the [PATTERN NAME] pattern for:
Problem: [DESCRIBE PROBLEM]
Show me:
1. Complete implementation
2. How it solves the problem
3. Usage examples
4. Testing approachDescribe the problem first, including what makes the current approach difficult. That gives you a way to judge whether the requested pattern improves the design or merely adds structure.