One-click install
npx skills add https://github.com/tttol/dotfiles --skill design-pattern
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-pattern
Source: https://github.com/tttol/dotfiles/tree/main/config/skills/design-pattern
Command: npx skills add https://github.com/tttol/dotfiles --skill design-pattern

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GoF design patterns provide proven templates to solve recurring design problems, reducing ad-hoc and fragile architectures.

Core Features & Use Cases

  • Comprehensive coverage of Creational, Structural, and Behavioral patterns with explanations and example scenarios.
  • Practical guidance for selecting patterns during architecture reviews, library design, and refactoring.
  • Educational demonstrations that illustrate how patterns improve extensibility, maintainability, and testability.

Quick Start

Select a GoF pattern and implement a small example to observe how it improves flexibility.

Frequently Asked Questions about design-pattern

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

FAQPage Schema
How do I apply GoF design patterns to solve recurring software design problems?

Apply GoF design patterns by selecting proven templates from creational, structural, or behavioral categories to reduce ad-hoc architectures. This provides practical implementation guidance for analyzing architectures and refactoring tasks to improve software extensibility and maintainability.

What is the difference between creational, structural, and behavioral design patterns?

Creational, structural, and behavioral design patterns are GoF categories that address object creation, object composition, and object interaction respectively. Each category provides specific pattern templates that solve distinct software design problems while improving testability and maintainability.

When do I need to use design patterns during architecture reviews or refactoring?

Use design patterns during architecture reviews or refactoring when you encounter recurring software design problems that require proven templates. They help replace fragile architectures with structured solutions that enhance code flexibility, maintainability, and testability.

What is the best way to start implementing software design patterns for educational demonstrations?

The best way to start implementing software design patterns for educational demonstrations is to select a specific GoF pattern and build a small example. This illustrates how pattern application improves software flexibility and maintainability in practical scenarios.

Can I use GoF patterns to improve code extensibility and testability in library design?

Yes, you can use GoF patterns to improve code extensibility and testability in library design. They offer practical guidance for selecting appropriate patterns during library development, ensuring robust software architecture through established creational, structural, and behavioral templates.