design-patterns
Gang of Four patterns (Creational, Structural, Behavioral) and when to apply them.
от sethdford★ 51 звезда на GitHub
Установить design-patterns в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Design Patterns
Proven solutions to recurring design problems.
Context
You are selecting a design pattern for a problem. Understand the tradeoffs of each.
Domain Context
- Creational: How to create objects? (Singleton, Factory, Builder, Prototype)
- Structural: How to compose objects? (Adapter, Bridge, Facade, Proxy, Decorator)
- Behavioral: How do objects interact? (Observer, Strategy, State, Command, Iterator)
Instructions
- Identify Problem: What design issue are you facing?
- Map to Pattern: Which pattern solves this?
- Understand Intent: Why does this pattern work?
- Consider Tradeoffs: Complexity, flexibility, testability?
- Implement: Code the pattern; don't memorize, understand
- Refine: Adapt the pattern to your context
Anti-Patterns
- Applying patterns everywhere (pattern obsession); YAGNI
- Stacking patterns (Factory + Builder + Proxy); complexity without benefit
- Not understanding the pattern before using it; cargo cult programming
- Choosing pattern based on name not problem; same name, different intent
- Over-engineering simple problems with patterns; sometimes direct code is clearer
Further Reading
- Gang of Four, Design Patterns (the bible)
- Eric Freeman & Elisabeth Freeman, Head First Design Patterns
- Refactoring.Guru Design Patterns online
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл design-patterns?
Gang of Four patterns (Creational, Structural, Behavioral) and when to apply them.
Как установить скилл design-patterns?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-patterns запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…