patterns

Identify and apply GOF design patterns to improve code organization.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/ddsyasas/pomodoro-app-shared --skill patterns-ddsyasas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: patterns
Source: https://github.com/ddsyasas/pomodoro-app-shared/tree/main/pomodoro-app/.claude/skills/patterns
Command: npx skills add https://github.com/ddsyasas/pomodoro-app-shared --skill patterns-ddsyasas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Patterns Skill helps developers identify and apply design patterns to address recurring design problems, improving modularity, testability, and maintainability.

Core Features & Use Cases

  • Pattern Identification: Detect when a GOF pattern (Factory, Strategy, Observer, Command, State, etc.) is appropriate.
  • Guided Selection: Choose the most fitting pattern for a given problem context to avoid overengineering.
  • Use Case Scenarios: Apply patterns to decouple creation, behavior, or structure in real-world codebases.

Quick Start

Provide a short real-world problem and ask for the most suitable GOF pattern recommendation, along with a minimal example illustrating usage.

Frequently Asked Questions about patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify which GOF design pattern to use for refactoring my code?

To identify GOF design patterns for refactoring, analyze your code to detect recurring creation, behavior, or structural problems, then match them to patterns like Factory, Strategy, Observer, Command, or State to improve modularity and maintainability.

When should I apply design patterns to avoid overengineering my software?

Apply design patterns only when they solve a specific recurring problem, following Uncle Bob's guidance to avoid pattern misuse and overengineering. Guided selection ensures you choose the most fitting pattern for the given problem context.

What's the best way to decouple object creation and behavior in a real-world codebase?

The best way to decouple object creation and behavior is applying creational patterns like Factory or behavioral patterns like Strategy and Command, which separate instantiation from execution to improve code organization and extensibility.

How do I use the State pattern to manage behavior changes in my application?

Use the State pattern to manage behavior changes by encapsulating state-specific logic in separate classes, allowing an object to alter its behavior when its internal state changes, thereby improving testability and code organization.

How do I get a minimal code example for a recommended design pattern?

To get a minimal code example, provide a short real-world problem description and ask for the most suitable GOF pattern recommendation, which will include a minimal example illustrating the pattern's usage in your specific context.