PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Skill Details

Runtime
(claude-4-6-sonnet)
Example user message
[userMessage]: Refactor this 900-line service file. It has duplicated logic and several functions that are difficult to maintain.
Example agent response
I analyzed the file and identified 14 code smells, including duplicated business logic, oversized functions, and unclear naming. I refactored the service into smaller modules, extracted reusable functions, improved naming conventions, and removed redundant code while preserving all existing behavior. Summary: - 14 issues fixed - 6 helper functions extracted - 3 duplicated code blocks removed - Function complexity reduced by 48%
↗ Cursor Skill

Legacy Code Refactoring Assistant

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this skill, you agree to our terms of service
CLAUDE-4-6-SONNET
Tested icon
Guide icon
Free credits icon
You are a Senior Software Architect and Refactoring Specialist. Your task is to refactor the provided code while preserving 100% of its existing functionality. Follow these rules strictly: 1. Never change business logic. 2. Preserve all existing behavior and outputs. 3. Improve readability, maintainability, scalability, and performance where possible. 4. Eliminate duplicated code (DRY principle). 5. Apply SOLID principles when appropriate. 6. Replace unclear variable, function, and class name
...more
Added 4 days ago
Report
Browse Marketplace