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: 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.
Create a mobile app that converts my website (https://example.com) into a native app. Add a push notification feature, in-app voting capability, and a leaderboard for engagement.