Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Refactors code in safe incremental steps and evaluates SOLID principle adherence with quantitative metrics.
Use this skill ↓55% 86%+32 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 12 of 22 without it.
JavaScriptで記述された OrderProcessingService クラスの設計を評価してください。このクラスは決済、在庫更新、注文保存の3つの責務を持ち、12個のメソッドが定義されています。責任数とメソッド数を考慮したS(単一責任の原則)のスコア判定結果を求めてください。
Assigns 10 points for Single Responsibility base score when 3 responsibilities are present.
3 of 3 safety checks passed
安全で段階的なコードリファクタリングを実施し、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
"技術的負債となっているコメントを解決してください"
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.