tmcfarlane/oh-my-cursor/design-patterns-implementation
Claude Code and agent skill by tmcfarlane/oh-my-cursor
- community
Checking that the SKILL.md file is still in the repository.
Apply appropriate design patterns (Singleton, Factory, Observer, Strategy, etc.) to solve architectural problems. Use when refactoring code architecture, implementing extensible systems, or following SOLID principles.
Install
npx vskill@latest install tmcfarlane/oh-my-cursor/design-patterns-implementationSKILL.md
Design Patterns Implementation
Overview
Apply proven design patterns to create maintainable, extensible, and testable code architectures.
When to Use
- Solving common architectural problems
- Making code more maintainable and testable
- Implementing extensible plugin systems
- Decoupling components
- Following SOLID principles
- Code reviews identifying architectural issues
Common Design Patterns
1. Singleton Pattern
Ensure a class has only one instance with global access.
2. Factory Pattern
Create objects without specifying exact classes.
3. Observer Pattern
Define one-to-many dependency for event notification.
4. Strategy Pattern
Define family of algorithms and make them interchangeable.
5. Decorator Pattern
Add responsibilities to objects dynamically.
6. Repository Pattern
Abstract data access logic.
7. Dependency Injection
Invert control by injecting dependencies.
Best Practices
✅ DO
- Choose patterns that solve actual problems
- Keep patterns simple and understandable
- Document why patterns were chosen
- Consider testability
- Follow SOLID principles
- Use dependency injection
- Prefer composition over inheritance
❌ DON'T
- Apply patterns without understanding them
- Over-engineer simple solutions
- Force patterns where they don't fit
- Create unnecessary abstraction layers
- Ignore team familiarity with patterns
When to Use Each Pattern
| Pattern | Use Case | |
|---|---|---|
| Singleton | Database connections, configuration managers | |
| Factory | Creating objects based on runtime conditions | |
| Observer | Event systems, pub/sub, reactive programming | |
| Strategy | Algorithms that can be swapped at runtime | |
| Decorator | Adding features dynamically without inheritance | |
| Repository | Abstracting data access from business logic | |
| Adapter | Making incompatible interfaces work together | |
| Facade | Simplifying complex subsystems | |
| Command | Undo/redo, task queuing, macro recording |
Resources
- "Design Patterns" by Gang of Four
- "Head First Design Patterns" by Freeman & Freeman
- refactoring.guru/design-patterns
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/design-patterns-implementation/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tmcfarlane/oh-my-cursor/design-patterns-implementation)