Common design patterns with Java examples (Factory, Builder, Strategy, Observer, Decorator, etc.).
Common design patterns with Java examples (Factory, Builder, Strategy, Observer, Decorator, etc.). Use when user asks "implement pattern", "use factory", "strategy pattern", or when designing extensible components.This is the skill's description: the text your AI reads to decide when the skill applies.
java-design-patterns/SKILL.md
---
name: design-patterns
description: Common design patterns with Java examples (Factory, Builder, Strategy, Observer, Decorator, etc.). Use when user asks "implement pattern", "use factory", "strategy pattern", or when designing extensible components.
---
# Design Patterns Skill
Practical design patterns reference for Java with modern examples.
## When to Use
- User asks to implement a specific pattern
- Designing extensible/flexible components
- Refactoring rigid code structures
- Code review suggests pattern usage
---
## Quick Reference: When to Use What
| Problem | Pattern |
|---------|---------|
| Complex object construction | **Builder** |
| Create objects without specifying class | **Factory** |
| Multiple algorithms, swap at runtime | **Strategy** |
| Add behavior without changing class | **Decorator** |… load the full skill through Skill Me