0083-laravel-strategy-pattern
CommunitySwap runtime behavior via the Strategy pattern
Software Engineering#dependency injection#laravel#strategy pattern#interface#factory#service provider#runtime dispatch
AuthorMrJmpl3
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you avoid large conditional blocks by selecting different behaviors at runtime in a clean, extensible way.
Core Features & Use Cases
- Shared Interface with Multiple Implementations: Define a common contract (e.g., a tax calculator) and implement country-specific strategies (e.g., NZ vs AU).
- Runtime Strategy Selection via Key/Context: Choose the correct implementation by country code (or similar context key) rather than branching logic.
- Factory + Dependency Injection Fit for Laravel: Register implementations in a service provider and inject a factory to centralize selection logic.
Quick Start
Use the 0083-laravel-strategy-pattern Skill to design a TaxCalculator interface, implement country-specific strategies, and create a factory that returns the right strategy based on a country code key.
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: 0083-laravel-strategy-pattern Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0083-laravel-strategy-pattern 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.