A structured, multi-pass code refinement skill that transforms complex, verbose, or tangled code into clean, idiomatic, maintainable implementations — without changing what the code does.
The goal is not fewer lines. The goal is code that a tired engineer at 2am can read, understand, and safely modify. Every change must pass three tests:
When clarity and brevity conflict, clarity wins. When idiom and explicitness conflict, consider the team's experience level. When DRY and locality conflict, prefer locality for code read more than modified.
深度程式碼簡化、重構和品質細化。分析結構複雜性、反模式和可讀性債務,然後應用有針對性的重構來保留準確的行為。與語言無關:Python、Go、TypeScript/JavaScript、Rust。當目標是簡化和清晰而不是查找錯誤時,請使用此技能。觸發條件:「簡化此程式碼」、「清理我的程式碼」、「為了清晰而重構」、「降低複雜度」、「使其更具可讀性」、「程式碼品質通過」、「技術債清理」、「執行程式碼最佳化器」、「降低複雜度」、「使其更具可讀性」、「程式碼品質通過」、「技術債清理」、「運行程式碼最佳化器」、「簡化最近的更改」、「此程式碼很混亂」、「嵌套太多」、「此遊戲程式碼最佳化器」、「簡化最近的更改」、「此程式碼很混亂」、「嵌套太多」、「此味太長」、「認知值 PR 之前程式碼複雜度 來源:mathews-tom/praxis-skills。