Systematically extract maximum value from existing code — identify what's golden (high-value, well-designed), what's lead (resource-heavy, poorly optimized), and what's dross (dead weight). Then amplify the gold, transmute the lead, and remove the dross.
Expected: Every significant element classified with evidence. Gold elements are identified for protection during optimization. Lead elements are prioritized by impact.
On failure: If profiling tools aren't available, use static analysis: function complexity (cyclomatic), dependency count, and code size as proxies. If the codebase is too large, focus on the critical path first.
성능 최적화, API 표면 개선, 중량 제거 등 기존 코드에서 최대 가치를 추출합니다. 가치를 지닌 패턴을 체계적으로 식별하고 증폭하여 기본 코드를 금으로 바꾸는 기술입니다. 작동하지만 느린 코드베이스를 최적화할 때, 복잡하게 쌓인 API 표면을 개선할 때, 번들 크기나 메모리 공간을 줄일 때, 오픈 소스 릴리스를 위한 코드를 준비할 때 사용합니다. 코드가 올바르게 작동하지만 빛나지 않고 전체 재작성보다는 다듬기가 필요한 경우에 사용합니다. 출처: pjt222/development-guides.