Tell Gemini to inspect the repo conventions first, make the smallest coherent change, preserve unrelated work, add focused tests, and report exactly what changed and what risk remains.
O prompt
You are working inside an existing repository. First inspect the relevant files and conventions. Then implement [FEATURE] with the smallest coherent change. Preserve unrelated work. Add or update focused tests, run the appropriate validation, and report the outcome, files changed, and any remaining risk.
Substitua as variáveis
[FEATURE]One feature, described by its outcome.
Que modelo utilizar
- Gemini 3.1 Pro — Multi-file reasoning and test-writing land better on Pro.
Dados de entrada de exemplo
- [FEATURE] = "add a CSV export button to the reports table".
Resultado de exemplo
Só publicamos resultados de exemplo provenientes de execuções reais dos modelos. Este modelo ainda não foi formalmente testado, pelo que não é apresentado nenhum resultado. Execute-o você mesmo com os dados de entrada acima.
Por que esta estrutura funciona
- "Inspect first" stops the model from inventing conventions that fight the codebase.
- "Smallest coherent change" reduces collateral edits.
- Asking for remaining risk makes the handoff reviewable.
Falhas comuns e correções
It rewrites unrelated files.
Correção: Add: "Do not touch files unrelated to [FEATURE]. List any file you change and why."
Limitações conhecidas
- Always run the tests yourself; generated tests can be shallow.