Claude Code can look at your existing files, understand codebases, and research approaches before suggesting solutions. But it won't do this automaticallyβyou have to ask.
π The Research Prompt
When you want Claude to understand before it acts, be explicit:
This tells Claude to investigate rather than create. The output is information, not code.
Research Question Templates
Ready-to-use prompts for different types of research questions
π Preview PDF
π¬ Example Research Conversation
Here's what a good research session looks like:
Before we add any features, please explore this folder and explain the current structure to me.
I'll examine the files in your project...
[Claude reads files]
Here's what I found:
β’ index.html - Main page with a navigation menu and hero section
β’ style.css - Styling using a mobile-first approach
β’ app.js - Handles menu toggle and form validation
The structure is straightforward: single-page site with external CSS and JS. Would you like me to suggest improvements or explain any part in detail?
Yes, what would need to change if I wanted to add a blog section?
To add a blog section, you'd need to...
[Claude provides analysis]
Notice how the conversation flows: research β understanding β planning. Only then would you move to building.
π Understanding Your Codebase
If you're working on an existing project, Claude can map it out:
"Explore this project folder and explain the structure to me. What does each file do? How do they work together?"
This is incredibly useful when you're picking up an old project or trying to understand code someone else wrote (or code Claude wrote in a previous session).
π― Research Questions to Ask
Here are prompts that trigger research mode:
- "What files exist in this folder?"
- "Read index.html and explain what it does"
- "How is the CSS organized in this project?"
- "What would I need to change to add a new feature?"
- "Are there any issues or inconsistencies you notice?"
π‘ The "Before We Start" Pattern
Start complex tasks with: "Before we start building, I'd like you to..." This signals to Claude that you want thinking, not doing.
π Researching Approaches
Claude also knows about different ways to solve problems. Ask it to compare options:
Or for simpler decisions:
π Documenting What You Learn
When Claude explains something useful, consider saving it. You can ask:
This turns research into documentation you can reference laterβa form of "compounding" we'll explore more in Module 3.
β¨ Research Before Surgery
A doctor doesn't operate before understanding the patient. Claude shouldn't modify your code before understanding your project. Make research a habit, especially for anything complex.
π Research β Plan β Build
The best workflow often looks like:
- Research: "Look at the existing code and explain the structure"
- Plan: "Given that structure, how should we add [feature]?"
- Review: "Does this plan make sense? Any concerns?"
- Build: "Okay, implement the plan"
Steps 1-3 might take a few minutes. But they prevent hours of debugging later.
π Resources & Further Reading
- Giving Claude Context (Anthropic) How to help Claude understand your project better
- Research Mode Examples (Every.to) Real examples of using Claude for project exploration
π Pause & Reflect
Before moving on, take a moment to consider:
- When was the last time you dove into code without understanding it first?
- What research questions would be most useful for your current projects?
- How might this research-first approach save you time?
π― Research Skills Unlocked
You know how to make Claude think before it acts. Next: how to evaluate the plans Claude creates.
Topic 2.2 Complete β’ Up Next: 2.3 β Reviewing a Plan