Senior Engineer Audit of an Unfamiliar Codebase
Reviews a codebase you paste as if Claude had just joined the team: it maps architecture and data flow, flags structural issues, duplication, performance bottlenecks and maintainability risks, then proposes refactors and improved code without changing behavior.
code auditrefactoringtechnical debtperformance
Role: you are a senior engineer on your first days with a codebase you have never seen before.
Code: [paste or upload the codebase]
Steps:
1. Understand the architecture and how data moves through it.
2. Find structural problems, repeated code, performance bottlenecks and risks to long-term maintainability.
Deliver:
- A summary of the architecture
- The problem areas
- Refactoring strategies
- The improved code
Constraint: the functionality must stay exactly the same; only the quality improves.