File contents Related Skills
Modeling business concepts (Entity, Value Object)? → Use domain-modeling instead
Restructuring existing code toward a pattern? → Use refactoring for safe migration steps
Deciding if a pattern is even needed (YAGNI)? → Use principles to evaluate first
Applicability Rubric
Condition
Pass
Fail
Multi-component change
Feature affects multiple components
Single component change
Recognizable problem
Matches known design problem
Unique/novel problem
Flexibility needed
Requires extensible solution
Fixed requirements
Recurring challenge
Solving common design issue
One-off implementation
Apply when : Any condition passes
Core Principles
Pattern Selection Process
1. Identify the problem
↓
2. Match problem to pattern category
↓
3. Evaluate pattern candidates
↓
4. Consider trade-offs
↓
5. Apply pattern minimally
Pattern Categories
Category
Purpose
Common Patterns
Creational
Object creation
Factory, Builder, Singleton
Structural
Object composition
Adapter, Decorator, Facade
Behavioral
Object interaction
Strategy, Observer, Command
Pattern Quick Reference
Category
Pattern
Use When
Example
Creational
Factory Method
Object creation varies by context
createLogger(type)
Creational
Builder
Complex object with many optional parts
Fluent configuration
Creational
Singleton
Single instance needed globally
Configuration manager
Structural
Adapter
Interface incompatibility
Wrap legacy API
Structural
Decorator
Add behavior dynamically
Logging wrapper
Structural
Facade
Simplify complex subsystem
Unified API client
Structural
Composite
Tree structures
UI components
Behavioral
Strategy
Algorithm varies at runtime
Payment methods
Behavioral
Observer
One-to-many notifications
Event system
Behavioral
Command
Encapsulate operations
Undo/redo actions
Behavioral
State
Behavior changes with state
Order status
Completion Rubric
Before Applying
Criterion
Pass
Fail
Problem identification
Problem clearly defined
Vague problem statement
Real need
Solves actual problem
Hypothetical/speculative
Simpler alternatives
Considered simpler options first
Jumped to pattern
Team familiarity
Team understands pattern
Pattern is obscure
During Implementation
Criterion
Pass
Fail
Minimal application
Pattern applied minimally
Over-applied
Clear naming
Names reflect pattern intent
Generic/unclear names
Intent preservation
Pattern intent maintained
Pattern misused
Appropriate complexity
Complexity justified
Over-engineered
After Implementation
Criterion
Pass
Fail
Flexibility gained
Code more flexible
Same or less flexible
Documented
Pattern documented if not obvious
Undocumented complexity
Tested
Tests cover pattern behavior
Pattern untested
Anti-Pattern Warning
Pattern Fever : Applying patterns everywhere
Signs:
Patterns for trivial problems
Multiple patterns where one suffices
Code harder to understand than before
Cure: YAGNI - Use patterns only when they solve real problems
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1 --- 2 name: elct9620-ai-coding-skills-design-patterns 3 description: Related Skills 4 --- 5 6 ## Related Skills 7 8 - Modeling business concepts (Entity, Value Object)? → Use **domain-modeling** instead 9 - Restructuring existing code toward a pattern? → Use **refactoring** for safe migration steps 10 - Deciding if a pattern is even needed (YAGNI)? → Use **principles** to evaluate first 11 12 ## Applicability Rubric 13 14 | Condition | Pass | Fail | 15 |-----------|------|------| 16 | Multi-component change | Feature affects multiple components | Single component change | 17 | Recognizable problem | Matches known design problem | Unique/novel problem | 18 | Flexibility needed | Requires extensible solution | Fixed requirements | 19 | Recurring challenge | Solving common design issue | One-off implementation | 20 21 **Apply when**: Any condition passes 22 23 ## Core Principles 24 25 ### Pattern Selection Process 26 27 ``` 28 1. Identify the problem 29 ↓ 30 2. Match problem to pattern category 31 ↓ 32 3. Evaluate pattern candidates 33 ↓ 34 4. Consider trade-offs 35 ↓ 36 5. Apply pattern minimally 37 ``` 38 39 ### Pattern Categories 40 41 | Category | Purpose | Common Patterns | 42 |----------|---------|-----------------| 43 | Creational | Object creation | Factory, Builder, Singleton | 44 | Structural | Object composition | Adapter, Decorator, Facade | 45 | Behavioral | Object interaction | Strategy, Observer, Command | 46 47 ## Pattern Quick Reference 48 49 | Category | Pattern | Use When | Example | 50 |----------|---------|----------|---------| 51 | Creational | Factory Method | Object creation varies by context | `createLogger(type)` | 52 | Creational | Builder | Complex object with many optional parts | Fluent configuration | 53 | Creational | Singleton | Single instance needed globally | Configuration manager | 54 | Structural | Adapter | Interface incompatibility | Wrap legacy API | 55 | Structural | Decorator | Add behavior dynamically | Logging wrapper | 56 | Structural | Facade | Simplify complex subsystem | Unified API client | 57 | Structural | Composite | Tree structures | UI components | 58 | Behavioral | Strategy | Algorithm varies at runtime | Payment methods | 59 | Behavioral | Observer | One-to-many notifications | Event system | 60 | Behavioral | Command | Encapsulate operations | Undo/redo actions | 61 | Behavioral | State | Behavior changes with state | Order status | 62 63 ## Completion Rubric 64 65 ### Before Applying 66 67 | Criterion | Pass | Fail | 68 |-----------|------|------| 69 | Problem identification | Problem clearly defined | Vague problem statement | 70 | Real need | Solves actual problem | Hypothetical/speculative | 71 | Simpler alternatives | Considered simpler options first | Jumped to pattern | 72 | Team familiarity | Team understands pattern | Pattern is obscure | 73 74 ### During Implementation 75 76 | Criterion | Pass | Fail | 77 |-----------|------|------| 78 | Minimal application | Pattern applied minimally | Over-applied | 79 | Clear naming | Names reflect pattern intent | Generic/unclear names | 80 | Intent preservation | Pattern intent maintained | Pattern misused | 81 | Appropriate complexity | Complexity justified | Over-engineered | 82 83 ### After Implementation 84 85 | Criterion | Pass | Fail | 86 |-----------|------|------| 87 | Flexibility gained | Code more flexible | Same or less flexible | 88 | Documented | Pattern documented if not obvious | Undocumented complexity | 89 | Tested | Tests cover pattern behavior | Pattern untested | 90 91 ## Anti-Pattern Warning 92 93 **Pattern Fever**: Applying patterns everywhere 94 95 Signs: 96 - Patterns for trivial problems 97 - Multiple patterns where one suffices 98 - Code harder to understand than before 99 100 Cure: YAGNI - Use patterns only when they solve real problems 101 102 --- 103 > Converted and distributed by [TomeVault](https://tomevault.io/claim/elct9620) — claim your Tome and manage your conversions. 104 <!-- tomevault:4.0:skill_md:2026-04-13 -->
tomevault-io/skills-registry/tree/main/elct9620--ai-coding-skills--design-patterns commit f7b8959d8e
Frequently asked questions How do I install the Elct9620 AI Coding Skills Design Patterns skill? Run npx skillmds@latest add tomevault-io/elct9620-ai-coding-skills-design-patterns in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Elct9620 AI Coding Skills Design Patterns skill do? Related Skills It is listed under Coding & Dev Tools on SkillMD.
Is Elct9620 AI Coding Skills Design Patterns safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Elct9620 AI Coding Skills Design Patterns? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Elct9620 AI Coding Skills Design Patterns free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Elct9620 AI Coding Skills Design Patterns? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.