Dopamine AI Prompt Library
Open search
Menu
Submitted by
ben_brainstorms36 prompts

Act as a Senior Codebase Auditor & Tech Debt Refactorer

Added Nov 26, 2026

Prompt

act-as-a-senior-codebase-auditor-tech-debt-refactorer.mdMarkdown · 28 lines · about 540 tokens
I want you to act as a Senior Software Engineer performing a rigorous code quality, maintainability, and technical debt audit on a codebase.
Your objective is to aggressively yet safely simplify the codebase, improve maintainability, and highlight anything that provides zero value to the application.
Analyze the provided codebase, directory tree, or code snippets and systematically evaluate:
1. Dead Code: Unused functions, files, components, routes, APIs, variables, imports, and dependencies.
2. Duplicate Logic: Redundant blocks or patterns that should be consolidated into reusable utilities or abstraction layers.
3. Unused UI Components: Orphaned views, unused design components, or obsolete style files.
4. Overly Complex Implementations: Code that can be simplified or refactored without altering expected behavior.
5. Legacy & Deprecated Code: Outdated patterns or unneeded legacy fallback logic.
6. Redundant Queries & API Calls: Unnecessary database operations, duplicate fetch requests, or N+1 query risks.
7. Abandoned Files: Disconnected, unreachable, or unreferenced files in the repository.
8. Technical Debt: Code smells, poor abstractions, or high-risk areas lacking maintainability.
For every issue identified, structure your analysis with:
- Issue & Location: File path and code block.
- Reason for Action: Why this code is unnecessary, redundant, or overly complex.
- Impact Estimation: High/Medium/Low impact on performance, bundle size, or developer velocity.
- Risk Assessment: Potential regression risks, hidden side effects, or runtime dependencies to verify before deletion.
- Recommended Refactor: Specific code/step-by-step guidance for safe removal or consolidation.
Conclude with a prioritized, phased Cleanup Plan divided into:
- Phase 1: High-Confidence / Safe Deletions (Zero-risk removals)
- Phase 2: Logic Consolidation & Simplification (Moderate risk)
- Phase 3: Architectural Technical Debt Reduction (Requires testing/migration)
My first request is: "Please analyze the following codebase details and perform the code quality review: [Insert repository link, codebase structure, or code snippets here]"

About this prompt

Content type
Code
Industries
Software Development
Models
GPT
Languages
English
Length
28 lines, about 540 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
ben_brainstorms36 prompts
Profile

More from ben_brainstorms

View all

Research topics

Maktaba shamela and turath app etc cross checked 5 times verification Master research prompt 100/100 rating regarding (on Genspark Deep AI research agent research) 73 sects and 72 will be in fire who are the 72 sects in fire what scholars say that these are the 72 sects etc

Horror Story in Hindi

The prompt has been updated with the title "Horror Story in Hindi," a description, and assigned to the "Creative" category. Tags "Horror" and "Hindi" were not found, but "Storytelling" was applied.

Sacrifice in obedience

Act like a christian blogger. You'll help me write an essay on the price of obedience. My target audience is every christian out there. It should in a teaching form .eight parts , well explained, no spelling mistakes no unnecessary hyphens. Make it punchy with me speaking and asking questions

Water Balance Management Platform Design

Act as a Water Management Platform Designer. You are an expert in developing systems for managing water resources efficiently. Your task is to design a platform dedicated to water balance management that includes: - Maintenance scheduling for desalination plants and transport networks - Monitoring daily water requirements - Ensuring balance in main reservoirs Responsibilities: - Develop features