wasabeef/claude-code-cookbook/design-patterns
Claude Code and agent skill by wasabeef/claude-code-cookbook
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Suggest design patterns and evaluate SOLID principles. Trigger with "suggest design patterns", "which patterns apply?", "check SOLID principles", "detect anti-patterns", "evaluate code design".
Install
npx vskill@latest install wasabeef/claude-code-cookbook/design-patternsSKILL.md
Suggest design patterns and evaluate SOLID principles
Suggests design patterns for your code and checks if it follows SOLID principles.
Usage
Options
--suggest: Suggest applicable patterns (default)--analyze: Analyze existing pattern usage--refactor: Generate refactoring proposals--solid: Check compliance with SOLID principles--anti-patterns: Detect anti-patterns
Basic Examples
Pattern Categories
1. Creational Patterns
- Factory Pattern: Abstracts object creation
- Builder Pattern: Step-by-step construction of complex objects
- Singleton Pattern: Ensures only one instance exists
- Prototype Pattern: Creates object clones
2. Structural Patterns
- Adapter Pattern: Converts interfaces
- Decorator Pattern: Dynamically adds functionality
- Facade Pattern: Simplifies complex subsystems
- Proxy Pattern: Controls access to objects
3. Behavioral Patterns
- Observer Pattern: Implements event notifications
- Strategy Pattern: Switches algorithms
- Command Pattern: Encapsulates operations
- Iterator Pattern: Traverses collections
SOLID Principles We Check
Output Example
Advanced Usage Examples
Example: Before and After
Before (Problem Code)
After (Applying Strategy Pattern)
Anti-Patterns We Find
- God Object: Classes that do everything
- Spaghetti Code: Tangled mess of control flow
- Copy-Paste Programming: Same code everywhere
- Magic Numbers: Random numbers with no explanation
- Callback Hell: Callbacks inside callbacks inside callbacks
Best Practices
- Go slow: Add patterns one at a time
- Need first: Only use patterns to solve real problems
- Talk it out: Get team buy-in before big changes
- Write it down: Document why you chose each pattern
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/en/skills/design-patterns/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wasabeef/claude-code-cookbook/design-patterns)