Help us improve
Share bugs, ideas, or general feedback.
From playbooks-virtuoso
Guides through 89 refactoring techniques and 22 code smells with practical PHP examples. Use for code improvement, complexity reduction, and technical debt cleanup.
npx claudepluginhub krzysztofsurdy/code-virtuoso --plugin agents-virtuosoHow this skill is triggered — by the user, by Claude, or both
Slash command
/playbooks-virtuoso:refactoringThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
A thorough reference covering 89 refactoring techniques and code smells — featuring PHP 8.3+ examples, rationale, step-by-step mechanics, and before/after comparisons.
references/add-parameter.mdreferences/alternative-classes-with-different-interfaces.mdreferences/change-bidirectional-association-to-unidirectional.mdreferences/change-reference-to-value.mdreferences/change-unidirectional-association-to-bidirectional.mdreferences/change-value-to-reference.mdreferences/collapse-hierarchy.mdreferences/comments.mdreferences/consolidate-conditional-expression.mdreferences/consolidate-duplicate-conditional-fragments.mdreferences/data-class.mdreferences/data-clumps.mdreferences/dead-code.mdreferences/decompose-conditional.mdreferences/divergent-change.mdreferences/duplicate-code.mdreferences/duplicate-observed-data.mdreferences/encapsulate-collection.mdreferences/encapsulate-field.mdreferences/extract-class.mdApplies named refactoring transformations to improve code structure without changing behavior. Covers smell-driven refactoring, safe transformation sequences, and testing guards.
Applies disciplined refactoring in small, verifiable steps to improve code structure without changing behavior: extract functions, rename, move code.
Surgical refactoring improves maintainability without changing behavior: extracts functions, renames variables, breaks god functions, boosts type safety, fixes code smells, applies patterns. For gradual cleanups of hard-to-maintain code.
Share bugs, ideas, or general feedback.
A thorough reference covering 89 refactoring techniques and code smells — featuring PHP 8.3+ examples, rationale, step-by-step mechanics, and before/after comparisons.