Strategy

Teach and apply the Strategy pattern to isolate interchangeable algorithms behind a common interface and swap them at runtime without changing context logic. Use when users ask about Strategy, algorithm selection, replacing large conditionals, runtime behavior switching, or comparing Strategy with State, Command, or Template Method.

mdadul Updated

File contents

mdadul/agent-skills/tree/main/skills/design-pattern/behavioral/strategy commit 97fae19055

Frequently asked questions

npx skillmds@latest add mdadul/strategy