Design Patterns Implementation
Catalog guide to classic object-oriented design patterns for refactoring, extensibility, and SOLID-aligned architecture.
- CCM score
- 39 of 100
- skills.sh installs
- 601
- GitHub stars
- 396
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers seven patterns: Singleton, Factory, Observer, Strategy, Decorator, Repository, and Dependency Injection, each with its own reference guide
- Includes a TypeScript Singleton example with a private constructor and a lazily created static instance
- Provides a do and don't checklist that stresses choosing patterns for real problems, preferring composition, and avoiding over-engineering
- Designed for code reviews and refactors where architectural problems or testability gaps need a documented, deliberate pattern choice
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill design-patterns-implementation -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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 */
};
}
}
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Code Review & Quality, Backend & APIs
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Data Cleaning Pipeline600
- Aws S3 Management599
- Database Schema Design599
- Database Query Optimization594
- Database Backup Restore593
- Memory Leak Detection593
- Technical Roadmap Planning584
- Accessibility Testing583
- Push Notification Setup582
- Database Schema Documentation579
- Data Visualization576
- App Store Deployment571
- Mobile App Debugging571
- Security Audit Logging571
- Bundle Size Optimization569
- Process Mapping567
- Integration Testing564
- Oauth Implementation560
- Memory Optimization555
- Semantic Versioning555
- Caching Strategy552
- Web Performance Audit550
- Real Time Features549
- Browser Debugging547
Similar to Design Patterns Implementation
More Code Review & Qualitydesign-patternsdecebals/claude-code-java409 installsReusable Java implementations of common design patterns with quick-reference guidance for choosing among them.
design-patterns-expertrysweet/amplihack367 installsComplete reference for all 23 Gang of Four design patterns, with progressive depth levels and guidance to avoid over-engineering.
solid-principlesthebushidocollective/han618 installsGuide to the five SOLID design principles with Elixir and TypeScript code examples for each.
python-design-patternswshobson/agents24.3K installsOpinionated Python design guidance covering KISS, single responsibility, composition over inheritance, and the rule of three.
software-patternsbobmatnyc/claude-mpm-skills392 installsDecision framework for choosing architectural patterns by coupling, resilience, and boundary problem, not a pattern catalog.
clean-code-principlesasyrafhussin/agent-skills2K installsReference guide for SOLID, core principles, and design patterns used when reviewing architecture or code quality.