跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/laurigates/claude-plugins/design-patterns

Claude Code design-patterns skill: Choose a pattern for a code change

Start with the part of a design that is hard to change. Compare patterns such as Strategy, State, Factory, or Adapter with a simple implementation and account for the extra interfaces they introduce.

中文

Install in Claude Code

Bring a small code sample or a concrete change request. Keep the upstream REFERENCE.md file with the skill.

  1. Download the repository snapshot at the linked commit. Copy software-design-plugin/skills/design-patterns/ into .claude/skills/design-patterns/ in your practice project and keep its reference files.
  2. Check that SKILL.md is directly inside .claude/skills/design-patterns/. Open Claude Code from the project root.
  3. Enter /design-patterns to try the example below.

Example task

Run /design-patterns for an exporter with CSV and JSON branches. Explain that TSV is next and compare keeping the conditional with using Strategy.

What to check

The review identifies the branch that grows for every format, shows when a strategy interface would help, and preserves the existing format selection behavior.

Original SKILL.md on GitHub · Updated 2026-11-11

Frequently asked question

Is Strategy useful for an exporter with one stable format?

A direct implementation is usually enough. Revisit Strategy when new formats are recurring and the existing conditional becomes expensive to maintain.

词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯