Gemini Coding

6 Gemini 4 Neon Prompts for Real Codebases

Gemini 4 Neon is built for complex coding and production workflows, and it carries a 1 million token context with cached input at 0.15 dollars per million tokens. That combination rewards prompts that load a lot of context once and then work inside it, rather than short prompts fired repeatedly. These six are written for that shape.

⌨️ 6 prompts 🕐 Updated Nov 23, 2026 👁 7 views
💡 How to use these prompts: Replace everything in [BRACKETS] with your specific details before sending. Click Copy to copy any prompt to your clipboard instantly.
1
Map a codebase before you touch it
Codebase onboarding
You have the full repository in context. Before suggesting any change, produce a map:\n1. Entry points and what triggers each one\n2. The data model, as a list of entities and their relationships\n3. Every external dependency and what it is used for\n4. The three files most other files depend on\nDo not propose changes yet. I will ask after I have read the map.
2
Find the bug from the symptom, not the stack trace
Debugging
Here is a symptom and the relevant source. Do not start from the stack trace.\nSymptom: [DESCRIBE WHAT THE USER SEES]\nList the three most likely causes in order of probability, and for each one name the exact file and function where you would look and what you would expect to find there if that cause is correct. Then tell me which single check rules out the most possibilities.
3
Write the test that would have caught it
Test coverage
Here is a bug that reached production and the fix that was applied.\nWrite the test that would have caught it before release. Then tell me honestly whether that test would have been written by a reasonable engineer at the time, or only in hindsight. If it is hindsight, say what class of test would have caught it instead.
4
Review a diff like a senior engineer, not a linter
Code review
Review this diff. Ignore formatting, naming and anything a linter would catch.\nReport only: correctness bugs the change introduces, cases the author has not handled, and anything that will be expensive to undo later. For each one give the exact line and a concrete failure scenario with inputs. If the change is sound, say so in one line and stop.
5
Plan a migration in reversible steps
Architecture
I need to migrate from [CURRENT] to [TARGET] without downtime.\nBreak this into steps where every step is independently deployable and independently reversible. For each step state what breaks if it is deployed alone, and what the rollback is. Flag any step that cannot be reversed, because those are the only ones I need to think hard about.
6
Explain the part nobody documented
Documentation
Here is a module with no documentation and no original author available.\nExplain what it does, in the order a new engineer needs to learn it. Separate what the code clearly does from what you are inferring about intent, and label the inferences. End with the three questions you would ask the original author if you could.