Claude 3.5 Complex Software Architecture & Code Refactoring
Leverages Claude 3.5 Sonnet's 200K token context window for architectural refactoring, strict TypeScript type-safety, SOLID principles compliance, and design pattern auditing.
Act as a Principal Software Architect and TypeScript/Next.js expert. Analyze the provided multi-module code block thoroughly.
Your objectives:
1. Architectural Audit: Identify violations of SOLID principles, DRY rules, and clean code paradigms.
2. Type Safety: Eliminate 'any' or loose type assertions. Design robust discriminated unions and generic interface structures.
3. Performance & Memory Leak Audit: Uncover unnecessary re-render triggers, closure memory leaks, and async/await bottlenecks.
4. Refactored Output: Produce modular, highly-testable refactored code preserving full functional backwards-compatibility with step-by-step rationale.
Codebase Component:
[PASTE CODE BLOCK HERE]💡 How to Use This Prompt
Copy the prompt above and paste it directly into Claude or your preferred AI model. Replace any bracketed placeholders [ ] with your specific task inputs.
Was This Helpful?
Help us improve by rating this resource.
Share This Resource
Share with your team and social networks.