design-patterns-mastery

Provide idiomatic design pattern implementations with UML diagrams and code examples.

5|1|Updated Jun 17, 2026
One-click install
npx skills add https://github.com/roanbrasil/engineer-grade-agent-skills --skill design-patterns-mastery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-patterns-mastery
Source: https://github.com/roanbrasil/engineer-grade-agent-skills/tree/main/skills/design-patterns-mastery
Command: npx skills add https://github.com/roanbrasil/engineer-grade-agent-skills --skill design-patterns-mastery

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the common problem of developers struggling to select, implement, and apply the right design patterns for their use cases, avoiding costly anti-patterns that lead to unmaintainable, over-engineered code.

Core Features & Use Cases

  • Comprehensive Pattern Coverage: Includes all classic GoF creational, structural, and behavioral patterns, plus modern functional patterns like Result monads and Pipelines, with idiomatic code examples for Java, Python, Kotlin, and Rust.
  • Visual & Practical Guidance: ASCII UML diagrams illustrate pattern structure, while clear when-to-use and when-not-to-use rules help you avoid common implementation pitfalls.
  • Real-World Use Case: Use this Skill to design a flexible notification system that supports multiple delivery channels (email, SMS, Slack) without tight coupling, using the Factory Method or Abstract Factory pattern to add new channels without modifying existing business logic.

Quick Start

Use the design-patterns-mastery skill to implement a flexible notification system supporting email, SMS, and Slack delivery using the Factory Method pattern, with examples in your project's primary programming language.

Frequently Asked Questions about design-patterns-mastery

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

FAQPage Schema
How do I implement GoF design patterns correctly across multiple programming languages?

To implement GoF design patterns correctly, use proven idiomatic solutions featuring multi-language code examples for Java, Python, Kotlin, and Rust. This prevents over-engineering by providing ASCII UML diagrams and explicit anti-pattern warnings to avoid introducing technical debt.

When should I use Factory Method patterns to build a scalable notification system?

You should use the Factory Method pattern to build a scalable notification system when you need to support multiple delivery channels like email, SMS, and Slack without tight coupling. It allows adding new channels without modifying existing business logic.

What is the difference between classic GoF patterns and modern functional patterns?

Classic GoF patterns focus on object-oriented creational, structural, and behavioral solutions, while modern functional patterns include Result monads and Pipelines. Both manage recurring software design problems but apply different programming paradigms to achieve maintainable systems.

Does this design pattern guidance support Python and Rust?

Yes, this design pattern guidance supports Python and Rust, alongside Java and Kotlin. It provides idiomatic code examples tailored to each language's specific paradigms for both classic object-oriented and modern functional patterns.

How do I avoid over-engineering code when applying object-oriented design patterns?

To avoid over-engineering code when applying object-oriented design patterns, follow explicit when-to-use and when-not-to-use rules. Clear anti-pattern warnings and visual structural diagrams help ensure patterns are applied correctly without creating unmaintainable technical debt.