Coding Editorial example

Gemini CLI prompt for exploring and editing an unfamiliar codebase

An editorial example for exploring and editing an unfamiliar codebase in Gemini CLI, written for our guide and not tested against the vendor

For
Gemini CLI
Source
AI Tool Atlas guide: Gemini CLI
Checked
Oct 2, 2026

The prompt

Editorial example from our guide
Explain how authentication works in this repository, then add rate limiting to the login endpoint in src/api/login.ts, and write a test for it. Show me the diff before applying changes.

When to use this prompt

  • An editorial example for exploring and editing an unfamiliar codebase in Gemini CLI, written for our guide and not tested against the vendor
  • Task type: Coding. Browse other prompts for the same task below.
  • Written for Gemini CLI; other chat assistants usually accept it unchanged.
  • No variables to replace: paste it as is.
How to use this prompt: fill the variables, run it in Gemini CLI, check the resultYOU FILL INReady to runPaste the prompt as isNo variables to replaceTHE PROMPTGemini CLI33 words · 1 linesource: editorial exampleYOU GETThe resultAn editorial example for explorin…check the result against the tipscopy, paste, run in Gemini CLIfill → run → check · prompts are copied word for word from their source
How to use this prompt: what to fill in, where to run it, what comes back

How to check the result

  • Run the tests yourself.
  • Review the git diff.

This prompt was written as an example for our guide and has not been run against the tool. Expect to adapt it to your case. How we document tools.

Where to run it

More coding prompts