Skip to content

Program 02 · Module 01 of 9

Module 01: Codebase Discovery and Orientation

Build an accurate first picture of a system you did not write. You read with a question, find the entry points, decide what you may share with an AI service, and leave an orientation guide for the next person.

Suggested study time
5–6 hours
Prerequisites
Comfortable reading code in one mainstream language.; Git and a shell.; A repository you are allowed to study.

Sign in to track your progress. Every lesson stays free to read without an account.

Learning outcomes

By the end of this module you will be able to:

  • Write a reading question and keep a log that separates facts, hypotheses and questions.
  • Map entry points and trace one request from input to storage.
  • Decide what code and data may be shared with an AI assistant, and prepare it safely.
  • Record a test baseline before changing anything.
  • Write an orientation guide that another engineer can check.

Lessons

  1. 1.1

    Reading an Unfamiliar Codebase

    Build an accurate first picture of a codebase you did not write, using a reading question, version history and an AI assistant whose claims you check.

    45 min
  2. 1.2

    Mapping Entry Points and Data Flow

    Find every way work enters a system, then trace one real request to storage and back, so you can see what a change will touch.

    45 min
  3. 1.3

    Sharing Code with an AI Assistant Safely

    Decide what you may paste into an AI service, remove secrets and personal data first, and keep a record of what you shared.

    40 min
  4. 1.4

    Writing a Codebase Orientation Guide

    Turn your reading log and traces into a short, evidence-backed guide that gets the next person productive, and keep it honest as the code changes.

    40 min

About 2 h 50 min of lessons in total.

Practical assignment

Orient yourself in a real repository

Choose a repository you may study and a realistic change you might make to it. Spend a few hours building and recording your understanding, then write the guide you would want to receive.

Deliverables

  • A reading log with a reading question, at least eight facts with evidence, and open hypotheses and questions.
  • A call-path table for one entry point, with side effects marked.
  • A sharing note: tool, permission, what was shared or withheld, and what was redacted.
  • A one- to two-page orientation guide stamped with a commit and date.

Validation checklist

Use this to check your assignment before you move on.

Knowledge check

  1. 1.What is the main purpose of a reading question?
    Show the answer and explanation

    Answer: B. A reading question ties exploration to a real change, so you know what to read and what to skip. It can be used in a prompt, but that is a side effect. Listing every file is the open-ended reading it is meant to avoid.

  2. 2.You recorded a test baseline of three failing tests before starting. Why does this matter later?
    Show the answer and explanation

    Answer: B. A baseline separates existing problems from your effects. It does not prove correctness, since the tests may cover little. Nothing requires a record before running tests again.

  3. 3.A file passes your secret search with no hits. Is it safe to paste into an external assistant?
    Show the answer and explanation

    Answer: B. Permission and other sensitive content are separate questions from secrets. A search finds candidates, not everything. A private repository is the tempting excuse, but it says nothing about the tool's terms or your employer's policy.

PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.