design-patterns-expert

Identify and recommend Gang of Four design patterns for software design problems.

2|22|Updated Oct 9, 2025
One-click install
npx skills add https://github.com/rysweet/azlin --skill design-patterns-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-patterns-expert
Source: https://github.com/rysweet/azlin/tree/main/.claude/skills/design-patterns-expert
Command: npx skills add https://github.com/rysweet/azlin --skill design-patterns-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides guidance on design patterns, helping avoid over-engineering while selecting effective patterns only when warranted.

Core Features & Use Cases

  • Pattern recognition guidance
  • Practical implementation templates
  • Anti-pattern warnings and philosophy checks

Quick Start

Claude, which GoF pattern fits a small authentication wrapper? Provide a short justification.

Frequently Asked Questions about design-patterns-expert

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

FAQPage Schema
How do I choose the right design pattern for my software architecture problem?

Design patterns provide proven solutions to recurring architecture problems. Identify your problem domain—creational (object creation), structural (composition), or behavioral (object interaction)—then match it to a Gang of Four pattern that solves that specific challenge without over-engineering. This Skill guides pattern selection with philosophy-aligned reasoning to ensure you apply patterns only when warranted.

What's the best way to refactor code using design patterns?

Refactoring with design patterns involves recognizing anti-patterns in your code, selecting an appropriate GoF pattern to solve the root problem, then incrementally applying it. This Skill provides tiered guidance: quick reference, practical templates with code examples, and deep-dive analysis to help you implement patterns effectively while avoiding unnecessary complexity.

When should I not use a design pattern?

Over-engineering with patterns creates maintenance burden without solving real problems. This Skill includes philosophy checks and anti-pattern warnings to identify when a simpler solution is better. Use patterns only when they directly address a concrete design problem in your codebase, not as architectural scaffolding.

Can design patterns work across different architectural styles?

Gang of Four patterns are language-agnostic and apply across monoliths, microservices, and distributed systems. However, pattern selection and implementation details vary by architecture. This Skill helps you analyze your problem domain and select patterns suited to your specific architectural context, not just the general category.

How do I recognize when my code needs a design pattern?

Pattern recognition comes from understanding problem signals: duplicate logic, tight coupling, complex conditionals, or difficulty extending behavior. This Skill teaches you to frame problems correctly and identify which GoF pattern category—creational, structural, or behavioral—matches your design challenge before implementing a solution.

What's the difference between similar design patterns like Decorator and Proxy?

Both wrap objects but serve different purposes: Decorator adds behavior dynamically, while Proxy controls access. This Skill provides comparative analysis across related patterns, helping you distinguish intent and select the right pattern for your specific problem rather than settling for a surface-level match.