Install any skill in seconds. Free to start, no credit card required.
Get Started Free →wasabeef/安全で段階的なリファクタリングと-solid-評価
安全で段階的なコードリファクタリングを実施し SOLID 原則の遵守状況を評価する。「リファクタリングして」「コードを改善して」「きれいにして」「コード整理して」「構造を改善して」「保守性を向上させて」「技術的負債を減らして」などで起動。
Passed 19 of 22 test cases with the skill, and 12 of 22 without it.
and 9 more in the full report
8 fixed11 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
JavaScriptで記述された OrderProcessingService クラスの設計を評価してください。このクラスは決済、在庫更新、注文保存の3つの責務を持ち、12個のメソッドが定義されています。責任数とメソッド数を考慮したS(単一責任の原則)のスコア判定結果を求めてください。
| Checked | Without skill | With skill |
|---|---|---|
| Assigns 10 points for Single Responsibility base score when 3 responsibilities are present. | Missed | Passed |
| Adds 3 bonus points for Single Responsibility evaluation when the method count is between 7 and 15. | 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
"50 行以上のメソッドを Extract Method で分割してください"
# 条件分岐の複雑度
grep -r "if.*if.*if" . --include="*.js"
"ネストした条件文を Strategy パターンで改善してください"
# コードの臭いの検出
grep -r "TODO\|FIXME\|HACK" . --exclude-dir=node_modules
"技術的負債となっているコメントを解決してください"
test cases passed, vs 12 / 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.