prompt
FreePerform a cold, hard assessment of technical debt in any codebase.
About prompt
A detailed, opinionated prompt designed to instruct an AI language model to act as a senior staff engineer and codebase archaeologist to perform a rigorous technical debt audit on a codebase. The prompt outlines a structured multi-phase approach: an orientation phase where the AI reads documentation, maps directory structure, reviews git history, and identifies hot spots; followed by an audit phase that sweeps across nine dimensions such as architectural decay, consistency rot, type conformance, and more. Each finding must cite specific file:line references, and the prompt includes a mandatory 'looks bad but is actually fine' section to avoid false positives. The prompt explicitly discourages generic filler, vague claims, or recommending rewrites, and emphasizes actionable, scoped changes grounded in the actual code.
Key Features
Pros & Cons
- Encourages evidence-based findings with file:line references, reducing vague complaints
- Forces the AI to read code before judging, avoiding surface-level pattern matching
- Includes a section for false positives, making the audit more reliable
- Explicitly bans filler and sycophancy, leading to honest assessments
- Structured phases ensure thorough coverage of the codebase
- Requires a capable AI model with strong code reading and reasoning abilities to execute effectively
- The prompt is long and complex, which may confuse less advanced models
- Relies on the AI's ability to accurately parse large codebases and git history, which may be inconsistent
- Does not provide automated execution; manual pasting and review are needed