design-patterns

Identify Gang of Four design patterns and guide TypeScript implementations.

3|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/0x7067/claude-code-setup --skill design-patterns-0x7067
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-patterns
Source: https://github.com/0x7067/claude-code-setup/tree/main/.claude/skills/design-patterns
Command: npx skills add https://github.com/0x7067/claude-code-setup --skill design-patterns-0x7067

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers understand and apply established software design patterns to solve common programming challenges, leading to more robust, maintainable, and scalable code.

Core Features & Use Cases

  • Pattern Identification: Recommends appropriate Gang of Four design patterns based on described code problems or smells.
  • Implementation Guidance: Provides clear explanations and TypeScript code examples for selected patterns.
  • Use Case: When refactoring a complex class with many conditional branches, this Skill can suggest the State or Strategy pattern and show how to implement it.

Quick Start

Recommend a design pattern for decoupling components in a system.

Frequently Asked Questions about design-patterns

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

FAQPage Schema
How do I identify which Gang of Four design pattern to use for refactoring TypeScript code?

To identify the correct design pattern, describe your code smells or structural issues. The system matches these symptoms to appropriate Gang of Four patterns and provides TypeScript implementation examples for refactoring.

What is the best way to decouple components and remove conditional branches in software architecture?

The best way to decouple components with complex conditional branches is applying the State or Strategy pattern. This approach replaces conditional logic with polymorphic behavior, building extensible and maintainable systems.

How do I fix code smells in object-oriented programming using established patterns?

Fix code smells by matching the specific structural issue to an established OOP design pattern. The system analyzes the smell, recommends a pattern, and guides implementation using TypeScript examples to resolve the problem.

Does this design patterns guidance support building extensible systems in TypeScript?

Yes, the guidance supports building extensible systems in TypeScript. It provides expert advice on applying Gang of Four patterns to decouple components and improve software architecture using TypeScript code examples.

When should I not use a design pattern for refactoring?

You should not use a design pattern when the code smell does not significantly impact maintainability or scalability. Over-applying patterns adds unnecessary abstraction, so match patterns only to clear structural problems.