/polymath-architecture:design-patterns-applyfrom polymath-architecture
Review a design sketch against SOLID, GoF, and architectural patterns; flag anti-patterns at design time; not line-level code review (code-review).
Ships in polymath-architecture. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Patterns are a vocabulary for trade-offs, not a checklist to maximize. The skill is choosing the one that removes the most pain — and refusing the ones that only add indirection.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
polymath-architecture:design-patterns-apply.Not this when: you are reviewing a concrete diff for bugs and line-level quality — that is polymath-engineering:code-review. This skill works at design time on structure, before/around the code.
polymath-decisions:tradeoff-matrix.Design review: notification module
Pain: every new channel edits NotificationService.send() (a 9-branch switch) — shotgun surgery.
SOLID
OCP NotificationService.send() — switch on channel → Strategy per channel
DIP notifications/domain imports twilio — domain depends on infrastructure → port + adapter
SRP ok · LSP ok · ISP ok
Recommend
Strategy (ChannelSender per channel) removes the switch · cost: one interface, 4 small classes
Adapter (TwilioSmsSender) isolates the vendor · cost: one indirection layer
Don't add
Abstract factory for senders — one construction path today; a dict of senders is enough
Observer bus — no second subscriber exists yet
Anti-patterns: god object NotificationService (templates + routing + sending) → split routing out
Inline by default; when a workflow step or the user wants it kept, write it to docs/architecture/<slug>-patterns.md (slug from the system or context name, lowercased, non-a-z0-9 runs → -).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-architecture8 skills in this plugin
/aggregate-designDesign DDD tactical aggregates for a bounded context — aggregate roots, entities vs value objects, invariants, transaction/consistency boundaries, reference-by-id./bounded-context-mapMap a domain into DDD bounded contexts + a context map (customer-supplier, conformist, anti-corruption layer, shared kernel) with per-context ubiquitous language./distributed-consistencyChoose a consistency model for a cross-node operation — strong/eventual/causal, CAP/PACELC trade-off, idempotency + dedup, and when consensus (Raft/quorum) is warranted vs simpler.Other plugins' skills for the same job