GitLab Well Architected
Cookbook navigation
Prompts / Exploratory Code Understanding

Exploratory Code Understanding

Code UnderstandingArchitectureDeveloperExplorationOnboardingCreateAdvanced

Explore unfamiliar codebases conversationally. Understand architecture and key dependencies interactively.

For GitLab Duo

prompt

I'm new to this codebase and need to understand how [FEATURE/SYSTEM] works.

Starting point: [FILE OR COMPONENT]

Please help me explore:
1. What is the main responsibility of this component?
2. What are the key dependencies?
3. How does data flow through this system?
4. What are the most important files to understand?
5. Are there any non-obvious gotchas or complex areas?

I'll ask follow-up questions as I dig deeper.

Use the prompt

Choose a concrete entry point, such as a request handler or user action. Following that path gives the exploration a direction without requiring you to understand the whole repository first.