Running an AI Codebase Audit on an Existing App
Know what you have before you change it.
Hello. In this lesson I will take you through 3 ideas, one at a time.
Why it matters: Know what you have before you change it. After each idea I will ask you one quick question.
In this lessonFollows you as you read
What to ask for
The short version: Agents read a whole codebase quickly.
Agents read a whole codebase quickly. Ask for specific outputs: a map of screens and flows, the data model, the dependencies and their age, the areas with no tests, repeated code, and places where the app talks to outside services.
Ask for evidence with every claim: file paths and examples. An audit without references cannot be checked.
What makes an AI audit trustworthy?
Beyond the code
The short version: Add what the code cannot tell you.
Add what the code cannot tell you. Crash and error reports. Store reviews. Support tickets. Analytics on which screens people use. A tangled screen nobody visits matters less than a tidy one where payments fail.
Combine the two into a short list of problems ranked by harm to users and the business.
How should problems be ranked?
The audit report
The short version: Keep the report to a few pages: condition by area, the top ten problems with evidence, risks, and options.
Keep the report to a few pages: condition by area, the top ten problems with evidence, risks, and options. Write it so the business owner can decide, not only the engineers.
For apps that came to XDQ Labs for improvement, this report is the first deliverable, and it is useful even if the owner goes no further.
- Ask agents for specific maps and lists, with file references
- Add crash data, reviews and usage
- Rank problems by harm, not by ugliness
- Write the report for the decision maker
Outline an audit report for an app you know: the sections, the evidence for each and the three decisions it should enable.
Mark it complete to track your progress on this device.