Browse
Coding

First Day Codebase Tour

Paste a file tree and a few key files. Claude gives you the tour a senior engineer would: how a request flows, where things live and what to avoid.

No votes yet this week
Output
Text
Added
Updated

The prompt

Act as the engineer who has maintained this codebase for three years. I joined the team today.

File tree:
```
[PASTE THE OUTPUT OF: tree -L 3 -I node_modules]
```

The most important files:
[PASTE 2 TO 5 FILES: the entry point, a core model, one typical route or handler]

Give me the tour:
1. One paragraph on what this system does and how it is put together.
2. Follow one typical request from the entry point to the database and back. Name the real files and functions it passes through.
3. The five concepts I have to understand, and how they relate to each other.
4. A table: "I want to change X" on the left, "look in Y" on the right.
5. Things that look wrong but are on purpose. Then things that really are wrong.
6. Three small, safe tasks for my first week that would teach me the most.

If the code I pasted is not enough to answer something, tell me which file you would need. Do not guess.
  • onboarding
  • architecture
  • code-reading

What it generates

Example

NoteThis is an example. Results change between runs and model versions. Prompt Podium is a fan project and is not affiliated with Anthropic.

Getting the most from this prompt

When to use it

Your first days in an unfamiliar repository: a new job, an open source project you want to contribute to, or a codebase you inherited. It is also a fast way to write onboarding notes for the next person who joins.

Make it your own

  • The file tree matters more than you would expect. Keep it to three levels and leave out build output, or the structure gets lost in the noise.
  • Pick files that show the pattern, not the biggest ones: one entry point, one model, one typical route.
  • Ask for the request walkthrough again with a different action, for example "now trace a failed login", to see the error paths.

Watch out for

Claude only sees what you paste. Treat the list of things that "really are wrong" as leads to check with a teammate, not as facts. The instruction to name missing files instead of guessing is the most important line in the prompt, so keep it when you adapt it.

How to use this prompt

  1. [01] Copy

    Copy the prompt

    Use the copy button above. The full text is included, nothing is cut off.

  2. [02] Fill in

    Replace the yellow parts

    Everything highlighted in yellow is a placeholder. Swap it for your own topic, audience or data.

  3. [03] Vote

    Run it in Claude and vote

    If the result helped, press the heart. Votes decide which prompts make the weekly top 10.

More like this

All coding prompts
Text output

What the error means. Cannot read properties of undefined (reading 'map') means orders was undefined at the moment the component rendered. The array never arrived, or it arrived under a different name. Most likely causes 1...

Find the Bug Before You Fix It

Stop Claude from patching symptoms. This prompt makes it rank the likely causes, tell you what to check first, and only then write the fix.

Learn the technique

All articles
2 min read

How to Use XML Tags in Claude Prompts

Wrapping parts of your prompt in simple tags is one of the easiest ways to get more reliable answers from Claude. A practical guide with examples.