| name | design-patterns-principles |
| description | Use when a request asks for software design patterns or design principles, including explanations, comparisons, summaries, or quick reference grounded in local docs. |
Design Patterns & Principles
Overview
Provide concise, consistent explanations of patterns and principles using local reference documents.
Quick Workflow
- Identify scope: patterns, principles, or both.
- Load relevant references:
references/design-patterns.md and/or references/design-principles.md.
- Respond in Chinese with short sections.
- For patterns: 定义 / 适用场景 / 优缺点 / 典型实现
- For principles: 定义 / 适用场景 / 落地要点
- If the user asks for depth or concrete examples, ask one clarifying question before expanding.
Common Mistakes
- Confusing architecture patterns with design patterns. If the request is about system architecture, clarify scope first.
- Mixing pattern names. Verify the pattern exists in the references before answering.
Resources
references/design-patterns.md
references/design-principles.md