| name | apply-design-patterns |
| description | Consult the design pattern catalog before implementing or refactoring code. |
Apply Design Patterns
Before implementing or refactoring, consult the design pattern catalog to see if an established pattern applies.
Steps
- Read the catalog index —
design-pattern-catalog/index.md lists all documented patterns with a short description of the problem each one solves.
IMPORTANT: design pattern catalog is a project subdirectory. NOT part of this skill. If it doesn't exist, just skip it.
-
Check for a matching pattern — if the task involves a problem described in the index, read the full pattern entry.
-
Follow the pattern — use the reference implementation and testing strategies documented in the entry. Do not invent a new approach when a cataloged pattern exists.
-
If no pattern matches — proceed normally. Not every task needs a cataloged pattern.