Design Pattern Implementer

Implement [DESIGN PATTERN] for this use case: [DESCRIBE].

41 words · free to use
Implement [DESIGN PATTERN] for this use case: [DESCRIBE]. Show the naive solution first, explain why it breaks at scale, then implement the pattern with TypeScript. Include the unit tests that verify the pattern behavior and the refactoring guide for existing code.
design patternsarchitectureOOP

How to use this prompt

  1. Copy the prompt with the button above.
  2. Replace the parts in brackets with your own details: [DESIGN PATTERN], [DESCRIBE].
  3. Paste it into Claude and send it. It also works in other AI chat tools.
  4. Not quite right? Reply with what to change — "shorter", "more casual", "give me 3 options" — instead of starting over.

Related code & tech prompts

See all 183 Code & Tech prompts →

Get 10 new prompts every week

Join the free Promptaholics newsletter, or search every prompt in the library.

We use cookies for analytics and ads. See our Privacy Policy.