0089-laravel-template-method-and-plugins
CommunityStabilize workflows with extendable plugins
Software Engineering#registry#plugins#dependency injection#laravel#extensibility#strategy pattern#template method
AuthorMrJmpl3
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents fragile, hard-to-maintain Laravel code by replacing “edit-the-core-every-time” branching logic with extensible Template Method and pluggable strategy classes.
Core Features & Use Cases
- Template Method skeletons: define a stable workflow in a base class while letting subclasses override specific steps (e.g., load/normalize/validate/save) without changing the overall algorithm.
- Strategy/Plugin architecture: introduce an interface plus a registry to select implementations by key or configuration (e.g., payment gateways), avoiding growing switch statements.
- Use case: adding a new import format or a new payment provider by creating a small class that implements the required hooks/contract, so existing flows remain unchanged.
Quick Start
Ask for a Laravel refactor plan to convert a large switch statement into a registry of strategy classes and a Template Method base class that preserves the core workflow while allowing new extensions.
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: 0089-laravel-template-method-and-plugins Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0089-laravel-template-method-and-plugins 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.