pattern-template-method
CommunityStructure shared workflows with template steps
Software Engineering#typescript#oop#nestjs#design-patterns#code-structure#behavioral-patterns#template-method
Authorjohnnystefan
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Prevents repeated algorithm steps across subclasses by defining the invariant workflow in a single superclass so that individual variations stay safe and maintainable.
Core Features & Use Cases
- Template Method Skeleton: Capture the sequence of operations in an abstract base class to keep shared experts centralized.
- Hook and Abstract Steps: Declare mandatory steps as abstract methods and optional variations as hooks so subclasses can customize behavior without changing the flow.
- Use Case: Implement a NestJS provider base class for a shared pre/post processing sequence while letting each child handle its domain-specific operations.
Quick Start
Ask the pattern-template-method skill to sketch a base class algorithm before customizing the subclass implementations.
Dependency Matrix
Required Modules
None requiredComponents
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: pattern-template-method Download link: https://github.com/johnnystefan/test-saas-business/archive/main.zip#pattern-template-method Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.