/code-simplification
把程式碼簡化到更清楚。
- 安裝次數
- 6.8 萬
- 專案星數
- 11.3 萬 ★
- 授權
- MIT
- 專案更新
- 2026-11-01
什麼時候用
要在不改變行為的前提下重構;程式能跑,但比該有的更難讀、難維護、難擴充;審查累積了多餘複雜度的程式碼時。
怎麼裝
npx skills add https://github.com/addyosmani/agent-skills --skill code-simplification安裝前請先看過原文內容。中文說明是 AI 翻譯,不保證安全。
原文
Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity. Use when asked to simplify, clean up, or reduce the nesting of a function or module that already works, even when the code is pasted inline and nothing else needs to change.