Ask the codebase a product question

Say your role and a user action, and Claude Code walks you through what the product does from the interface down to the result, from the source.

Task: Ask the codebase a product question · Other tasks

Fill in the details

Claude pitches the explanation at this level.

Optional. Limits, failure cases, permissions or anything else you need answered.

Copy your prompt

This site doesn't run Claude or show model output. Results depend on your input and the model you use.

2 required fields are empty.

What you type is kept in this tab's session storage so a reload doesn't lose it. Use "Clear this task" to remove it. Browsers can restore session data when they reopen tabs, so closing a tab isn't a guaranteed way to erase it.

When to use this template

  • You work on the product but do not read code, and you need to know what the product actually does today rather than what the original spec said.
  • You are writing a spec, a help article or a support answer and want the real limits, defaults and error messages behind a feature.
  • You want to answer a question yourself instead of interrupting an engineer, and you have Claude Code running in the repository.

When not to use it

  • The answer depends on live data or production settings, such as how many users hit a limit. Claude Code reads the code, not your production database, unless you have connected it to one.
  • You need a decision about how the feature should work. This prompt explains what the code does now; the decision belongs to the team.
  • You are in a plain chat without access to the repository. Claude would describe how such a feature usually works, not how yours does.

Why this structure

  • Stating your role first sets the level of the explanation, so you do not get a tour of function names when you wanted the product behavior.
  • The user action is phrased the way a user would describe it, and the prompt asks for the path from the interface down to the result, which matches how a product question is usually asked.
  • Saying "from the source code, not from how the feature is supposed to work" keeps the answer grounded in the current code rather than in general knowledge about similar products.
  • Points 2 and 3 ask for rules and failure cases, which are the details product and support work most often needs and the ones a quick demo does not show.
  • Marking inferences, flagging what happens outside the visible code and asking which feature you mean keep a non-technical reader from taking a guess as a fact.

Example input (fictional)

Your role
product manager
What the user does
clicks Export to PDF on a report
What you want to know in particular
What happens with very large reports, and what the user sees if the export fails.
Technical detail
plain language only, with file names collected at the end

Follow-ups to send Claude

  • Write this up as a one-page explanation for the support team, with the error messages users can see.
  • Where does the code differ from the behavior described in the help center article I am pasting next? List each difference.
  • Which of these rules can be changed in settings without a code change, and where are those settings?

Common mistakes

  • Describing the action vaguely, such as "exports something". Name the screen and the button so Claude follows the right flow.
  • Treating the answer as a description of production. Feature flags and settings can make the live product behave differently; check point 2 for the ones Claude found.
  • Asking for plain language and then quoting it to engineers as a specification. Use the detail setting with file names when the answer will feed into engineering work.
  • Get oriented in a new codebase: Ask Claude Code to map an unfamiliar repository: its architecture, key directories, how the parts connect, and where to start for your task.
  • Explain a concept: Get a concept explained at your level, in the format that helps you most, with a quick self-check and the common misconceptions.
  • Scope a change before you start: Ask Claude Code which files a change would touch and how big it is, so you can size the work before it goes on a roadmap or into a sprint.

See all templates

Sources