·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-11

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