Skill / SKILL.md

Implementation Design Patterns

pproenca/dot-skills

Implementation guide for the 22 Gang of Four design patterns in TypeScript, distilled from refactoring.guru. Use this skill when writing, refactoring, or reviewing TypeScript that exhibits a pattern-shaped problem — class-explosion from inheritance, conditionals switching on type, tight coupling to concrete classes, tree-shaped models, runtime algorithm selection, undo/redo, snapshot-and-restore, state-dependent behavior, subscriber notification, or hiding subsystem complexity. Each pattern entry includes intent, problem, solution, applicability (when to use AND when NOT to use), a runnable TypeScript example, implementation steps, pros/cons, and relations to sibling patterns. Trigger even when no pattern is named — cues like "class getting unwieldy," "giant switch," "swap implementations at runtime," "combinatorial subclasses," "need undo," or "traverse a tree" are pattern-shaped. Covers all 5 Creational, 7 Structural, and 10 Behavioral GoF patterns.
2 views 230 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Implementation guide for the 22 Gang of Four design patterns in TypeScript, distilled from refactoring.guru. Use this skill when writing, refactoring, or reviewing TypeScript that exhibits a pattern-shaped problem — class-explosion from inheritance, conditionals switching on type, tight coupling to concrete classes, tree-shaped models, runtime algorithm selection, undo/redo, snapshot-and-restore, state-dependent behavior, subscriber notification, or hiding subsystem complexity. Each pattern entry includes intent, problem, solution, applicability (when to use AND when NOT to use), a runnable TypeScript example, implementation steps, pros/cons, and relations to sibling patterns. Trigger even when no pattern is named — cues like "class getting unwieldy," "giant switch," "swap implementations at runtime," "combinatorial subclasses," "need undo," or "traverse a tree" are pattern-shaped. Covers all 5 Creational, 7 Structural, and 10 Behavioral GoF patterns.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/pproenca/dot-skills' skill-source

Use the complete skill-source/skills/.curated/implementation-design-patterns directory with your client’s skill installer.

  • skills/.curated/implementation-design-patterns

    master · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/.curated/implementation-design-patterns

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
27 included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
2f9ffd83b40385713ae46ca95e74906261c89c269fef20f86d0097f46a9a869c
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills