Results for “safe-refactoring”
25 skillsRefactoring Patterns
Apply named refactoring transformations to improve code structure without changing behavior, guided by code smells and safe transformation sequences.
1.6k · bundle
Refactoring
Identifies and removes dead code safely, with test verification at each step and categorization of risk levels.
1
Cpp Coding Standards
Enforces modern, safe, and idiomatic C++ coding practices based on the C++ Core Guidelines for writing, reviewing, or refactoring C++ code.
226k
Legacy Code Safety
Guides adding characterization tests before modifying or refactoring untested legacy code, using the RGR workflow and strangler fig pattern to reduce risk.
7 · bundle
Kaizen
Guides incremental code improvements, error-proofing through types and validation, and standardization for higher code quality.
5
More results
Refactor
Improve code structure and readability without changing external behavior through surgical refactoring techniques.
36.2k
Rust Patterns
Enforce idiomatic Rust patterns for ownership, error handling, enums, traits, concurrency, and best practices to build safe, performant applications.
226k
Review And Refactor
Review and refactor code according to project-specific coding guidelines and instructions.
36.2k
Refactor Method Complexity Reduce
Reduces cognitive complexity of a specified method by extracting logic into focused helper methods, improving readability and maintainability.
36.2k
Refactor Plan
Creates a concrete, multi-phase plan before starting a multi-file refactor, including affected files, dependencies, verification steps, and rollback procedures.
36.2k
Names
Refactors code by renaming variables, methods, classes, and types to improve clarity and intent, with automatic testing and commits after each rename.
7
Functional
Refactors Swift code toward declarative functional programming with immutability, value types, pure functions, transformations, and closure-based APIs.
7
Refactor Tests
Refactors test files to improve behavioral coverage, clarity, structure, assertions, fixture setup, and mocking strategy, removing implementation-detail or low-value tests.
7
Orchestrate Batch Refactor
Plan and execute large refactor or rewrite efforts efficiently with parallel multi-agent analysis and implementation.
3.8k · bundle
Srp
Refactors a class toward the Single Responsibility Principle by identifying responsibilities, grouping cohesive behavior, and extracting focused classes.
7
Tidy
Refactors production code with test coverage using a TDD workflow that applies approved refactorings one at a time, gates each on passing tests, and commits or reverts accordingly.
7 · bundle
Refactor Cleaner
Resolves legacy references to the refactor-cleaner capability by routing to the current runtime equivalent, such as an agent or modern skill.
20
Declutter
Refactors code by removing unused imports, variables, methods, redundant comments, and fixing formatting, with automatic test runs and commits after each step.
7
Refactoring
Splits, merges, moves, or deletes code while preserving behavior, tests, contracts, and boundaries, with characterization evidence and reversible steps.
4 · bundle
Kaizen
Guides incremental code improvements, error-proofing through types and validation, and standardization for higher quality and fewer defects.
3
Sweep
Reviews a codebase for structural smells and refactors them with provable safety, using micro commits and green-bar discipline.
7
Review And Simplify Changes
Review git diffs or file scopes for code reuse, quality, efficiency, and clarity issues, then optionally apply safe, behavior-preserving fixes.
3.8k
Simplify Code
Runs three parallel reviewers to find code reuse, quality, and efficiency issues in a diff, then applies safe fixes and reports risky ones.
2
Working With Legacy Code
Safely change and test untested codebases using techniques from Feathers' 'Working Effectively with Legacy Code': seams, characterization tests, sprout/wrap, and dependency-breaking.
1.6k · bundle
Dead Code
Finds and safely removes dead code across a codebase: unreachable paths, unused exports, functions, variables, CSS selectors, dependencies, env vars, and commented-out blocks. Builds an import graph, verifies no dynamic references, and runs build and tests after cleanup.
13