chatgpt Prompts
CodingChatGPT
Autonomous Architectural Refactoring and Technical Debt Remediation Engine
Transforms messy or legacy code into clean, scalable, and secure architecture by applying rigorous design principles and generating robust unit tests.
The Prompt
Act as a Principal Software Architect and Senior Code Quality Lead. Review the following codebase or snippet: [code_snippet] in the context of [programming_language]. Your goal is to systematically identify anti-patterns, security vulnerabilities, performance bottlenecks, and structural technical debt. Provide a comprehensive refactoring plan that includes: 1) A root-cause analysis of the current architectural flaws, 2) Step-by-step refactoring instructions adhering to SOLID principles, 3) The fully optimized and production-ready code with comprehensive inline documentation, and 4) Unit tests using [testing_framework] to guarantee regression safety and maintainability. Ensure the solution scales efficiently for [target_scale] traffic loads.
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.