<< All versions

Skill v1.0.0

currentAutomated scan100/100
dabydat/alpha-omega/design-patterns
──Details
PublishedNovember 3, 2026 at 05:44 AM
Content Hashsha256:9dcd84ec513d85c6...
Git SHA066f3143b526
──Files
Files (1 file, 1.0 KB)
SKILL.md1.0 KBactive
SKILL.md · 32 lines · 1.0 KB

name: design-patterns description: Design pattern recommendations (creational, structural, behavioral). Use when designing an abstraction and a pattern must be chosen. metadata: version: "1.0.0"


neuron: design-patterns

  • triggers_when: a design pattern must be chosen before implementing
  • tier: T2
  • budget: 400 tokens
  • eval: pattern chosen with correct justification -> threshold 1
  • reward: pheromone +1 if eval >= threshold

Procedure

  1. Identify the need: create, compose or communicate objects.
  2. Walk the decision tree (runtime type? incompatible interfaces? algorithm selection?).
  3. Choose the pattern that solves the concrete need.
  4. Discard anti-patterns (no Singleton if multiple instances, no Factory if new suffices).

Checklist

  • [ ] Need classified (creational/structural/behavioral)
  • [ ] First-choice pattern considered
  • [ ] Alternative evaluated if it applies
  • [ ] Anti-patterns discarded

Pitfalls

  • Singleton for multi-instance services
  • Adapter when simple delegation suffices
  • State when a simple if/else is enough
All versions