·design-patterns-implementation
</>

design-patterns-implementation

aj-geddes/useful-ai-prompts

应用适当的设计模式(单例、工厂、观察者、策略等)来解决架构问题。在重构代码架构、实现可扩展系统或遵循 SOLID 原则时使用。

92安装·2热度·@aj-geddes

安装

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill design-patterns-implementation

SKILL.md

Apply proven design patterns to create maintainable, extensible, and testable code architectures.

Ensure a class has only one instance with global access.

| Singleton | Database connections, configuration managers | | Factory | Creating objects based on runtime conditions | | Observer | Event systems, pub/sub, reactive programming | | Strategy | Algorithms that can be swapped at runtime | | Decorator | Adding features dynamically without inheritance |

应用适当的设计模式(单例、工厂、观察者、策略等)来解决架构问题。在重构代码架构、实现可扩展系统或遵循 SOLID 原则时使用。 来源:aj-geddes/useful-ai-prompts。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill design-patterns-implementation
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 design-patterns-implementation?

应用适当的设计模式(单例、工厂、观察者、策略等)来解决架构问题。在重构代码架构、实现可扩展系统或遵循 SOLID 原则时使用。 来源:aj-geddes/useful-ai-prompts。

如何安装 design-patterns-implementation?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill design-patterns-implementation 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/aj-geddes/useful-ai-prompts