Marketplace config for Design Patterns plugin
npx claudepluginhub vodailocz/design-patternsFull-spectrum design patterns skill: Detect anti-patterns, diagnose architectural debt, and generate production-ready refactored code. Covers GoF, SOLID, Clean Architecture, DDD, CQRS, Microservices, and Cloud patterns.
Share bugs, ideas, or general feedback.
An agentic AI skill that scans your codebase, detects architectural debt, and generates production-ready refactored code using professional design patterns.
When you invoke /design-patterns, it doesn't lecture you about theory. It runs a 4-phase process on your actual code:
DETECT → DIAGNOSE → DESIGN → DELIVER
Every recommendation comes with evidence. No pattern without pain.
1. NO PATTERN WITHOUT PAIN — Don't apply Factory just because textbooks say so.
2. EVIDENCE BEFORE ELEGANCE — If current code works and is testable: LEAVE IT ALONE.
3. INCREMENTAL OVER REVOLUTIONARY — One pattern, one module, one PR.
This skill works with any of these AI coding tools:
| Platform | Minimum Version |
|---|---|
| Claude Code (Anthropic) | Any version supporting plugins |
| Cursor | Any version supporting .cursor rules |
| Codex (OpenAI) | Any version supporting instruction URLs |
| OpenCode | Any version supporting .opencode |
No dependencies to install. This is a pure prompt/instructions skill.
Install once. Works across Claude Code, Cursor, Codex, and OpenCode.
/plugin marketplace add VoDaiLocz/design-patterns
/plugin install design-patterns@design-patterns
Copy the skill file into your project or global rules directory:
# Option A: Project-level (applies only to this project)
cp -r skills/design-patterns/ .cursor/rules/design-patterns/
# Option B: Clone and reference in Cursor settings → Rules → Add rule file
git clone https://github.com/VoDaiLocz/Design-Patterns.git
# Then add: skills/design-patterns/SKILL.md as a rule
Fetch and follow instructions from https://raw.githubusercontent.com/VoDaiLocz/Design-Patterns/main/.codex/INSTALL.md
Fetch and follow instructions from https://raw.githubusercontent.com/VoDaiLocz/Design-Patterns/main/.opencode/INSTALL.md
# Copy the skill folder anywhere your AI tool reads context from
cp -r skills/design-patterns/ ~/.gemini/antigravity/skills/design-patterns/
# Or attach SKILL.md directly as a context file in your AI tool
/design-patterns <target>
Examples:
/design-patterns src/api/users → Analyze specific module
/design-patterns "order processing" → Analyze a feature
/design-patterns → Analyze entire project
Input: /design-patterns src/api/routes.ts
## 📊 Architecture Health Score: 7/20
## 🔍 Detected Anti-Patterns
| # | Anti-Pattern | File:Line | Severity | Evidence |
|---|-------------------|---------------------|----------|---------------------------------------|
| 1 | Logic Leakage | src/api/routes.ts:45| 🔴 High | DB query inside route handler |
| 2 | God Object | src/api/routes.ts | 🔴 High | 450 lines, 12 functions, mixed logic |
| 3 | Tight Coupling | src/api/routes.ts:12| 🟡 Med | Direct PrismaClient import |
## 💡 Recommended Patterns
| Anti-Pattern | → Pattern | Scale | Impact |
|---------------|------------------|--------------|-----------|
| Logic Leakage | Service Layer | Architecture | 3 files |
| God Object | SRP + Strategy | Code | 4 files |
| Tight Coupling| Repository | Architecture | 2 files |
## 🏗️ Implementation Plan
Step 1: Create UserService, extract business logic from routes.ts
Step 2: Create UserRepository, move all Prisma calls
Step 3: Create OrderService + OrderRepository
Step 4: Thin routes.ts to HTTP-only controller
## 📝 Generated Code
[Framework-specific boilerplate for Next.js/FastAPI/NestJS...]
| Scale | Patterns | Reference |
|---|---|---|
| 🔬 Code-Level | 23 GoF Patterns + 5 SOLID Principles | references/code-patterns.md |
| 🏗️ Architecture | Clean, Hexagonal, DDD, CQRS, Service Layer, Repository | references/architecture-patterns.md |
| 🌐 System | Microservices, Event-Driven, Circuit Breaker, Saga, API Gateway | references/system-patterns.md |