aj-geddes avatar

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-code

Installs 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
1madteacher avatarflutter-navigationmadteacher/mad-agents-skillsImplement, fix, refactor, review, migrate, or validate Flutter navigation and routing. Use when working with Navigator, MaterialPageRoute, Router API, go_router596skills.sh installs
2new-silvermoon avatarcompose-performance-auditnew-silvermoon/awesome-android-agent-skillsAudit and improve Jetpack Compose runtime performance from code review and architecture. Use when asked to diagnose slow rendering, janky scrolling, excessive r596skills.sh installs
3wshaddix avatarmodern-csharp-coding-standardswshaddix/dotnet-skillsWrite modern, high-performance C# code using records, pattern matching, value objects, async/await, Span<T>/Memory<T>, and best-practice API design patterns. Em589skills.sh installs
4plugin87 avatardesign-tokensplugin87/ux-ui-agent-skillsGenerate, extend, or audit design tokens in DTCG format with the 3-tier architecture (primitive → semantic → component). Use when the user wants a color palette585skills.sh installs
5alirezarezvani avatarself-evalalirezarezvani/claude-skillsHonestly evaluate AI work quality using a two-axis scoring system. Use after completing a task, code review, or work session to get an unbiased assessment. Dete582skills.sh installs
6hyperb1iss avatarimplementhyperb1iss/hyperskillsUse this skill when writing code, building features, fixing bugs, refactoring, or any multi-step implementation work. Activates on mentions of implement, build 577skills.sh installs