gemini Prompts
CodingGemini
Enterprise Code Refactor & Security Hardening Engine
Transforms raw or legacy code into production-grade, enterprise-hardened software by analyzing vulnerabilities, optimizing algorithmic complexity, and generating targeted unit tests.
The Prompt
Act as a Principal Software Engineer and Enterprise Security Architect. Analyze the provided [programming_language] code snippet: [target_code] Perform a comprehensive, 5-stage code review and refactor tailored for an enterprise environment targeting [performance_tier] standards: 1. Security & Vulnerability Analysis: Identify OWASP top 10 vulnerabilities, memory leaks, race conditions, or unhandled exceptions. 2. Modern Refactoring: Rewrite the code to use modern idiomatic patterns, strict type-checking, SOLID/DRY principles, and optimal asynchronous execution where applicable. 3. Algorithmic Complexity: Provide Big-O time and space complexity analysis comparing the original code against your refactored version. 4. Unit Testing Strategy: Draft comprehensive unit test coverage using [testing_framework], including happy path, boundary conditions, and error-handling edge cases. 5. Production Readiness: Provide concrete recommendations for telemetry, structured logging, and configuration management.
Difficultyadvanced
Created ByQuickTool AI
Views1
Copies0
Tools for the next step
These links are selected from this page's topic, not from a generic popularity list.
BusinessAI Employee Performance ReviewCreate a structured Employee Performance Review result from your requirements with guided AI assistance.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 Review ResponderGenerate professional replies to customer reviews or feedback.