Lesson 1 of 4 · 30 min

Running an AI Codebase Audit on an Existing App

Know what you have before you change it.

XDQ Tutor · AI guide

Hello. In this lesson I will take you through 3 ideas, one at a time.

  1. What to ask for
  2. Beyond the code
  3. The audit report

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.

Quick check

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.

Quick check

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.

Key takeaways
  • 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
Try it

Outline an audit report for an app you know: the sections, the evidence for each and the three decisions it should enable.

That is the lesson.
Mark it complete to track your progress on this device.
← CourseCourse overviewNext lesson →App Rewrite vs Refactor: How to Decide