Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Perform safe, incremental code refactoring and evaluate compliance with the SOLID principles.
48% 96%+48 ptsof test cases passed
Passed 24 of 25 test cases with the skill, and 12 of 25 without it.
영향도는 낮지만 수정 비용이 커서 당장 수정하기 어려운 내부 복잡 로직이 있습니다. 기술 부채 대응 매트릭스에서 이 항목이 속하는 우선순위 등급과 대응 기한, 권장 조치 방안을 알려주세요.
Sets response deadline for Watch priority debt to within 3 months.
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
"기술적 부채가 되고 있는 코멘트를 해결해 주세요"
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.