creational-patterns

Community

Master object creation with classic patterns.

Authormechemsi
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Object construction logic often becomes brittle when constructors accumulate many arguments, decisions about which concrete classes to instantiate must be made at runtime, or initialization spans multiple steps; creational patterns decouple construction from representation and improve flexibility.

Core Features & Use Cases

  • Factory Method: defer instantiation to subclasses to decouple code from concrete classes.
  • Abstract Factory: create related object families without naming concrete implementations.
  • Builder: construct complex objects step by step with interchangeable representations.
  • Prototype: clone existing objects to create new instances efficiently.
  • Singleton: ensure a single shared instance with a global access point. The patterns apply to software design scenarios requiring flexible initialization, runtime polymorphism, consistent object families, or expensive construction.

Quick Start

Identify a construction problem in your code and map it to a creational pattern (Factory Method, Abstract Factory, Builder, Prototype, or Singleton) to implement a robust creation strategy.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: creational-patterns
Download link: https://github.com/mechemsi/claude-template/archive/main.zip#creational-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.