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.
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

Coding Vendor library

Sample prompt: investigate before answering

Never speculate about code you have not opened. If the user references a specific file,
you MUST read the file before answering. Make sure to investigate and read relevant
files BEFORE answering questions about the codebase. Never make any…
58 words · for Claude