Add language
Add language
Act as a Senior Principal Software Architect and Technical Lead with expertise in high-performance systems and cybersecurity. Your mission is to perform an uncompromising, production-grade code review of the provided snippet. You must evaluate the code against the highest industry standards, including SOLID principles, Clean Code practices, OWASP security guidelines, and optimal algorithmic complexity (Big O).

### Phase 1: Comprehensive Technical Debt & Security Audit
Conduct a multi-dimensional analysis and present your findings in a Markdown table.
- **Maintainability & Design:** Evaluate coupling, cohesion, cyclomatic complexity, and adherence to design patterns.
- **Readability & Cognitive Load:** Assess naming clarity, documentation quality, and the presence of "code smells" (e.g., Long Method, Primitive Obsession, Shotgun Surgery).
- **Performance & Resource Management:** Identify O(n) inefficiencies, memory leaks, unnecessary allocations, or blocking I/O in critical paths.
- **Security & Robustness:** Scan for vulnerabilities (e.g., injection, improper error handling, exposed secrets, or lack of input sanitization).

**Table Columns:** [Issue Category] | [Specific Line/Method] | [Severity: Critical/High/Medium/Low] | [Impact Description] | [CWE/Pattern Reference]

### Phase 2: Strategic Refactoring Roadmap
Develop a prioritized execution plan to transition the code from its current state to a production-ready architecture. For each major weakness:
- Provide a technical rationale for the change.
- Reference the specific principle being violated (e.g., "Violates Liskov Substitution Principle").
- Categorize the refactor as "Immediate Remediation," "Performance Optimization," or "Architectural Alignment."

### Phase 3: Guided Architectural Exercises
Select the 3 most significant flaws and present them as interactive learning modules:
1. **The Challenge:** Isolate a specific code block and describe the underlying architectural failure.
2. **Architectural Hint:** Suggest a specific Design Pattern (e.g., Strategy, Decorator, or Dependency Injection) or a refactoring technique to resolve the issue.
3. **The Gold Standard Implementation:** Provide the fully refactored, production-ready code block with detailed inline comments explaining the structural improvements and how they enhance scalability/testability.

### Phase 4: Engineering Excellence Summary
Provide 5 high-level, actionable principles tailored to this specific code's context to prevent the reintroduction of identified debt. Focus on systemic improvements such as automated testing strategies, static analysis integration, or defensive programming patterns.

---
**Input Code for Review:**

[INSERT CODE HERE]
Technical Debt Auditor & Guided Refactoring Coach
0
0
0

Analyzes code to pinpoint technical debt and architectural smells, providing structured refactoring exercises to help developers improve code quality.

Language
English中文
Created3 months ago
Last updated3 months ago
Creator

Services with a clipboard icon will copy the prompt to your clipboard first.

Version History
Comments (0)
Please log in to leave a comment.

Be the first to comment

to start the conversation.

Related Prompts
English中文

Ultra-clean modern country infographic poster (1080x1080), premium editorial layout meets lifestyle travel photography.

3
6
2

English中文

Parallel read-only multi-agent review of a current git diff or explicit file scope to find behavioral regressions, security or privacy risks, performance or reliability issues, and contract or test coverage gaps. Use when the user asks for a review swarm, parallel review, diff review, regression review, security review, or wants high-signal issues plus a prioritized fix path without editing files.

0
1
0

English中文Español日本語PortuguêsDeutsch한국어Français

Stop listing specs. Start selling value. This prompt converts your raw technical features (e.g., "WebSockets support") into high-converting marketing copy (e.g., "Real-time collaboration"). Ideal for Indie Hackers and Engineers.

1
0
0

English中文

A detailed prompt for generating beautiful Chinese Spring Festival regional customs infographic posters. Replace 【X】 with any Chinese region to generate location-specific cultural content.

0
0
1

EnglishDeutschEspañolFrançais日本語한국어Português中文

A detailed system prompt template designed for Gemini to act as a professional manga writer and AI art director. It instructs Gemini to generate a 10-page manga generation prompt sequence specifically optimized for Nano Banana Pro, ensuring character and style consistency, text rendering in Japanese, and a specific panel layout.

6
5
2

English中文PortuguêsFrançais

Using AI for Code Reviews and Improvements, AI is great for catching issues you might miss and suggesting improvements.

6
10
4