SuperAPI AI Directory

design-patterns-principles

Coding & development

View repository

Updated 10-16 06:21

About this skill

Design Patterns & Principles

Overview

Provide concise, consistent explanations of patterns and principles using local reference documents.

Quick Workflow

  1. Identify scope: patterns, principles, or both.
  2. Load relevant references: references/design-patterns.md and/or references/design-principles.md.
  3. Respond in Chinese with short sections.
  • For patterns: Definition / Applicable scenarios / Pros and cons / Typical implementation
  • For principles: Definition / Applicable scenarios / Key implementation points
  1. 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