chatgpt Prompts
CodingChatGPT
Production-Grade Codebase Refactoring and Architectural Debt Audit
Transforms legacy, unoptimized, or vulnerable code into enterprise-grade, performant, and fully tested microservices while addressing architectural debt.
The Prompt
Act as a Principal Software Engineer and System Architect. Review, refactor, and audit the following source code: [source_code] Context & Technical Constraints: - Target Language & Framework: [target_language_framework] - Performance Benchmarks: [performance_benchmarks] - Architectural Style / Design Patterns: [architectural_style] - Security & Compliance Requirements: [security_requirements] - Testing Framework: [testing_framework] Please execute the following four-stage analysis: 1. Codebase Audit & Technical Debt: Identify security vulnerabilities (e.g., OWASP Top 10), performance bottlenecks, memory leaks, missing type safety, and code smells. 2. Fully Refactored Code: Provide clean, idiomatic, fully typed, and production-ready code. Implement robust error handling, structured logging, and modern design patterns. 3. Comprehensive Test Suite: Write unit and integration tests using [testing_framework] covering happy paths, edge cases, and failure scenarios. 4. Migration Strategy: Provide a step-by-step rollout plan to transition from the current implementation to the refactored code with zero downtime.
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.BusinessAI Competitor AnalysisCreate a structured Competitor Analysis result from your requirements with guided AI assistance.