This skill teaches you how to perform safe, systematic code refactoring using GoodVibes precision tools. Refactoring improves code structure and maintainability without changing external behavior, making future development faster and reducing bugs.
Trigger phrases: "refactor this code", "reduce duplication", "extract function", "simplify conditionals", "improve types", "reorganize", "clean up code".
Before refactoring, map the current code structure and identify refactoring opportunities.
동작을 변경하지 않고 코드 구조를 개선하는 작업이 필요한 경우 사전에 로드하세요. 사용자가 "이 코드를 리팩터링", "이 코드 정리", "데드 코드 제거", "중복 감소", "파일 재구성" 또는 "이것을 함수로 추출"이라고 말할 때 사용합니다. 함수/구성 요소 추출, 기호 이름 변경, 조건문 단순화, 유형 안전성 향상, 종속성 반전, 데드 코드 제거, 순환 종속성 해결, 각 단계의 자동화된 안전 검증(유형 검사, 테스트)을 통한 데이터베이스 쿼리 리팩토링을 다룹니다. 출처: mgd34msu/goodvibes-plugin.