sethdford/claude-skills/design-patterns

Claude Code and agent skill by sethdford/claude-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Gang of Four patterns (Creational, Structural, Behavioral) and when to apply them.

Install

npx vskill@latest install sethdford/claude-skills/design-patterns

SKILL.md

The same SKILL.md was published earlier as sethdford/claude-skills/design-patterns.

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

  1. Identify Problem: What design issue are you facing?
  2. Map to Pattern: Which pattern solves this?
  3. Understand Intent: Why does this pattern work?
  4. Consider Tradeoffs: Complexity, flexibility, testability?
  5. Implement: Code the pattern; don't memorize, understand
  6. 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

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
43
Repository forks
9
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sethdford/claude-skills/design-patterns/badge)](https://verified-skill.com/skills/sethdford/claude-skills/design-patterns)

Something wrong with this skill or its page? Tell us.