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。