/senior-dev:refactoring-code-expertfrom senior-dev
Executes structural improvements on existing code to increase maintainability, readability, and extensibility without altering external behavior. Addresses technical debt, code smells, and applies design patterns or SOLID principles.
Ships in senior-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill guides safe, disciplined, and incremental structural improvements to existing codebases without modifying external behavior. It acts as a Senior Software Architect and Refactoring Specialist, treating refactoring not as a risky "big-bang rewrite", but as a controlled sequence of micro-transformations protected by a robust automated test safety net.
code-implementer or test-driven-development.code-smells-expert.database-migration-expert.senior-architect-engineering.python3 ./skills/refactoring-code-expert/scripts/run_tests.py
Formulate a sequence of atomic, low-risk micro-refactorings:
if/else or switch trees with strategy classes.Execute the changes one step at a time:
python3 ./skills/refactoring-code-expert/scripts/run_tests.py.# Detect and execute test suite before and after refactorings
python3 ./skills/refactoring-code-expert/scripts/run_tests.py
run_tests.py via the bash tool between micro-refactorings to guarantee continuous green state.python3 ./skills/refactoring-code-expert/scripts/run_tests.py
For detailed catalogs of code transformations and step-by-step mechanics:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jggomez/expert-ai-developer-skills --plugin senior-dev15 skills in this plugin
/adversarial-challengerAdversarial stress testing, fuzzing, worst-case inputs, failure-path probes, timeout/reconnection simulations, and concurrency/memory stress./blackbox-testerBlack-box browser verification validating real user flows, GUI forms, console/network errors, visual layouts, and 4-viewport screenshot evidence using deterministic Playwright execution./code-criticIndependent code review inspecting cyclomatic complexity, DRY, SOLID, anti-patterns, maintainability, and interface robustness./code-implementerGuides the implementation of code using Test-Driven Development (TDD) and clean code principles. Trigger when implementing new features, fixing bugs, or refactoring existing code./code-smells-expertAnalyzes source code to identify, classify, and diagnose architectural design flaws known as "Code Smells" and technical debt. Use this skill when requested to perform a technical audit, evaluate code quality, look for SOLID violations (especially SRP and OCP), or identify reasons why code is difficult to maintain or test. It applies the perspective of a critical Senior Software Architect using standard industry taxonomy (Fowler/Beck)./compliance-verifierGuides the final quality assurance and compliance verification of a project. Trigger when checking non-functional requirements, static code analysis, test coverage, and security compliance before release.Other plugins' skills for the same job