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。