·solid
</>

solid

应用 SOLID 原则编写灵活、可维护和可测试的代码。 在设计类、接口和模块边界时使用。封面单曲 责任、开放/封闭、里氏替换、接口隔离和 依赖倒置与实用的 TypeScript 示例和检测启发式。

17安装·1热度·@fellipeutaka

安装

$npx skills add https://github.com/fellipeutaka/leon --skill solid

如何安装 solid

通过命令行快速安装 solid AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/fellipeutaka/leon --skill solid
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:fellipeutaka/leon。

SKILL.md

查看原文

Five principles for building software that is easy to understand, extend, and maintain. They reduce coupling, increase cohesion, and make code testable.

| SRP | One reason to change | "This class handles X and Y and Z" | | OCP | Add, don't modify | Growing if/else or switch chains for types | | LSP | Subtypes are substitutable | Type-checking or special-casing in calling code | | ISP | Small, focused interfaces | Empty method implementations or throw new Error("Not implemented") |

| DIP | Depend on abstractions | new ConcreteClass() inside business logic |

应用 SOLID 原则编写灵活、可维护和可测试的代码。 在设计类、接口和模块边界时使用。封面单曲 责任、开放/封闭、里氏替换、接口隔离和 依赖倒置与实用的 TypeScript 示例和检测启发式。 来源:fellipeutaka/leon。

可引用信息

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

安装命令
npx skills add https://github.com/fellipeutaka/leon --skill solid
分类
</>开发工具
认证
收录时间
2026-02-21
更新时间
2026-03-10

Browse more skills from fellipeutaka/leon

快速解答

什么是 solid?

应用 SOLID 原则编写灵活、可维护和可测试的代码。 在设计类、接口和模块边界时使用。封面单曲 责任、开放/封闭、里氏替换、接口隔离和 依赖倒置与实用的 TypeScript 示例和检测启发式。 来源:fellipeutaka/leon。

如何安装 solid?

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

这个 Skill 的源码在哪?

https://github.com/fellipeutaka/leon