design-patterns

Explain and demonstrate TypeScript design patterns for software architecture problems.

6|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/fellipeutaka/denji --skill design-patterns-fellipeutaka
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-patterns
Source: https://github.com/fellipeutaka/denji/tree/main/.agents/skills/design-patterns
Command: npx skills add https://github.com/fellipeutaka/denji --skill design-patterns-fellipeutaka

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers apply proven architectural patterns to create maintainable and extensible TypeScript systems, reducing code duplication and improving clarity.

Core Features & Use Cases

  • Pattern Implementation: Provides comprehensive examples of all 22 Gang of Four patterns, including creational, structural, and behavioral categories.
  • Architectural Refactoring: Aids in refactoring complex codebases by guiding pattern selection for decoupling, API simplification, or code reuse.
  • Real-World Application: For example, refactoring a tightly coupled object creation process into a Factory Method for better testing and extension.

Quick Start

Invoke the pattern examples to understand how to implement and choose appropriate architectural solutions in TypeScript projects.

Frequently Asked Questions about design-patterns

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

FAQPage Schema
How do I use design patterns to refactor a tightly coupled TypeScript codebase?

Apply design patterns to refactor TypeScript code by selecting appropriate structures for decoupling, API simplification, and code reuse. For example, refactoring tightly coupled object creation into a Factory Method improves testing and extension.

What are the Gang of Four design patterns available for TypeScript architecture?

The Gang of Four design patterns include all 22 classic patterns across creational, structural, and behavioral categories. They provide comprehensive examples for solving common software architecture problems and creating maintainable, extensible TypeScript systems.

When should I apply OOP design patterns in TypeScript projects?

Apply OOP design patterns in TypeScript when building extensible architectures or refactoring legacy systems. They are best used to reduce code duplication and improve clarity, requiring a solid understanding of object-oriented design principles and pattern applicability.

Does this Skill require prior knowledge of object-oriented design?

Yes, it requires an understanding of object-oriented design principles and pattern applicability. This prerequisite knowledge is necessary to grasp the architectural solutions and implement the pattern examples correctly in TypeScript projects.

What is the best way to choose between structural and behavioral patterns for software architecture?

Choose between structural and behavioral patterns by evaluating your specific architecture problem, such as needing decoupling or code reuse. The Skill demonstrates pattern applicability to help you select the appropriate category for your TypeScript refactoring goals.