
Design Patterns Implementation
When you're refactoring messy code or building something that needs to scale beyond the initial prototype, this skill helps you apply classic design patterns like Singleton, Factory, Observer, and Strategy. It's got reference guides for each pattern with full implementations, plus a quick start that shows you the basics. The best practices section is honest about the tradeoffs, explicitly warning against over-engineering and forcing patterns where they don't belong. Most useful when you're in a code review and someone points out tight coupling, or when you're setting up dependency injection and plugin architectures. It assumes you want proven solutions to architectural problems without turning everything into an abstraction layer nightmare.
- skills.sh installs
- 600
- GitHub stars
- 379
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill design-patterns-implementation --agent claude-codeInstalls into .claude/skills of the current project.
Files
Design Patterns Implementation
Table of Contents
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
Quick Start
Minimal working example:
class DatabaseConnection {
private static instance: DatabaseConnection;
private connection: any;
private constructor() {
this.connection = this.createConnection();
}
public static getInstance(): DatabaseConnection {
if (!DatabaseConnection.instance) {
DatabaseConnection.instance = new DatabaseConnection();
}
return DatabaseConnection.instance;
}
private createConnection() {
return {
/* connection logic */
};
}
}
Sponsors
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Code Review & Quality, AI & Agent Building, Design & UI/UX
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Database Schema Design597
- Aws S3 Management595
- Database Query Optimization593
- Memory Leak Detection589
- Database Backup Restore588
- Technical Roadmap Planning582
- Accessibility Testing580
- Push Notification Setup580
- Database Schema Documentation576
- App Store Deployment569
- Mobile App Debugging568
- Security Audit Logging568
- Bundle Size Optimization567
- Process Mapping563
- Oauth Implementation558
- Integration Testing557
- Memory Optimization552
- Semantic Versioning552
- Caching Strategy551
- Real Time Features548
- Web Performance Audit548
- Browser Debugging545
- Mobile Offline Support545
- Design System Creation543