Design Pattern Skills for Claude Code
A comprehensive collection of 50 software design patterns with runnable TypeScript examples.
Installation
Add this as a plugin marketplace in Claude Code:
/plugin marketplace add https://github.com/keohanoi/design-pattern-skills
Then install:
/plugin install design-pattern-skills@design-pattern-skills
Patterns Included
Creational (5)
Singleton, Factory Method, Abstract Factory, Builder, Prototype
Structural (7)
Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy
Behavioral (11)
Observer, Strategy, Command, State, Chain of Responsibility, Mediator, Memento, Template Method, Visitor, Iterator, Interpreter
Concurrency (4)
Thread Pool, Producer-Consumer, Read-Write Lock, Double-Checked Locking
Architectural (8)
MVC, MVP, MVVM, Layered, Microservices, Event-Driven, Client-Server, CQRS
Enterprise (9)
Repository, Service Layer, Unit of Work, Dependency Injection, DAO, API Gateway, Circuit Breaker, Retry, Saga
Other (6)
Null Object, Lazy Initialization, Object Pool, Specification, Event Sourcing, Pub-Sub
Usage
Skills are automatically triggered when you ask about a pattern:
- "When should I use the Singleton pattern?"
- "Implement a Factory Method for my database"
- "Show me how to use Circuit Breaker"
- "What's the difference between Observer and Pub-Sub?"
Commands
/review-patterns- Review code for pattern opportunities/recommend-pattern- Get pattern suggestions for a problem
Code Examples
Each pattern includes runnable TypeScript examples:
bun run skills/singleton/examples/singleton.ts
bun run skills/circuit-breaker/examples/circuit-breaker.ts
bun run skills/observer/examples/observer.ts
Structure
design-pattern-skills/
├── .claude-plugin/
│ ├── plugin.json
│ └── marketplace.json
├── commands/
│ ├── review-patterns.md
│ └── recommend-pattern.md
├── skills/ # 50 patterns
│ ├── singleton/
│ ├── observer/
│ └── ...
├── CLAUDE.md
└── README.md
License
MIT





