Install any skill in seconds. Free to start, no credit card required.
Get Started Free →wasabeef/安全渐进式重构与-solid-评估
安全渐进式重构与 SOLID 评估。「重构这个」「改善代码」「清理代码」「改善结构」等触发。
Passed 20 of 23 test cases with the skill, and 11 of 23 without it.
and 11 more in the full report
10 fixed10 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
我们在静态分析中发现了一个涉及循环依赖且包含 God Object 隐患的模块,影响范围很广,但解耦修复成本很低。请在优先级矩阵中明确其分类等级、建议处理期限与推荐行动。
| Checked | Without skill | With skill |
|---|---|---|
| Classifies the debt priority level as Critical. | Missed | Passed |
| Sets the resolution deadline within 1 week. | 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 / 23 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.