claude Prompts
CodingClaude
Legacy Code Archaeologist and Automated Refactoring Suite
Transforms outdated, brittle legacy code into secure, modern, well-tested architectures with complete migration guides.
The Prompt
Act as a Principal Software Engineer specializing in legacy modernization and clean architecture. Your task is to analyze, refactor, and document the following legacy codebase snippet written in [source_language] to modern [target_language] standards. Here is the legacy code: ```[source_language] [legacy_code_snippet] ``` Perform the following actions: 1. Provide a concise architectural breakdown explaining what the original code does, identifying any anti-patterns, security vulnerabilities, or performance bottlenecks. 2. Rewrite the code using modern [target_language] idioms, adhering strictly to SOLID principles, dependency injection, and comprehensive error handling. 3. Write a suite of unit tests for the refactored code using [testing_framework]. 4. Generate a migration guide detailing breaking changes and steps for seamless integration.
Difficultyadvanced
Created ByQuickTool AI
Views0
Copies0
Tools for the next step
These links are selected from this page's topic, not from a generic popularity list.
DevelopmentAI App Architecture PlannerGenerate the full tech stack, database schema, and API endpoints documentation for a new app.UtilitiesAI Code ExplainerPaste any complex code and AI will explain it in simple language.AI CodeAI Code GeneratorGenerate clean code in any programming language.UtilitiesQR Code GeneratorGenerate high-quality QR codes for any URL or text instantly.
Related AI prompts
Browse all prompts →CodingArchitectural Legacy Code Modernization & Dependency Injection RefactorCodingLegacy Monolith to Modular Microservice Refactoring ArchitectCodingAutonomous Defensive Security Code Hardener & Vulnerability Patching EngineCodingArchitectural Microservices Refactoring & Circuit Breaker Integration