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.mdand/orreferences/design-principles.md. - Respond in Chinese with short sections.
- For patterns: Definition / Applicable scenarios / Pros and cons / Typical implementation
- For principles: Definition / Applicable scenarios / Key implementation points
- 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.mdreferences/design-principles.md