design-patterns-implementation▌
aj-geddes/useful-ai-prompts · updated Apr 8, 2026
Apply proven design patterns to create maintainable, extensible, and testable code architectures.
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 */
};
}
}
// Usage
const db1 = DatabaseConnection.getInstance();
const db2 = DatabaseConnection.getInstance();
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Singleton Pattern | Singleton Pattern |
| Factory Pattern | Factory Pattern |
| Observer Pattern | Observer Pattern |
| Strategy Pattern | Strategy Pattern |
| Decorator Pattern | Decorator Pattern |
| Repository Pattern | Repository Pattern |
| Dependency Injection | Dependency Injection |
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
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★74 reviews- ★★★★★Ava Chen· Dec 28, 2024
Keeps context tight: design-patterns-implementation is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Pratham Ware· Dec 24, 2024
design-patterns-implementation has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Hana Singh· Dec 24, 2024
We added design-patterns-implementation from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Sofia Reddy· Dec 16, 2024
Solid pick for teams standardizing on skills: design-patterns-implementation is focused, and the summary matches what you get after install.
- ★★★★★Dev Kim· Dec 16, 2024
design-patterns-implementation reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Ren Bhatia· Dec 12, 2024
design-patterns-implementation has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Sakura Brown· Dec 4, 2024
design-patterns-implementation fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Jin Rahman· Nov 27, 2024
design-patterns-implementation is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Luis Srinivasan· Nov 23, 2024
Useful defaults in design-patterns-implementation — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Ava Zhang· Nov 23, 2024
I recommend design-patterns-implementation for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
showing 1-10 of 74