← ClaudeAtlas

refactorlisted

Cross-language catalog of 62+ refactoring techniques based on Martin Fowler's "Refactoring" and Alexander Shvets' "Refactoring Guru". Detects the project's language automatically and provides idiomatic examples. Works with Java, Python, TypeScript, JavaScript, C#, Go, Kotlin, Ruby, PHP, Rust, Swift. Use this skill whenever the user asks to refactor code, improve code quality, eliminate code smells, simplify conditionals, restructure classes, improve API design, or apply any named refactoring technique. Also trigger when the user mentions code smells, legacy code improvement, clean code practices, SOLID principles, or asks "how can I improve this code". Even if the user just pastes code and asks for improvement suggestions, use this skill to identify applicable techniques. También se activa en castellano: "refactorizar", "refactorizar código", "mejorar este código", "malos olores del código", "olores de código", "código sucio", "limpiar código", "simplificar condicionales", "principios SOLID", "cómo mejorar es
andresnator/agents-orchestrator · ★ 0 · Code & Development · score 64
Install: claude install-skill andresnator/agents-orchestrator
# Refactoring Catalog (Multi-Language) A comprehensive, technique-by-technique catalog of refactoring best practices for any language, sourced from Martin Fowler's *Refactoring: Improving the Design of Existing Code* (2nd Edition) and Alexander Shvets' *Refactoring in Java* (Refactoring Guru). Adapted for Python, TypeScript, Go, and Rust with idiomatic examples. ## Step 0: Detect Language Before applying any technique, detect the project's stack: | Project File | Language | Idiom Style | |---|---|---| | `pom.xml` / `build.gradle` | Java | OOP, Stream API | | `pyproject.toml` / `requirements.txt` / `setup.py` | Python | Duck typing, comprehensions | | `package.json` + `tsconfig.json` | TypeScript | Functional-OOP hybrid | | `package.json` (no tsconfig) | JavaScript | Prototype-based, functional | | `*.csproj` | C# | OOP, LINQ | | `go.mod` | Go | Composition, implicit interfaces | | `build.gradle.kts` | Kotlin | OOP + functional | | `Gemfile` | Ruby | Duck typing, open classes | | `composer.json` | PHP | OOP | | `Cargo.toml` | Rust | Ownership, traits, no inheritance | | `Package.swift` | Swift | Protocol-oriented | If the language is **Java**, apply techniques with Java OOP, Stream API where appropriate, and the project's detected Java version constraints. ## Language Support Matrix | Concept | Python | TypeScript | Go | Rust | |---|---|---|---|---| | Class / struct | `class` | `class` | `struct` + methods | `struct` + `impl` | | Inheritance | `class Child(Parent)` | `e