Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Design Patterns Implementation

  • 546 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

design-patterns-implementation is a coding skill that applies proven design patterns such as Singleton, Factory, Observer, and Strategy to refactor architecture and build extensible, testable systems following SOLID prin

About

design-patterns-implementation is a skill in aj-geddes/useful-ai-prompts that guides developers through selecting and applying proven design patterns to solve common architectural problems. The skill covers Singleton, Factory, Observer, Strategy, and additional patterns with reference guides, quick-start steps, and best practices for creating maintainable, extensible, and testable code. Developers reach for design-patterns-implementation when refactoring tangled service layers, introducing extension points, or aligning new modules with SOLID principles. The skill pairs pattern selection guidance with concrete implementation workflows rather than abstract theory alone.

  • Applies Singleton, Factory, Observer, Strategy and other classic patterns
  • Enforces SOLID principles during implementation and refactoring
  • Creates maintainable, extensible and testable code architectures
  • Decouples components for plugin systems and modular design
  • Triggered on code reviews that flag architectural issues

Design Patterns Implementation by the numbers

  • 546 all-time installs (skills.sh)
  • Ranked #231 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill design-patterns-implementation

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs546
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

Which design pattern fits this refactoring problem?

Apply proven design patterns like Singleton, Factory, Observer and Strategy when refactoring architecture or building extensible systems.

Who is it for?

Developers refactoring architecture or building extensible backend systems who need guided pattern selection and SOLID-aligned implementation.

Skip if: Quick bug fixes, greenfield prototypes with no structural debt, or teams seeking framework-specific cookbook recipes only.

When should I use this skill?

Refactoring code architecture, implementing extensible systems, or applying SOLID principles with concrete design patterns.

What you get

Refactored modules using appropriate design patterns with improved extensibility, maintainability, and testability.

  • refactored pattern-based modules
  • architecture decision guidance

By the numbers

  • Documents Singleton, Factory, Observer, Strategy, and additional design patterns

Files

SKILL.mdMarkdownGitHub ↗

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:

GuideContents
Singleton PatternSingleton Pattern
Factory PatternFactory Pattern
Observer PatternObserver Pattern
Strategy PatternStrategy Pattern
Decorator PatternDecorator Pattern
Repository PatternRepository Pattern
Dependency InjectionDependency 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

Related skills

How it compares

Pick design-patterns-implementation over generic refactor prompts when you need pattern-specific guidance tied to SOLID architectural decisions.

FAQ

Which design patterns does design-patterns-implementation cover?

design-patterns-implementation covers Singleton, Factory, Observer, Strategy, and additional patterns with reference guides. The skill maps each pattern to common architectural problems during refactoring or extensible system design.

When should developers invoke design-patterns-implementation?

design-patterns-implementation fits refactoring code architecture, building extensible systems, or enforcing SOLID principles. Use it when structural patterns—not syntax fixes—are the right lever for maintainability.

Code Review & Qualitybackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.