Browse
Coding

First day codebase tour

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

No votes yet this week
Output
Text
Written with
Claude Fable 5.1
Added
Updated

The prompt

Pretend you've maintained this codebase for three years and I joined the team this morning.

Here's the file tree:
```
[PASTE THE OUTPUT OF: tree -L 3 -I node_modules]
```

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

Walk me through it:
1. What does this system do, and how is it put together? One paragraph.
2. Pick one typical request and follow it from the entry point to the database and back. Use the real file and function names.
3. Which five concepts do I need in my head, and how do they connect?
4. Give me a table: "I want to change X" on the left, "look in Y" on the right.
5. What looks wrong but is on purpose? And what really is wrong?
6. Suggest three small, safe tasks for my first week that would teach me the most.

If what I pasted isn't enough to answer something, tell me which file you need. Don't guess.
  • onboarding
  • architecture
  • code-reading

What it generates

Example

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

Getting the most from this prompt

When it helps

Your first days in a repository you didn't write. A new job, an open source project you'd like to contribute to, a codebase somebody left you. It's also a quick way to produce onboarding notes for whoever joins after you.

What to paste

The file tree does more work than you'd think. Keep it to three levels and leave out build output, or the structure drowns in noise. For the files, go for the ones that show the pattern rather than the biggest ones: an entry point, one model, one ordinary route. Once you have the tour, ask for the walkthrough again with a different action ("now trace a failed login") and you'll see the error paths too.

Take it with a pinch of salt

Claude only knows what you pasted. Treat the "really is wrong" list as things to ask a teammate about, not as facts. And whatever else you change in the prompt, keep the last line. Naming the missing file instead of guessing is what makes the tour trustworthy.

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

Stops Claude from patching symptoms. It ranks the likely causes, tells you what to check first, and only then writes the fix.

Text output

What it does. Once a night, it finds every subscription that renewed in the last 24 hours, builds a PDF invoice for each one, emails it, and records that the invoice was sent. If anything fails for one customer, it moves on to...

Explain this code like I'll have to maintain it

Paste a function or file you didn't write and get a plain explanation of what it does, why it's built that way, and where it's likely to break.

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.