Install any skill in seconds. Free to start, no credit card required.
Get Started Free →wasabeef/安全漸進式重構與-solid-評估
安全漸進式重構與 SOLID 評估。「重構這個」「改善程式碼」「清理程式碼」「改善結構」等觸發。
Passed 22 of 22 test cases with the skill, and 11 of 22 without it.
and 17 more in the full report
11 fixed11 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
Calculate the Single Responsibility Principle score for a background processor class that contains 3 distinct business responsibilities and 10 public methods with clear change reasons.
| Checked | Without skill | With skill |
|---|---|---|
| awards 10 base points for a class managing 3 responsibilities | Missed | Passed |
| awards 3 bonus points for method count falling between 7 and 15 methods | Missed | Passed |
The instructions your model reads when the skill loads.
實施安全且漸進式的代碼重構,定量評估 SOLID 原則的遵守狀況。可視化技術債務,明確改善優先級。
# 複雜代碼的識別和重構計劃
find . -name "*.js" -exec wc -l {} + | sort -rn | head -10
「請重構大檔案以減少複雜度」
# 重複代碼的檢測與整合
grep -r "function processUser" . --include="*.js"
「請用 Extract Method 整合重複的函數」
# SOLID 原則違反的檢測
grep -r "class.*Service" . --include="*.js" | head -10
「請評估這些類是否遵循單一責任原則」
# 長方法的檢測
grep -A 50 "function" src/*.js | grep -B 50 -A 50 "return" | wc -l
"請用 Extract Method 分割 50 行以上的方法"
# 條件分支的複雜度
grep -r "if.*if.*if" . --include="*.js"
"請用 Strategy 模式改善巢狀條件語句"
# 代碼異味的檢測
grep -r "TODO\|FIXME\|HACK" . --exclude-dir=node_modules
"請解決成為技術債務的註釋"
test cases passed, vs 11 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.